Codefroces
Codefroces刷题记录
原题跳转 A #include<bits/stdc++.h> #define int long long using namespace std; bool check(int x) { int k = 0; while(x) { k += x % 10; x /= 10; } return k = ......
Codefroces Round #863(div.3)---E
题目:Problem - E - Codeforces 题意:有一个序列a,a中的每个元素的每一位都不为4,问序列中第k个数字是多少。 分析:可以用数位dp查询出1-r中有多少个满足条件的数字,通过二分r找到结果。 代码: #include <bits/stdc++.h> using namespa ......