判断整除

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.

题目背景

北辰OI举办月赛了, 土拨鼠小北和辰辰打算出一个简单题目考验一下学弟学妹.

题目描述

F(n)F(n)表示nn在十进制下的每一位的数字和, 比如: F(102)=1+0+2=3F(102) = 1+0+2 = 3

输入nn, 判断nn能否被F(n)F(n)整除, 如果可以, 则输出Yes, 否则输出No.

格式

输入格式

一个整数nn, (1<=n<=1091 <= n <= 10^9)

输出格式

输出Yes或者No

样例

12
Yes
101
No

北辰杯贺岁杯考前模拟赛

Not Attended
Status
Done
Rule
Ledo
Problem
36
Start at
2025-1-3 18:00
End at
2025-1-20 10:00
Duration
400 hour(s)
Host
Partic.
111