倍数之和
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.
题目背景
如果一个数字 , 能被另一个数字 整除, 则数字 是 的倍数.
题目描述
我们现在想知道, 给你一个数字 , 求小于 的所有 或 的正整数倍数之和.
数据格式
输入格式
多组数据
第一行输入一个整数 , 表示有 组数据,
接下来每一行一个整数 .
输出格式
输出 行, 每行一个整数表示答案.
样例
2
10
1000
23
233168
数据范围
[北辰杯 North-Star-Cup] 五月复现赛
- Status
- Done
- Rule
- Ledo
- Problem
- 12
- Start at
- 2023-5-22 18:00
- End at
- 2023-6-16 18:00
- Duration
- 600 hour(s)
- Host
- Partic.
- 41