商余等数
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.
商余等数
题目描述
有一个正整数 ,在 中找出所有的正整数 并输出这些 的和。
正整数 满足: 除以 的商(向下取整)等于 除以 的余数。
相当于: 成立。
输入格式
一行一个整数 。
输出格式
一行一个整数表示答案。不需要取模,请用long long。
样例 #1
样例输入 #1
8
样例输出 #1
10
样例 #2
样例输入 #2
1000000000000
样例输出 #2
2499686339916
数据范围
样例解释 1
- 满足条件的数有 和 。
20240521集训
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2024-5-21 19:00
- End at
- 2024-5-21 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 16