#abc101b. B - Digit Sums
B - Digit Sums
Score : points
问题描述
令 表示 以十进制表示时各位数字之和。例如,。
给定一个整数 ,判断 是否能整除 。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Let denote the sum of the digits in the decimal notation of . For example, .
Given an integer , determine if divides .
Constraints
Input
Input is given from Standard Input in the following format:
Output
If divides , print Yes
; if it does not, print No
.
Sample Input 1
12
Sample Output 1
Yes
In this input, . As , divides .
Sample Input 2
101
Sample Output 2
No
As , does not divide .
Sample Input 3
999999999
Sample Output 3
Yes
update @ 2024/3/10 17:17:25