[R5E]余数和
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
时空限制
1S/512M
题目描述
给定整数 ,求 对 取模的余数之和,即 。
格式
输入格式
第一行包含一个整数 。
输出格式
输出一个整数表示 。
样例
样例输入 #1
5
样例输出 #1
4
样例解释 #1
$\sum_{i=1}^N(N\mod i)=(5\mod 1)+(5\mod 2)+(5\mod 3)+(5\mod 4)+(5\mod 5)=0+1+2+1+0=4$。
样例输入 #2
1000000000
样例输出 #2
177532965887639372
数据规模
对于 的数据,。
对于 的数据,。
代码源挑战赛 Round 5
- Status
- Done
- Rule
- DMY
- Problem
- 6
- Start at
- 2025-3-28 20:00
- End at
- 2025-3-28 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 534