![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
haoli001
这个作者很懒,什么都没留下…
展开
-
codeforces #262B
不能枚举所有x但是可以枚举所有的s因为s的范围从1到81;之后判断是否在1到1e9中间且每一位的和是否等于x#include #include #include using namespace std;long long summ(long long x){ long long ans=0; while(x){ ans+=x%10;原创 2014-08-21 11:01:59 · 401 阅读 · 0 评论 -
codeforces Misha and Permutations Summation
#include #include #include #include using namespace std;const int Len=200107;int c[Len],p1[Len],p2[Len],p3[Len];int n;int lowbit(int n){ return n&(-n);}void modify(int y,int x){ while(y<=n原创 2015-01-17 10:34:47 · 419 阅读 · 0 评论