B. 数字根

    Type: RemoteJudge 2000ms 1024MiB

数字根

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)S(n)表示nn的数字根,也就是在1010进制下每一位的和如S(102)=1+0+2=3S(102)=1+0+2=3102102的数字根是33

输入nn,如果nnS(n)S(n)的倍数,他认为nn是有趣数,那么输出YesYes否则输出NoNo

12
Yes
101
No
999999999
Yes

提示

  • 1  N  109 1\ \leq\ N\ \leq\ 10^9

粒子2024年9月下半月月赛

Not Attended
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