[R3C]公因数求和
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
36 90
样例输出 #1
39
样例解释 #1
和 共有 个公因数:、、、、、。
所以答案为 。
数据规模
对于 的数据, 。
另有 的数据, 。
对于 的数据, 。
代码源挑战赛 Round 3
- Status
- Done
- Rule
- DMY
- Problem
- 6
- Start at
- 2025-3-14 20:00
- End at
- 2025-3-14 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 502