粒子2024年9月下半月月赛
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2024-9-22 18:15
- End at
- 2024-10-5 6:15
- Duration
- 2 hour(s)
- Host
- Partic.
- 10
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.
粒子最近喜欢研究数的特性,假定S(n)表示n的数字根,也就是在10进制下每一位的和如S(102)=1+0+2=3,102的数字根是3
输入n,如果n是S(n)的倍数,他认为n是有趣数,那么输出Yes否则输出No
12
Yes
101
No
999999999
Yes