Problem description Petya loves football very much. One day, as he was watching a football match, he was writing the players' current positions on a p ...
分类:
其他好文 时间:
2018-05-29 16:19:43
阅读次数:
193
Description Jamie loves sleeping. One day, he decides that he needs to wake up at exactly hh:?mm. However, he hates waking up, so he wants to make wak ...
分类:
其他好文 时间:
2018-05-25 16:54:27
阅读次数:
224
好久没有写反演了 感觉不会了 首先推一个经典的式子啊 $$ans = \sum_{D=1}^{n}\sum_{d|D}f(d)\mu(\frac{D}{d})\frac{n}{D}\frac{m}{D}$$ 记$g(D) = \sum_{d|D}f(d)\mu(\frac{D}{d})$ 结论挺好找 ...
分类:
其他好文 时间:
2018-05-13 19:07:52
阅读次数:
167
求$\sum_{i=1}^n \sum_{j=1}^m lcm(i,j)^{gcd(i,j)}$ ...
分类:
其他好文 时间:
2018-05-06 20:05:14
阅读次数:
168
Discription Levko loves strings of length n, consisting of lowercase English letters, very much. He has one such string s. For each string t of length ...
分类:
其他好文 时间:
2018-05-03 14:27:59
阅读次数:
185
3569: DZY Loves Chinese II Description 神校XJ之学霸兮,Dzy皇考曰JC。 摄提贞于孟陬兮,惟庚寅Dzy以降。 纷Dzy既有此内美兮,又重之以修能。 遂降临于OI界,欲以神力而凌♂辱众生。 今Dzy有一魞歄图,其上有N座祭坛,又有M条膴蠁边。 时而Dzy狂WA ...
分类:
其他好文 时间:
2018-05-03 01:05:02
阅读次数:
255
Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky digits 4 and ...
分类:
编程语言 时间:
2018-05-01 23:47:27
阅读次数:
350
Discription The Little Elephant loves permutations of integers from 1 to n very much. But most of all he loves sorting them. To sort a permutation, th ...
分类:
其他好文 时间:
2018-05-01 20:51:41
阅读次数:
187
题目 对于正整数n,定义f(n)为n所含质因子的最大幂指数。例如f(1960)=f(2^3 5^1 7^2)=3, f(10007)=1, f(1)=0。 给定正整数a,b,求sigma(sigma(f(gcd(i,j)))) (i=1..a, j=1..b)。 输入格式 第一行一个数T,表示询问数 ...
分类:
其他好文 时间:
2018-04-30 21:13:27
阅读次数:
154
Shadowman loves to collect box but his roommates woogieman and itman don't like box and so shadowman wants to hide boxes as many as possible. A box ca ...
分类:
其他好文 时间:
2018-04-29 20:32:24
阅读次数:
167