#Lutece1909. 大爷们的天花板
大爷们的天花板
Migrated from Lutece 1909 大爷们的天花板
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
为了确定2017级最强天花板,M大爷和E大爷决定进行一场较量。较量的内容为一道数学题,题目为: 给定两个正整数N和K,要求求出K mod 1 + K mod 2 + … + K mod N 的和,两位大爷迅速确定了两个不同的答案,身为裁判的你也要迅速获得答案,但…你的口算能力并不及两位大爷,所以你需要去编写一个程序去确定答案。
Input
两个正整数N和K
Output
包含一个整数表示正确答案
Samples
6 4
9
Note
4 mod 1 + 4 mod 2 + 4 mod 3 + 4 mod 4 + 4 mod 5 + 4 mod 6 = 0 + 0 + 1 + 0 + 4 + 4 = 9
1<=N,K<=10^9
Resources
每周一题 div2