[R7C]二维gcd和
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
题目描述
求 $\sum_{i=1}^N\sum_{j=1}^M(\gcd(i,N)\times \gcd(j,M))\mod 998244353$。
格式
输入格式
第一行包含两个整数 和 ,含义与题目描述相同。
输出格式
输出一个整数表示答案。对 取模。
样例
样例输入 #1
6 6
样例输出 #1
225
数据规模
对于 的数据,。
对于 的数据,。
代码源挑战赛 Round 7
- Status
- Done
- Rule
- DMY
- Problem
- 6
- Start at
- 2025-4-11 20:00
- End at
- 2025-4-11 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 505