数论
Yi_Qing_Z
这个作者很懒,什么都没留下…
展开
-
Codeforces 837E Vasya's Function(数论、gcd)
题目原网页-> Codeforces 837E Vasya's Function写这道题参考了->https://blog.csdn.net/calabash_boy/article/details/76652792这道题不存在多组样例输入。一开始以为会有多组样例输入,打算预处理出1~1e6所有数的因数,非常非常麻烦。 当输入的x和y不互质的时候,需要先计算出gc=gc...原创 2018-08-07 20:27:42 · 372 阅读 · 0 评论 -
AtCoder - 4240 Candy Distribution
Problem StatementThere are N boxes arranged in a row from left to right. The i-th box from the left contains Ai candies.You will take out the candies from some consecutive boxes and distribute the...转载 2018-09-06 20:48:44 · 390 阅读 · 0 评论