![](https://img-blog.csdnimg.cn/20190918140145169.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
数位dp
文章平均质量分 75
数位dp
_sky123_
这个作者很懒,什么都没留下…
展开
-
2020ICPC上海 C.Sum of Log
题目链接 题目描述 Given two non-negative integers X{X}X and Y{Y}Y, determine the value of ∑i=0X∑j=[i=0]Y[i&j=0]⌊log2(i+j)+1⌋\sum_{i=0}^{X}\sum_{j=[i=0]}^{Y}[i\&j=0]\lfloor\log_2(i+j)+1\rfloor∑i=0X∑j=[i=0]Y[i&j=0]⌊log2(i+j)+1⌋ modulo 109+710^9+7109+原创 2021-06-03 19:43:31 · 190 阅读 · 0 评论 -
Harmony Pairs
链接:https://ac.nowcoder.com/acm/contest/5671/H 来源:牛客网 题目描述 Roundgod is obsessive about numbers. Let S(x)S(x)S(x) be the sum of the digits of xx in decimal notation, (A,B)(A,B)(A,B) is a harmony pair if and only if S(A)>S(B)S(A)>S(B)S(A)>S(B). Round原创 2020-07-29 09:33:12 · 357 阅读 · 0 评论