problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p03315
u960171798
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
['N = input()\nS = 0\nfor n in N:\n S += int(n)\nN = int(N)\nprint("Yes" if N%S == 0 else "No")\n', 'S = input()\nnumber = 0\nfor i in range(len(S)):\n if S[i] == "+":\n number += 1\n else:\n number -= 1\nprint(number)\n']
['Runtime Error', 'Accepted']
['s049445431', 's067682694']
[2940.0, 2940.0]
[17.0, 18.0]
[90, 131]
p03315
u965033073
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
["[a, b, c, d] = input() \nlist = [a, b, c, d] \nk = 0\nfor f in list:\n if f = '+':\n k += 1\n else:\n k -= 1 \nprint(k) ", 'S = input()\nprint(S.count("+") - S.count(\'-\'))']
['Runtime Error', 'Accepted']
['s779521997', 's748722549']
[2940.0, 2940.0]
[18.0, 19.0]
[158, 46]
p03315
u969190727
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
['print(input().count("+")-input().count("-"))', 's=input()\nprint(s.count("+")-s.count("-"))\n']
['Runtime Error', 'Accepted']
['s197520568', 's523035595']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 43]
p03315
u974935538
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
['import math\nn,k = map(int,input().split())\ns = input()\n#print(n-1,k-1)\nprint(math.ceil((n-1)/(k-1)))', 'S = list(input())\nans = 0\nfor i in range(len(S)):\n if S[i] =="+":\n ans += 1\n elif S[i] == "-":\n ans -= 1\nprint(ans)']
['Runtime Error', 'Accepted']
['s053289326', 's321229179']
[3060.0, 2940.0]
[20.0, 17.0]
[100, 135]
p03315
u979038517
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
['print("AB" + ("C" if int(input()) <= 999 else "D"))', 'print("AB" + ("C" if int(input()) <= 999 else "D"))', 'flag = input()\n\nprint(1 * flag.count("+") + -1 * flag.count("-"))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s444296824', 's670481014', 's161764451']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[51, 51, 65]
p03315
u979823197
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
["S = input()\nl = len(S)\nnum = 0\nfor i in range(n):\n if S[i] == '+':\n num = num +1\n else :\n num = num -1\nprint(num)", "s = input()\nm = 0\nfor i in range(4):\n if s[i] == '+':\n m = m + 1\n elif s[i] == '-':\n m = m - 1\nprint(m)"]
['Runtime Error', 'Accepted']
['s646223535', 's929226856']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 111]
p03315
u982591663
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
['S = input()\nans = 0\n\nfor char in S:\n if char = "+":\n ans += 1\n else:\n ans -= 1\n\nprint(ans)', 'S = input()\nans = 0\n\nfor char in S:\n if char == "+":\n ans += 1\n else:\n ans -= 1\n\nprint(ans)']
['Runtime Error', 'Accepted']
['s359088308', 's606251296']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 111]
p03315
u983918956
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
['S = input()\na = S.count("+")\ns = S.count("-")\nprint(4+a-s)', 'S = input()\na = S.count("+")\ns = S.count("-")\nprint(a-s)']
['Wrong Answer', 'Accepted']
['s289792033', 's705773735']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 56]
p03315
u983967747
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
[' QUE=input("")\n EatSM=0\n Sum=QUE.count("+")\n Minus=QUE.count("-")\n print(EatSM+Sum-Minus)', 'import sys\nimport io\n\n\ndef solve(n):\n QUE=n\n EatSM=0\n Sum=QUE.count("+")\n Minus=QUE.count("-")\n print(EatSM+Sum-Minus)\n return EatSM+Sum-Minus\n\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return line\n\ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == \'__main__\':\n main()', ' QUE=input("")\n EatSM=0\n Sum=QUE.count("+")\n Minus=QUE.count("-")\n return EatSM+Sum-Minus', 'import sys\nimport io\n\n\ndef solve(n):\n QUE=n\n EatSM=0\n Sum=QUE.count("+")\n Minus=QUE.count("-")\n return EatSM+Sum-Minus\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return line\n\ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == \'__main__\':\n main()']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s231358783', 's300592446', 's688697519', 's714358710']
[2940.0, 3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[104, 519, 104, 399]
p03315
u992519990
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
['import math\nN,K = map(int,input().split())\na = list(map(int,input().split()))\nprint(math.ceil((N-1)/(K-1)))', 'S = input()\nx = 0\nfor c in S:\n if c == "+":\n x += 1\n else:\n x -= 1\nprint(x)']
['Runtime Error', 'Accepted']
['s294576110', 's913731379']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 95]
p03315
u994988729
2,000
1,048,576
There is always an integer in Takahashi's mind. Initially, the integer in Takahashi's mind is 0. Takahashi is now going to eat four symbols, each of which is `+` or `-`. When he eats `+`, the integer in his mind increases by 1; when he eats `-`, the integer in his mind decreases by 1. The symbols Takahashi is going to eat are given to you as a string S. The i-th character in S is the i-th symbol for him to eat. Find the integer in Takahashi's mind after he eats all the symbols.
['S=input()\nprint(S.count("+")-S.count("-")', 'S=input()\nprint(S.count("+")-S.count("-"))\n']
['Runtime Error', 'Accepted']
['s674454144', 's107832188']
[2940.0, 2940.0]
[17.0, 17.0]
[41, 43]
p03316
u000123984
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = input()\nli = list(n)\nli = list(map(int, li))\nsn = sum(li)\nif ( n % sn ): print("Yes")\nelse: print("No")', 'n = input()\nli = list(str(n))\nli_ = [int(i) for i in li]\nallSum = sum(li_)\nif not n % allSum: print("Yes")\nelse: print("No")', 'n = int(input())\nli = list(n)\nsn = sum(li)\nif ( n % sn ): print("No")\nelse: print("Yes")', 'n = int(input())\nli = list(n)\nsn = sum(li)\nif ( n % sn ): print("Yes")\nelse: print("No")', 'n = input()\nli = list(str(n))\nli = list(map(int, li))\nsn = sum(li)\nif ( n % sn ): print("Yes")\nelse: print("No")', 'n = int(input())\nli = list(str(n))\nli_ = [int(i) for i in li]\nallSum = sum(li_)\nif not n % allSum: print("Yes")\nelse: print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s041187913', 's112468620', 's231491575', 's328021582', 's714452476', 's256821687']
[3316.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0]
[21.0, 17.0, 17.0, 17.0, 17.0, 19.0]
[107, 124, 88, 88, 112, 129]
p03316
u002459665
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['def main():\n s = input()\n total = 0\n for i in range(len(s)):\n total += int(s[i])\n\n if int(s) % total == 0:\n print("Yes")\n else:\n print("No")\n\n\ndef main2():\n n = int(input())\n total = 0\n tmp = n\n while tmp > 0:\n total += n % 10\n tmp /= 10\n\n if n % total == 0:\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == \'__main__\':\n main2()\n', 'def main():\n s = input()\n total = 0\n for i in range(len(s)):\n total += int(s[i])\n\n if int(s) % total == 0:\n print("Yes")\n else:\n print("No")\n\n\ndef main2():\n n = int(input())\n total = 0\n tmp = n\n while tmp > 0:\n total += (tmp % 10)\n tmp = tmp // 10\n\n if n % total == 0:\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == \'__main__\':\n main2()\n']
['Runtime Error', 'Accepted']
['s130342530', 's949029446']
[3060.0, 3060.0]
[20.0, 18.0]
[416, 426]
p03316
u003501233
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=int(input())\n\nif (n % sum(map(int,list(n))) == 0):\n print("Yes")\nelse:\n print("No")', 'n=input()\n\nif (int(n) % sum(map(int,list(n))) == 0):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s685211491', 's330661326']
[2940.0, 2940.0]
[18.0, 17.0]
[87, 87]
p03316
u006425112
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = input()\nsum = 0\nfor i in range(len(n)):\n sum += int(n[i])\n\nif n % sum == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\nsum = 0\nfor i in range(len(n)):\n sum += int(n[i])\n\nif int(n) % sum == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s018281782', 's861125942']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 126]
p03316
u017415492
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=int(input())\nsn=str(n)\nans=0\nfor i in sn:\n ans+=int(i)\nif ans%n==0:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nsn=str(n)\nans=0\nfor i in sn:\n ans+=int(i)\nif n%ans==0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s161854978', 's018203874']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 105]
p03316
u023229441
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=int(input())\nN=str(n)\nz=0\nfor i in range(len(N)):\n z+=N[i]\nif n%z==0:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nN=str(n)\nz=0\nfor i in range(len(N)):\n z+=int(N[i])\nif n%z==0:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s941739938', 's614990031']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 113]
p03316
u023795241
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n = int(input())\nsum = 0\ntemp = 0\nfor i in range(len(n)):\n sum += temp&10:\n temp /= 10\n \nif n % sum == 0:\n print('Yes')\n exit(0)\n\nprint('No')", "n = input()\nsum = 0\ntemp = int(n)\nfor i in range(len(n)):\n sum += int(temp) % 10\n temp /= 10\n\nif int(n) % sum == 0:\n print('Yes')\n exit(0)\n\nprint('No')"]
['Runtime Error', 'Accepted']
['s704977394', 's950399554']
[2940.0, 2940.0]
[17.0, 18.0]
[156, 163]
p03316
u024782094
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=input()\nprint("Yes" if int(n)%sum(map(int,n)==0 else "No")', 'n=input()\nprint("Yes" if int(n)%sum(map(int,n))==0 else "No")']
['Runtime Error', 'Accepted']
['s705745102', 's392924337']
[2940.0, 2940.0]
[18.0, 17.0]
[60, 61]
p03316
u026102659
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['N = int(input())\nnum = list(N)\ns = 0\nfor i in range(len(num)):\n s += num[i]\nif N % s == 0:\n print(Yes)\nelse:\n print(No)', 'N = input()\nnum = list(N)\ns = 0\nfor i in range(N):\n s += num[i]\nif int(N) % s == 0:\n print(Yes)\nelse:\n print(No)', 'N = input()\nnum = list(N)\ns = 0\nfor i in range(len(num)):\n s += int(num[i])\nif int(N) % s == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s048797479', 's148605261', 's298533088']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 19.0]
[122, 115, 131]
p03316
u026155812
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['N = input()\nans = 0\nfor i in N:\n ans += int(i)\nprint(ans)\n', 'N = input()\nfor i in N:\n ans += int(i)\nprint(ans)\n', 'N = input()\nans = 0\nfor i in N:\n ans += int(i)\nprint(ans)\n', "N = format(int(input()),'b')\nans = 0\nfor i in N:\n ans += int(i)\nprint(ans)\n", "N = input()\nans = 0\nfor i in N:\n ans += int(i)\nprint('Yes' if int(N)%ans == 0 else 'No')\n"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s413893903', 's583457649', 's643426196', 's707003497', 's457834550']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0]
[59, 51, 59, 76, 90]
p03316
u027622859
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['def main():\n n = input()\n total = 0\n for i in range(len(n)):\n total += int(n[i])\n if total % int(n) == 0:\n print("Yes")\n else:\n print("No")\n\nif __name__==\'__main__\':\n main()', 'def main():\n n = input()\n total = 0\n for i in range(len(n)):\n total += int(n[i])\n if int(n)%total == 0:\n print("Yes")\n else:\n print("No")\n\nif __name__==\'__main__\':\n main()']
['Wrong Answer', 'Accepted']
['s349616433', 's801963754']
[2940.0, 2940.0]
[17.0, 17.0]
[211, 209]
p03316
u031324264
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['s = 101\ns_hold = s\nsum = 0\ni = 0\n\nwhile i < 9:\n sum = sum + s % 10\n s = s // 10\n i = i + 1\n\nif s_hold % sum == 0:\n print("Yes")\nelse:\n print("No")\n', 's = input()\nsum = 0\ni = 0\n\nwhile i < 9:\n sum = sum + s % 10\n s = s // 10\n i = i + 1\n\nif s % sum = 0:\n print("Yes")\nelse:\n print("No")\n', 's = input()\nsum = 0\ni = 0\n\nwhile i < 9:\n sum = sum + s % 10\n s = s // 10\n i = i + 1\n\nif s % sum == 0:\n print("Yes")\nelse:\n print("No")\n', 's = input()\ns_hold = s\nsum = 0\ni = 0\n\nwhile i < 9:\n sum = sum + s % 10\n s = s // 10\n i = i + 1\n\nif s_hold % sum == 0:\n print("Yes")\nelse:\n print("No")\n', 's = 123456789\nsum = 0\ni = 0\n\nwhile i < 9:\n sum = sum + s % 10\n s = s // 10\n i = i + 1\n\nif s % sum = 0:\n print("Yes")\nelse:\n print("No")\n', 's = input()\ns_hold = s\nsum = 0\ni = 0\n\nwhile i < 9:\n sum = sum + s % 10\n s = s // 10\n i = i + 1\n\nif s_hold % sum == 0:\n print("Yes")\nelse:\n print("No")\n', 's = int(input())\ns_hold = s\nsum = 0\ni = 0\n\nwhile i < 9:\n sum = sum + s % 10\n s = s // 10\n i = i + 1\n\nif sum == 0:\n print("Yes")\nelif s_hold % sum == 0:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s013624205', 's229336495', 's722964602', 's781254073', 's827509094', 's934758250', 's577685868']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0]
[152, 139, 140, 156, 141, 156, 191]
p03316
u031358594
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['N=input()\nNstring=str(N)\ni=0\nS=0\nwhile i<len(Nstring):\n S+=int(Nstring[i])\n i+=1\n\nif N%S==0:\n print("Yes")\nelse:\n print("No")\n', 'N=int(input())\nNstring=str(N)\ni=0\nS=0\nwhile i<len(Nstring):\n S+=int(Nstring[i])\n i+=1\n\nif N%S==0:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s610208774', 's918827286']
[3064.0, 2940.0]
[18.0, 17.0]
[151, 156]
p03316
u044026875
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=input()\nsn=0\nfor i in range(len(n)):\n sn+=int(n[i])\nif sn%int(n)==0:\n print("Yes")\nelse:\n print("No")', 'n=input()\nsn=0\nfor i in range(len(n)):\n sn+=int(n[i])\nif int(n)%sn==0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s085275642', 's249628372']
[2940.0, 2940.0]
[17.0, 17.0]
[112, 112]
p03316
u045909335
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N = list(input())\nt = 0\nfor n in N:\n t += int(n)\nprint(int(''.join(N)))\nif int(''.join(N)) % t == 0:\n print('Yes')\nelse:\n print('No')", "N = list(input())\nt = 0\nfor n in N:\n t += int(n)\nif int(''.join(N)) % t == 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s937768797', 's593981178']
[2940.0, 2940.0]
[17.0, 17.0]
[142, 119]
p03316
u046585946
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=int(input())\ns=n\ntemp=0\nwhile s:\n temp=temp+s%10\n s=s//10\nif n%s==0:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\ns=n\ntemp=0\nwhile s:\n temp=temp+s%10\n s=s//10\nif n%temp==0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s921871248', 's463866696']
[2940.0, 2940.0]
[18.0, 17.0]
[107, 110]
p03316
u057079894
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n=int(input())\nS=0\nwhile(n>0):\n S+=n%10\n S//=10\nif n&S==0:\n print('Yes')\nelse:\n print('No')\n \n ", "n=int(input())\nk=n\nS=0\nwhile(n>0):\n S+=n%10\n n//=10\n print(S,k)\nif k%S==0:\n print('Yes')\nelse:\n print('No')", "n=int(input())\nk=n\nS=0\nwhile(n>0):\n S+=n%10\n n//=10\n #print(S,k)\nif k%S==0:\n print('Yes')\nelse:\n print('No')"]
['Time Limit Exceeded', 'Wrong Answer', 'Accepted']
['s421900627', 's572968545', 's024094735']
[2940.0, 2940.0, 2940.0]
[2108.0, 17.0, 17.0]
[101, 112, 113]
p03316
u063052907
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['# coding: utf-8\nimport sys\ninput = sys.stdin.readline\n\nN= input()\nS = sum(map(int, N))\nprint("Yes" if int(N)%S==0 else "No")', 'print("hello")', '# coding: utf-8\nimport sys\ninput = sys.stdin.readline\n\nN = input()\nS = sum(int(x) for x in N)\nprint("Yes" if int(N)%S==0 else "No")', '# coding: utf-8\nimport sys\ninput = sys.stdin.readline\n\nN = input()\nS = sum(map(int, N))\nprint("Yes" if int(N)%S==0 else "No")', '# coding: utf-8\nimport sys\ninput = sys.stdin.readline\n\nN = input()\nS = sum(map(int, N))\nprint(["No", "Yes"][int(N)%S==0])', '# coding: utf-8\nimport sys\ninput = sys.stdin.readline\n\nN = input()\nS = sum(int(x) for x in N)\nN = int(N)\nprint("Yes" if N%S==0 else "No")', '# coding: utf-8\nimport sys\ninput = sys.stdin.readline\n\nN = input()\nS = sum(int(x) for x in N)\nprint("Yes" if int(N)%S==0 else "No")', '# coding: utf-8\nimport sys\ninput = sys.stdin.readline\n\nN = input()\nS = sum([int(x) for x in N])\nprint("Yes" if int(N)%S==0 else "No")', '# coding: utf-8\nN= input()\nS = sum(map(int, N))\nprint("Yes" if int(N)%S==0 else "No")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s005519812', 's242786631', 's332472075', 's463669465', 's508597111', 's613356836', 's729269207', 's802257921', 's146767712']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3056.0, 2940.0, 3060.0, 2940.0]
[18.0, 17.0, 18.0, 18.0, 18.0, 18.0, 17.0, 21.0, 18.0]
[124, 14, 131, 125, 121, 137, 131, 133, 85]
p03316
u065475172
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N = int(input())\nl = [int(x) for x in list(str(N))]\ns = sum(l)\nprint('YES') if N % s == 0 else print('NO')", "N = int(input())\nl = [int(x) for x in list(str(N))]\ns = sum(l)\nprint('YES') if N % s == 0 else print('NO')\n", "N = int(input())\nl = [int(x) for x in list(str(N))]\ns = sum(l)\nprint('Yes') if N % s == 0 else print('No')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s776207681', 's811596786', 's037956045']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[106, 107, 107]
p03316
u065644733
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['# -*- coding: utf-8 -*-\n\ndef main():\n\n a=input()\n a2=[int(x) for x in list(str(a))]\n c=int(0)\n \n for b in a2:\n c=c+b\n\n if c%int(a) == 0:\n print("Yes")\n else:\n print("No")\n \nif __name__ == \'__main__\':\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n a=input()\n a2=[int(x) for x in list(str(a))]\n c=int(0)\n \n for b in a2:\n c=c+b\n\n if int(a)%c == 0:\n print("Yes")\n else:\n print("No")\n \nif __name__ == \'__main__\':\n main()']
['Wrong Answer', 'Accepted']
['s090698244', 's188756726']
[2940.0, 2940.0]
[17.0, 17.0]
[255, 255]
p03316
u068400994
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['N = int(input())\nS = 0\ndivid = N\nwhile divid != 0:\n amari = divid % 10\n divid = int(divid / 10)\n S += amari\n\nprint(S)\nif N % S == 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nS = 0\ndivid = N\nwhile divid != 0:\n amari = divid % 10\n divid = int(divid / 10)\n S += amari\n\n\nif N % S == 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s132204051', 's624611266']
[3060.0, 2940.0]
[18.0, 17.0]
[180, 172]
p03316
u075595666
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["a = input()\nb = int(a)\ns = list(a)\ns = list(map(int,s))\nd = sum(s)\nif b%d == 0:\n print('yes')\nelse:\n print('no')", "a = input()\nb = int(a)\ns = list(a)\ns = list(map(int,s))\nd = sum(s)\nif b%d == 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s106665580', 's702202309']
[3060.0, 2940.0]
[18.0, 17.0]
[114, 114]
p03316
u076482195
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['x=input()\nc=0\nfor i in range(len(x)):\n c+=x[i]-\'0\'\nx=int(x)\nif x%c==0:\n print("Yes")\nelse:\n print("No")', 'x=input()\nc=0\nfor i in range(len(x)):\n c+=ord(x[i])-ord(\'0\')\nx=int(x)\nif x%c==0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s084889929', 's554321423']
[2940.0, 3060.0]
[17.0, 17.0]
[106, 116]
p03316
u077291787
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['# ABCB - Digit Sums\nn = int(input())\nsn = 0\nfor i in range(len(str(n))):\n n_temp = 0\n sn += n_temp % 10\n n_temp //= 10\nprint("Yes" if n % sn == 0 else "No")', '# ABCB - Digit Sums\nn = int(input())\nsn = 0\nfor i in range(len(str(n))):\n sn += n % 10\n s //= 10\nprint("Yes" if n % sn == 0 else "No")', '# ABCB - Digit Sums\nn = int(input())\nsn = sum(list(map(int, list(str(n)))))\nprint("Yes" if n % sn == 0 else "No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s061181696', 's830207733', 's299739721']
[2940.0, 2940.0, 3060.0]
[17.0, 18.0, 20.0]
[165, 140, 113]
p03316
u077337864
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N = input().strip()\n\nSN = sum(int(c) for c in N)\n\nif N % SN == 0:\n print('Yes')\nelse:\n print('No')", "N = input().strip()\n\nSN = sum(int(c) for c in N)\n\nif int(N) % SN == 0:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s931330060', 's476362898']
[2940.0, 2940.0]
[17.0, 18.0]
[104, 110]
p03316
u079022116
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n =input()\nfn = 0\nfor i in range(len(n)):\n fn += n[i]\nif int(n) % fn == 0:\n print('Yes')\nelse:\n print('No')\n", "n =input()\nfn = 0\nfor i in range(len(n)):\n fn += n[i]\nif n // fn == 0:\n print('Yes')\nelse:\n print('No')", "n =input()\nfn = 0\nfor i in range(len(n)):\n fn += int(n[i])\nif int(n) % fn == 0:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s018975922', 's236409698', 's358664184']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[111, 106, 116]
p03316
u079377386
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["S = input()\ninputInInt = int(S)\nsum = 0\nfor i,v in enumerate(S):\n sum += int(v)\n\nif inputInInt%sum is 0:\n print('YES')\nelse:\n print('No')", "S = input()\ninputInInt = int(S)\nsum = 0\nfor i in range(S):\n sum += S[i]\n\nif inputInInt % sum is 0:\n print('YES')\nelse:\n print('No')\n", "S = input()\ninputInInt = int(S)\nsum = 0\nfor i, v in enumerate(S):\n sum += int(v)\n\nif inputInInt % sum is 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s031011906', 's061240269', 's070092902']
[2940.0, 2940.0, 2940.0]
[19.0, 17.0, 17.0]
[146, 141, 149]
p03316
u089032001
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
[')\nS = 0\nfor lit in str(N):\n S += int(lit)\n\nif(N % S == 0):\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nS = 0\nfor lit in str(N):\n S += int(lit)\n\nif(N % S == 0):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s053202894', 's020042014']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 115]
p03316
u089230684
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=int(input())\nt=n\ns=0\n\nwhile t>n:\n a=t%10\n s=s+a\n t//=10\n \nif n%s==0:\n print("Yes")\nelse:\n print("No")', "def sum_digits(n):\n s = 0\n while n:\n s += n % 10\n n //= 10\n return s\n\ninp = int(input())\n\nif(inp%sum_digits(inp)==0):\n print('YES')\nelse:\n print('NO')", 'n=int(input())\nn=str(n)\ns=0\nfor i in n:\n s+=int(i)\nif (int(n)%s==0):\n print("YES")\nelse:\n print("NO")\n', 'n = input()\nlen_n = len(n)\nsum_n = 0;\nfor i in range (len_n):\n sum_n += int(n[i])\nif(int(n) % sum_n == 0):\n print("YES")\nelse:\n print("NO")', 'num = int(input())\nnum2 = num\nsum = 0\nwhile num2 > 0:\n sum += num2 % 10\n num2 /= 10\n\nprint("Yes" if (num % sum) == 0 else "No")', 'N = input()\nSn = []\nfor n in N:\n Sn.append(int(n))\nif int(N)%sum(Sn) == 0:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s296514907', 's598625613', 's660202734', 's982639844', 's994853542', 's474418746']
[2940.0, 2940.0, 9008.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 31.0, 17.0, 17.0, 17.0]
[109, 179, 111, 148, 129, 117]
p03316
u095969144
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["s = input()\na = 0\nfor i in range(len(s)):\n a += s[i]\ns = int(s)\nif s % a = 0 :\n print('Yes')\nelse :\n print('No')", "n = input()\ns = 0\nfor i in range(len(n)) :\n s += int(n[i])\nn = int(n)\nif n % s == 0 :\n print('Yes')\nelse :\n print('No')"]
['Runtime Error', 'Accepted']
['s235469166', 's418799047']
[2940.0, 3060.0]
[17.0, 17.0]
[121, 128]
p03316
u102902647
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['\nD, W = map(int, input().split())\nif W == 100:\n print(101*(100**D))\nelse:\n print(W*(100**D))\n\n\n', "\nN = int(input())\n\nN_str = str(N)\nS = sum([int(N_str[i]) for i in range(len(N_str))])\n\nif N % S == 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s596890797', 's751821979']
[2940.0, 2940.0]
[17.0, 18.0]
[101, 140]
p03316
u102960641
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = int(input())\nsn = sum(list(map(int, n.split())))\nif n % sn == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\nsn = sum([int(i) for i in list(n)])\nn = int(n)\nif n % sn == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s039739688', 's045682709']
[2940.0, 2940.0]
[17.0, 18.0]
[103, 109]
p03316
u103902792
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["s = input()\nn = int(s)\nm = 0\nfor c in range(s):\n m += int(c)\nprint('Yes' if n%m==0 else 'No')", "s = input()\nn = int(s)\nm = 0\nfor c in s:\n m += int(c)\nprint('Yes' if n%m==0 else 'No')\n"]
['Runtime Error', 'Accepted']
['s114594536', 's599662028']
[9176.0, 9084.0]
[21.0, 21.0]
[94, 88]
p03316
u111365362
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n = input()\nN = int(n)\nl = len(n)\ns = 0\nfor i in range(l):\n s += n[i]\nif N % s == 0:\n print('Yes')\nelse:\n print('No')", "n = input()\nN = int(n)\nl = len(n)\ns = 0\nfor i in range(l):\n s += int(n[i])\nif N % s == 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s951829434', 's338582084']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 125]
p03316
u111508936
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['import math \ndef S(N):\n s = 0\n n = N\n while n != 0:\n s += n % 10\n n /= 10\n n = math.floor(n)\n return s\n\n\nN = int(input())\nS = S(N)\n# print(N)\n# print(S)\nprint(N % S == 0)\n', 'import math \ndef S(N):\n s = 0\n n = N\n while n != 0:\n s += n % 10\n n /= 10\n n = math.floor(n)\n return s\n\n\nN = int(input())\nS = S(N)\n# print(N)\n# print(S)\nif N % S == 0:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s887254277', 's442815522']
[2940.0, 2940.0]
[17.0, 18.0]
[204, 240]
p03316
u113255362
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['N = int(input())\nn = N\nflag = True\nS = 0\na = 0\nwhile flag:\n a = n % 10\n S +=a\n n = n -a //10\n if n == 0:\n flag =False\nif N % S == 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nn = N\nflag = True\nS = 0\na = 0\nwhile flag:\n a = n % 10\n S +=a\n n = (n -a) //10\n if n == 0:\n flag =False\nif N % S == 0:\n print("Yes")\nelse:\n print("No")']
['Time Limit Exceeded', 'Accepted']
['s582010207', 's169988940']
[8856.0, 9064.0]
[2206.0, 29.0]
[174, 176]
p03316
u115877451
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["a=input()\nb=int(a)\nc=list(a)\nif b%(sum(c))==0:\n print('Yes')\nelse:\n print('No')", "a=input()\nb=int(a)\nc=list(a)\nc=[int(i) for i in c]\nif b%(sum(c))==0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s857177087', 's863785993']
[9124.0, 9124.0]
[29.0, 25.0]
[81, 103]
p03316
u130900604
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=int(input())\ndef s(x):\n liststrx=list(str(x))\n ret=0\n for i in liststrx:\n ret+=int(i) \n return ret\n\nif s(n)%n==0:\n print("Yes")\nelse:\n print("No")', 'def S(n):\n s=list(str(n))\n m=0\n for i in s:\n m+=int(i)\n return m\n\nn=int(input())\nif n%S(n)==0:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s241432732', 's833035165']
[2940.0, 2940.0]
[18.0, 18.0]
[158, 137]
p03316
u136090046
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = input()\nn_ = sum([int(x) for x in n])\nprint("Yes" if n%n_ == 0 else "No")', 'n = input()\nn_ = sum([int(x) for x in n])\nprint("Yes" if int(n)%n_ == 0 else "No")\n']
['Runtime Error', 'Accepted']
['s717488502', 's621722512']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 83]
p03316
u136869985
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['def main():\n N = input()\n S = 0\n for n in N:\n S += int(n)\n print("NO" if int(N) % S else "YES")\n\nif __name__ == \'__main__\':\n main()', "n=input()\nprint(['No','Yes'][int(n)%sum([int(i) for i in n])==0])"]
['Wrong Answer', 'Accepted']
['s081965555', 's633467560']
[2940.0, 2940.0]
[17.0, 17.0]
[153, 65]
p03316
u138253748
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['input_str=input()\ninput_int=int(input_str)\ns=0\nfor z in input_str:\n z=int(z)\n s+=z\n\nif input_int%s==0:\n print("OK")\nelse:\n print("NG")', 'input_str=input()\ninput_int=int(input_str)\ns=0\nfor z in input_str:\n z=int(z)\n s+=z\n\nif input_int%s==0:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s396894782', 's426978164']
[2940.0, 2940.0]
[17.0, 17.0]
[138, 140]
p03316
u141410514
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['s=input()\nn=int(s)\nss=0\nfor i in len(s):\n ss+=int(s[i])\nif n%ss=0:\n print("Yes")\nelse:\n print("No")\n ', 's=input()\nn=int(s)\nss=0\nfor i in range(len(s)):\n ss+=int(s[i])\nif n%ss==0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s064724039', 's669112173']
[2940.0, 2940.0]
[17.0, 17.0]
[104, 110]
p03316
u142415823
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N = input()\nif N % sum([int(i) for i in str(N)]) == 0: print('Yes')\nelse: print('No')", "N = int(input())\nS = sum((int(i) for i in str(N)))\nif N % S == 0: print('Yes')\nelse: print('No')"]
['Runtime Error', 'Accepted']
['s017378563', 's532113093']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 97]
p03316
u144847243
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["input_str = input()\nsum = 0\nfor dig in input_str:\n sum += int(dig)\n\nif int(input_str) % sum == 0\n print('Yes')\nelse:\n print('No')", "input_str = input()\nsum = 0\nfor dig in input_str:\n sum += int(dig)\n\nif int(input_str) % sum == 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s797702335', 's123222199']
[2940.0, 3064.0]
[17.0, 18.0]
[138, 139]
p03316
u145600939
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n = input()\ns = sum([int(i) for i in n])\nif n%s == 0:\n print('Yes')\nelse:\n print('No')\n", "n = input()\ns = sum([int(i) for i in n])\nif int(n)%s == 0:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s464934228', 's281249163']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 94]
p03316
u148551245
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = int(input())\ns = sum([i for i in str(n)])\n\nif n % s == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\ns = sum([int(i) for i in str(n)])\n\nif n % s == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s462066002', 's021163067']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 105]
p03316
u159574168
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = input()\nS = 0\n\nfor i in range(len(n)):\n S += int(n[i])\n\nif int(n)%S==0:\n print("yes")\nelse:\n print("no")\n ', 'n = input()\nS = 0\n\nfor i in range(len(n)):\n S += int(n[i])\n\nif int(n)%S==0:\n print("Yes")\nelse:\n print("No")\n ']
['Wrong Answer', 'Accepted']
['s960710657', 's123530262']
[2940.0, 2940.0]
[17.0, 17.0]
[114, 114]
p03316
u160414758
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['import sys,collections,math;sys.setrecursionlimit(10**7)\ndef Is(): return [int(x) for x in sys.stdin.readline().split()]\ndef Ss(): return sys.stdin.readline().split()\ndef I(): return int(sys.stdin.readline())\ndef S(): return input()\n\nn,k = Is()\nls = Is()\n_1 = ls.index(1)\nif _1 < k-1:\n _1 = k-1\nelif _1 < n-k:\n _1 = n-k\nprint(math.ceil(_1/(k-1))+math.ceil((n-1-_1)/(k-1)))\n', 'import sys,collections,math;sys.setrecursionlimit(10**7)\ndef Is(): return [int(x) for x in sys.stdin.readline().split()]\ndef Ss(): return sys.stdin.readline().split()\ndef I(): return int(sys.stdin.readline())\ndef S(): return input()\n\nn = I()\ns = 0\nfor e in str(n):\n s += int(e)\nif n%s == 0:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s779272119', 's527973793']
[3564.0, 3436.0]
[27.0, 86.0]
[379, 333]
p03316
u161693347
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["import sys\n\ndef INPUT(): return sys.stdin.readline().strip()\n\ndef main():\n N = INPUT()\n S = 0\n\n for i in N:\n S += int(i)\n\n if int(N) % S == 0:\n print('yes')\n else:\n print('no')\n\n\nif __name__ == '__main__':\n main()\n", "import sys\n\ndef INPUT(): return sys.stdin.readline().strip()\n\nsys.setrecursionlimit(10 ** 9)\n\n\ndef main():\n N = INPUT()\n S = 0\n\n for i in N:\n S += int(i)\n\n if int(N) % S == 0:\n print('Yes')\n else:\n print('No')\n\n\nif __name__ == '__main__':\n main()\n"]
['Wrong Answer', 'Accepted']
['s792791077', 's122776866']
[2940.0, 2940.0]
[17.0, 19.0]
[253, 286]
p03316
u167681750
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['N = input()\ndigitsum_N = 0\n\nfor i in N:\n digitsum_N += int(i)\n \nprint("Yes" if N % digitsum_N == 0 else "No")', 'N = input()\ndigitsum_N = 0\n\nfor i in N:\n digitsum_N += int(i)\n \nprint("Yes" if int(N) % digitsum_N == 0 else "No")']
['Runtime Error', 'Accepted']
['s196661175', 's470515785']
[2940.0, 3316.0]
[17.0, 21.0]
[111, 116]
p03316
u167908302
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["#coding:utf-8\nn = input()\ns = 0\n\nfor i in range(0, n):\n s += int(n[i])\n\nif int(n) % s == 0:\n print('Yes')\nelse:\n print('No')\n", "#coding:utf-8\nn = input()\ns = 0\n\nfor i in range(0, len(n)):\n s += int(n[i])\n\nif int(n) % s == 0:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s211947895', 's911387898']
[2940.0, 2940.0]
[17.0, 17.0]
[134, 139]
p03316
u175590965
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = input()\ns = sum(map(int,n))\nif int(n)% s == 0:\n print("Yes")\nelse:\n print("No', 'n = input()\ns = sum(map(int,n))\nif int(n) % s == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s548299949', 's814230544']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 90]
p03316
u185037583
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["s=input()\nn=0\nfor x in s: n += int(x)\nprint('Yes' if s%n==0 else 'No')", "s=input()\nn=0\nfor x in s: n += int(x)\nprint('Yes' if int(s)%n==0 else 'No')"]
['Runtime Error', 'Accepted']
['s452641750', 's046186855']
[2940.0, 2940.0]
[17.0, 18.0]
[70, 75]
p03316
u187205913
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n = str(input())\nsum = 0\nfor i in n:\n sum += int(i)\nif n%sum=0:\n print('Yes')\nelse:\n print('No')", "n = str(input())\nsum = 0\nfor i in range(len(n)):\n sum += int(n[i])\nif n%sum==0:\n print('Yes')\nelse:\n print('No')", "n = str(input())\nsum = 0\nfor i in range(len(n)):\n sum += int(n[i])\nif n%sum=0:\n print('Yes')\nelse:\n print('No')", "n = str(input())\nsum = 0\nfor i in range(len(n)):\n sum += int(n[i])\nif int(n)%sum==0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s568418966', 's777064641', 's981622286', 's464232442']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[105, 121, 120, 126]
p03316
u192541825
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['def f(n):\n\tres=0\n\twhile n>0:\n\t\tres+=n%10\n\t\tn/=10\n\treturn res\n\nN=int(input())\nx=f(N)\nif N%x==0:\n\tprint("Yes")\nelse:\n\tprint("No")', 'def f(n):\n\tres=0\n\twhile n>0:\n\t\tres+=n%10\n\t\tn//=10\n\treturn res\n\nN=int(input())\nprint(x)\nif N%x==0:\n\tprint("Yes")\nelse:\n\tprint("No")', 'def f(n):\n\tres=0\n\twhile n>0:\n\t\tres+=n%10\n\t\tn//=10\n\treturn res\n\nN=int(input())\nx=f(N)\nif N%x==0:\n\tprint("Yes")\nelse:\n\tprint("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s824397903', 's923608392', 's967542583']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0]
[127, 130, 128]
p03316
u203995947
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = input()\nsn = sum(map(int,list(n)))\nprint(sn)\nif int(n) % sn == 0:\n print("Yes")\nelse:\n print("No")\n', 'n = input()\nsn = sum(map(int,list(n)))\n#print(sn)\nif int(n) % sn == 0:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s963359466', 's798307995']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 110]
p03316
u207056619
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n=int(input())\nprint(n % sum(map(int, str(n))) and 'Yes' or 'No')", "n=int(input())\nprint(n % sum(map(int, str(n))) and 'No' or 'Yes')"]
['Wrong Answer', 'Accepted']
['s008591223', 's299608016']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 65]
p03316
u207464563
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['N = list(input())\nSn = 0\n\nfor i in N:\n Sn += int(i)\n\nif Sn % N == 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nT = list(str(N))\n\nSn = 0\n\nfor i in T:\n Sn += int(i)\n\nif Sn % M == 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nT = list(str(N))\n\nSn = 0\n\nfor i in T:\n Sn += int(i)\n\nif N % Sn == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s077700065', 's315400815', 's174563921']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[110, 127, 127]
p03316
u209619667
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["A = input()\nB = int(A)\nb = 0\nfor _ in range(len(A)):\n b += B % 10\n B = B//10\nif int(A) // b == 0:\n print('Yes')\nelse:\n print('No')", 'A = int(input())\nB = input()\nm = 0\nfor i in range(A):\n c = set(B[:i])\n a = set(B[i:])\n l = a & c\n m = max(m,len(l))\nprint(m)', "A = input()\nB = int(A)\nb = 0\nfor _ in range(len(A)):\n b += B % 10\n B = B//10\nif int(A) % b == 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s384440961', 's442505816', 's015346951']
[3060.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[134, 128, 133]
p03316
u218834617
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['S=input()\nprint(sum(map(int,S))%int(s)==0', "S=input()\nprint('YNEOS'[sum(map(int,S))%int(s)==0::2])", "S=input()\nprint('YNeos'[int(S)%sum(map(int,S))!=0::2])\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s216497351', 's242696551', 's067139695']
[8852.0, 9168.0, 9060.0]
[23.0, 21.0, 27.0]
[41, 54, 55]
p03316
u223646582
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N = input()\n\nsn = 0\nfor i in N:\n sn += i\n\nif int(N)%sn ==0:\n print('Yes')\nelse:\n print('No')", "N = input()\n\nsn = 0\nfor i in N:\n sn += int(i)\n\nif int(N)%sn ==0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s292834542', 's727902847']
[2940.0, 2940.0]
[18.0, 17.0]
[101, 106]
p03316
u223904637
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n=int(input())\ns=list(str(n))\nsn=0\nfor i in range(len(s)):\n sn+=int(s[i])\nif sn%n==0:\n print('Yes')\nelse:\n print('No')\n \n", "n=int(input())\ns=list(str(n))\nsn=0\nfor i range(len(s)):\n sn+=int(s[i])\nif sn%n==0:\n print('Yes')\nelse:\n print('No')\n ", "n=int(input())\ns=list(str(n))\nsn=0\nfor i in range(len(s)):\n sn+=int(s[i])\nif n%sn==0:\n print('Yes')\nelse:\n print('No')\n \n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s400333118', 's717914083', 's076760836']
[2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0]
[141, 137, 141]
p03316
u225388820
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=int(input())\nm=sum(map(int,list(str(n)))\nif n%m==0:\n print(\'Yes\')\n exit()\nprint("No")\n', 'n=int(input())\nm=sum(list(map(int,str(n)))\nif n%m==0:\n print(\'Yes\')\n exit()\nprint("No")', 'n=int(input())\nm=list(str(n))\ns=0\nfor i in range(len(m)):\n s+=int(m[i])\nif n%s==0:\n print(\'Yes\')\n exit()\nprint("No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s041967715', 's926212292', 's712489007']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[98, 97, 128]
p03316
u225642513
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['N = input()\nS = 0\nfor i in N:\n S += int(i)\nprint("Yes" if N % S == 0 else "No")\n', 'N = input()\nS = 0\nfor i in N:\n S += int(i)\nprint("Yes" if int(N) % S == 0 else "No")\n']
['Runtime Error', 'Accepted']
['s175898024', 's532528371']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 88]
p03316
u227085629
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n = int(input())\nsum = 0\nt = n\n\nwhile t > 0:\n sum += t%10\n t /= 10\nif n%sum == 0:\n print('Yes')\nelse:\n print('No')", 'n = int(raw_input())\nsum = 0\ntmp = n\n\nwhile tmp > 0:\n sum += tmp % 10\n tmp /= 10\n\nif n % sum == 0:\n print "Yes"\nelse:\n print "No"\n', "n = int(input())\nsum = 0\nt = n\n\nwhile t > 0:\n sum += t%10\n t //= 10\nif n%sum == 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s115860053', 's411877979', 's784734779']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[118, 142, 119]
p03316
u228636605
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=str(input())\nN = len(n)\ns = 0\n\nfor i in range(N):\n s+=int(n[i])\n print(s)\n\nn = int(n)\n\nif n % s == 0:\n print("Yes")\nelse:\n print("No")', 'n=str(input())\nN = len(n)\ns = 0\n\nfor i in range(N):\n s+=int(n[i])\n # print(s)\n\nn = int(n)\n\nif n % s == 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s803758058', 's993230637']
[2940.0, 2940.0]
[17.0, 17.0]
[148, 149]
p03316
u249727132
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['S = input()\nN = int(input())\nif N % sum(S) == 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nS = sum([int(n) for n in str(N)])\nif N % S == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s615145496', 's870271806']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 104]
p03316
u249987458
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N = int(input())\nnum = list(N)\nsum = sum(num)\nif N%sum == 0:\n print('Yes')\nelse:\n print('No')", "N = int(input())\nnum = list(N)\nsum = sum(num)\nM = int(sum)\nif N%M == 0:\n print('Yes')\nelse:\n print('No')", "n = str(input())\nnum = 0\nfor i in range(len(n)):\n num += int(n[i])\nif int(n)%num == 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s743402688', 's940553754', 's682574256']
[2940.0, 2940.0, 9056.0]
[17.0, 17.0, 25.0]
[95, 106, 128]
p03316
u251123951
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n=input()\na=0\nfor i in n:\n a+=int(n[i])\nprint("Yes") if int(n)//a else prit("No")', 'n=input()\na=0\nfor i in n:\n a+=int(n[i])\nprint("Yes") if int(n)%a==0 else print("No")', 'n=input()\na=0\nfor i in n:\n a+=int(n[i])\nprint("Yes") if int(n)//a else print("No")', 'n=input()\na=0\nfor i in n:\n a+=int(i)\nprint("Yes") if int(n)%a==0 else print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s165366449', 's196028844', 's688290904', 's602761626']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0]
[82, 85, 83, 82]
p03316
u252964975
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["import math\nn=int(input())\nSN = 0\nfor i in range(1,math.ceil(math.log(n,10))+1):\n SN = SN + math.floor(n%(10**i)/(10**(i-1)))\nprint(SN)\nif n%SN==0:\n print('Yes')\nelse:\n print('No')", "S=str(input())\ntotal = 0\nfor i in range(len(S)):\n total = total + int(S[i])\nif int(S)%total==0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s461311230', 's579198594']
[3060.0, 2940.0]
[17.0, 17.0]
[183, 131]
p03316
u253759478
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n = int(input())\ns = 0\nm = n\nwhile m > 0:\n s += m % 10\n m /= 10\nif n % s == 0:\n print('Yes')\nelse:\n print('No')\n", "n = int(input())\ns = 0\nm = n\nwhile m > 0:\n s += m % 10\n m //= 10\nif n % s == 0:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s682282031', 's048759334']
[2940.0, 2940.0]
[17.0, 17.0]
[124, 125]
p03316
u255001744
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['#include<bits/stdc++.h>\nusing namespace std;\n\nstring s;\n\nint main(){\n cin >> s;\n int sn = 0:\n int n\n for(int i=0;i<s.size();i++){\n sn += s[i]-\'0\';\n n = 10*n+(s[i]-\'0\');\n if(n%sn!=0)cout<<"No"<<endl;\n else cout <<"Yes"<<endl\n return 0', 'n = input()\nsn=0\nfor i in n:\n sn += int(i)\nn = int(n)\nif n%sn==0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s593547480', 's055215727']
[2940.0, 2940.0]
[17.0, 17.0]
[247, 107]
p03316
u265281278
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N0 = int(input())\nN1 = list(map(int,str(N0)))\nS_N = 0\n\nfor i in range(len(N)):\n S_N += N1[i]\n\nif N0 % S_N == 0:\n print('Yes')\nelse:\n print('No')", "N0 = int(input())\nN1 = list(map,N0)\nS_N = 0\n\nfor i in range(len(N1)):\n S_N += N1[i]\n\nif N0 % S_N == 0:\n print('Yes')\nelse:\n print('No')", "N0 = int(input())\nN1 = list(map,N0)\nS_N = 0\n\nfor i in range(len(N)):\n S_N += N[i]\n\nif N % S_N == 0:\n print('Yes')\nelse:\n print('No')", "N0 = int(input())\nN1 = list(map(int,str(N0)))\nS_N = 0\n\nfor i in range(len(N1)):\n S_N += N1[i]\n\nif N0 % S_N == 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s103922224', 's459939396', 's897047413', 's732039019']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[153, 144, 141, 154]
p03316
u266569040
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['vN = input()\nn = int(N)\ns = sum([int(i) for i in list(N)])\nif n % s == 0:\n print("Yes")\nelse:\n print("No")', 'N = input()\nn = int(N)\ns = sum([int(i) for i in list(N)])\nif n % s == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s437496038', 's387321915']
[2940.0, 2940.0]
[17.0, 18.0]
[112, 111]
p03316
u269424428
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["s=input()\ns1=0\nfor i in s:\n s1+=int(i)\nif int(s)%s==0:\n print('Yes')\nelse:\n print('No')", "s=input()\ns1=0\nfor i in s:\n s1+=int(i)\nif int(s)%s1==0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s147377929', 's730354758']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 97]
p03316
u272557899
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n= input()\nt = list(n)\nt = [int(i) for i in t]\ns = 0\nfor j in t:\n s += j\n\nif n % s == 0:\n print("Yes")\nelse:\n print("No")', 'n= input()\nt = list(n)\nt = [int(i) for i in t]\ns = 0\nfor j in t:\n s += j\n\nif int(n) % s == 0:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s407579962', 's790203475']
[3060.0, 2940.0]
[17.0, 17.0]
[124, 130]
p03316
u278430856
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["st = input()\ns = int(st)\nn = 0\nfor i in range(len(st)):\n n += int(st[i])\n\nprint('Yes') if n%s == 0 else print('No')\n", "st = input()\ns = int(st)\nn = 0\nfor i in range(len(st)):\n n += int(st[i])\n\nif n%s == 0:\n print('Yes')\nelse:\n print('No')\n", "st = input()\ns = int(st)\nn = 0\nfor i in range(len(st)):\n n += int(st[i])\n\nif s%n == 0:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s221816622', 's261276752', 's278472305']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[119, 129, 129]
p03316
u278832126
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N = input()\nS = sum([int(num) for num in N])\nprint('yes' if int(N) % S == 0 else 'No')", "N = input()\nS = sum([int(num) for num in N])\nprint('Yes' if int(N) % S == 0 else 'No')"]
['Wrong Answer', 'Accepted']
['s239764019', 's750913091']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 86]
p03316
u279266699
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["import sys\n\n\nstdin = sys.stdin\ndef ns(): return stdin.readline().rstrip()\ndef ni(): return int(stdin.readline().rstrip())\ndef nm(): return map(int, stdin.readline().split())\ndef nl(): return list(map(int, stdin.readline().split()))\n\n\ndef main():\n n = ni()\n Sn = sum(list(str(n)))\n print('Yes' if n % Sn == 0 else 'No')\n\n\nif __name__ == '__main__':\n main()\n", "import sys\n\n\nstdin = sys.stdin\ndef ns(): return stdin.readline().rstrip()\ndef ni(): return int(stdin.readline().rstrip())\ndef nm(): return map(int, stdin.readline().split())\ndef nl(): return list(map(int, stdin.readline().split()))\n\n\ndef main():\n n = ni()\n Sn = sum(list(map(int, list(str(n)))))\n print('Yes' if n % Sn == 0 else 'No')\n\n\nif __name__ == '__main__':\n main()\n"]
['Runtime Error', 'Accepted']
['s608525052', 's399334987']
[9080.0, 9140.0]
[26.0, 26.0]
[368, 384]
p03316
u284854859
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["# your code goes here\nimport copy\nN=int(input())\nk = copy.copy(N)\n \na=[]\nwhile k != 0:\n\ta.append(k%10)\n\tk = k//10\n \nif N%sum(a)==0:\n\tprint('Yes')\nelse:\n\tprint('No'", "# your code goes here\nimport copy\nN=int(input())\nk = copy.copy(N)\n\na=[]\nwhile k != 0:\n\ta.append(k%10)\n\tk = k//10\n\nif N%sum(a)==0:\n\tprint('Yes')\nelse:\n\tprint('No')"]
['Runtime Error', 'Accepted']
['s149385099', 's942729041']
[2940.0, 3444.0]
[20.0, 22.0]
[163, 162]
p03316
u294385082
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = input()\n\ntmp = int(n[0])+int(n[1])+int(n[2])\n\nif int(n)%tmp == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\ntmp = 0\n\nfor i in range(len(n)):\n tmp += int(n[i])\n\nif n%tmp == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\n\ntmp = n[0]+n[1]+n[2]\n\nif n%tmp == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\ntmp = 0\n \nfor i in range(len(n)):\n tmp += int(n[i])\n \nif int(n)%tmp == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s414328647', 's584783341', 's667008351', 's049470096']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[104, 114, 84, 121]
p03316
u319818856
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['def digit_sums(N: int) -> bool:\n s = 0\n while N > 0:\n s += N % 10\n N //= 10\n return N % s == 0\n\n\nif __name__ == "__main__":\n N = int(input())\n ans = digit_sums(N)\n print(ans)\n', 'def digit_sums(N: int) -> bool:\n s = 0\n temp = N\n while temp > 0:\n s += temp % 10\n temp //= 10\n return N % s == 0\n\n\nif __name__ == "__main__":\n N = int(input())\n yes = digit_sums(N)\n print(\'Yes\' if yes else \'No\')\n']
['Wrong Answer', 'Accepted']
['s169924153', 's437369189']
[2940.0, 2940.0]
[18.0, 17.0]
[207, 248]
p03316
u320325426
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = input()\nnl = [int(i) for i in n]\nns = sum(nl)\nprint(["No", "Yes"][n % ns == 0])', 'n = input()\nnl = [int(i) for i in n]\nns = sum(nl)\nprint(["No", "Yes"][int(n) % ns == 0])']
['Runtime Error', 'Accepted']
['s607863799', 's755900211']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 88]
p03316
u323045245
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['s=input()\nn=int(s)\nm=0\nfor i in s:\n m+=i\nif n%m==0:\n print("Yes")\nelse:\n print("No")', 's=input()\nn=int(s)\nm=0\nfor i in s:\n m+=int(i)\nif n%m==0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s610021360', 's672421250']
[9112.0, 9160.0]
[27.0, 26.0]
[93, 98]
p03316
u325704929
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["N = input()\n\ntotal = 0\nfor i in N:\n total += int(i)\n\nif N % total == 0:\n print('Yes')\nelse:\n print('No')", "N = input()\n\ntotal = 0\nfor i in N:\n total += int(i)\n\nif int(N) % total == 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s789244224', 's947777427']
[2940.0, 3316.0]
[17.0, 19.0]
[107, 112]
p03316
u326261815
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['num=input()\nnum1=num\nj=0\nwhile int(num)>0:\n j+=int(num)%10\n num = int(num)/10\nprint(j)\nif int(num1)%j==0:\n print("Yes")\nelse:\n print("No")', 'num=input()\nnum1=num\nj=0\nwhile int(num)>0:\n j+=int(num)%10\n num = int(num)/10\nprint(j)\nprint(int(num1)%j==0)', 'num=input()\nj=0\nfor i in range(1,10):\n j+=num//10^i\nprint(num%j==0)', 'num=input()\nj=0\nwhile int(num)>0:\n j+=int(num)%10\n num = int(num)/10\nprint(int(num)%j==0)', 'num=input()\nnum1=num\nj=0\nwhile int(num)>0:\n j+=int(num)%10\n num = int(num)/10\nif int(num1)%j==0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s119196858', 's327508390', 's394093083', 's935853243', 's310876008']
[9052.0, 9072.0, 9012.0, 9080.0, 9080.0]
[28.0, 28.0, 23.0, 32.0, 29.0]
[142, 110, 68, 91, 133]
p03316
u327465093
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['s = input()\nN = int(s)\nS = sum(map(int, list(s)))\nif N % S == 0:\n print("yes")\nelse:\n print("no")\n', 's = input()\nN = int(s)\nS = sum(map(int, list(s)))\nif N % S == 0:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s702353944', 's577453622']
[2940.0, 2940.0]
[18.0, 19.0]
[104, 104]
p03316
u330314953
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
['n = int(input())\ns = sum(list(map(int,str(n))))\nprint(s)\nif n%s == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\ns = sum(list(map(int,str(n))))\n\nif n%s == 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s234804026', 's847368225']
[3316.0, 3316.0]
[23.0, 18.0]
[108, 100]
p03316
u331381193
2,000
1,048,576
Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101) = 1 + 0 + 1 = 2. Given an integer N, determine if S(N) divides N.
["n=input()\n\nsm=0\n\nfot i in range(10):\n\tsm+=n[i]\n\nres='No'\n\nif n%sm==0:\n\tres='Yes'\n\nprint(res) ", "n=input()\nsm=0\n \nfor i in range(len(n)):\n\tsm+=int(n[i])\n\nres='No'\n \nif int(n)%sm==0:\n\tres='Yes'\n\nprint(res)"]
['Runtime Error', 'Accepted']
['s964232504', 's459497384']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 107]