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
|
---|---|---|---|---|---|---|---|---|---|---|
p03316 | u335829917 | 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 ,list ( str ( n ) ) ) )\nif n % s == 0:\n ans = 'Yes'\nelse :\n ans = 'No'\nprint(ans)", "n = int( input ())\ns = sum( list ( str ( n ) ) )\nif n % s == 0 :\n ans = 'Yes'\nelse :\n ans = 'No'\nprint(ans)", "n = input ()\ns = sum(list( map ( int , list(n))))\nnum = int(n)\nif num % s == 0 :\n ans = 'Yes'\nelse :\n ans = 'No'\nprint(ans)"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s721642403', 's849552347', 's041952374'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [126, 109, 125] |
p03316 | u339523379 | 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)\ntmp=list(n)\n\nc=0\nfor i in tmp():\n c+=int(i)\n\nif N%c==0:\n print("yes")\nelse:\n print("no")', 'n=input()\nN=int(n)\ntmp=list(n)\n\nc=0\nfor i in tmp:\n c+=int(i)\n\nif N%c==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s325873257', 's660484749'] | [3316.0, 2940.0] | [21.0, 17.0] | [116, 114] |
p03316 | u340515675 | 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()\nnumN = int(N)\nS =0\nfor i in range(len(N)):\n S += int(N[i])\n \nif nunN % S == 0:\n print('Yes')\nelse:\n print('No')", "N = input()\nnumN = int(N)\nS =0\nfor i in range(len(N)):\n S += int(N[i])\n\nif N % S == 0:\n print('Yes')\nelse:\n print('No')", "N = input()\nnumN = int(N)\nS =0\nfor i in range(len(N)):\n S += int(N[i])\n \nif numN % S == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s132602572', 's866726331', 's484594953'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [132, 128, 132] |
p03316 | u340781749 | 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()\ns = sum(map(int, x))\nn = int(x)\nprint('Yes' if n // s == 0 else 'No')", "x = input()\ns = sum(map(int, x))\nn = int(x)\nprint('Yes' if n % s == 0 else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s375167189', 's380055672'] | [9096.0, 9052.0] | [29.0, 27.0] | [81, 80] |
p03316 | u340947941 | 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\nN=input()\nsn=sum(map(int,list(N))))\n\nif int(N)%sn==0: \n print("Yes")\nelse: \n print("No")', '\n\nN=input()\nsn=sum(map(int,list(N)))\n\nif int(N)%sn==0: \n print("Yes")\nelse: \n print("No")'] | ['Runtime Error', 'Accepted'] | ['s267083163', 's293193419'] | [2940.0, 2940.0] | [17.0, 17.0] | [166, 165] |
p03316 | u344959886 | 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()\nnn=list(n)\na=0\nfor i in nn:\n a+=int(i)\nprint(a)\nif int(n) % a == 0:\n print("Yes")\nelse:\n print("No")', 'n =input()\nnn=list(n)\na=0\nfor i in nn:\n a+=int(i)\n\nif int(n) % a == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s086493940', 's385906807'] | [2940.0, 2940.0] | [17.0, 17.0] | [120, 112] |
p03316 | u344959959 | 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 = int(input())\nb = sum(list(map(int,list(str(a)))))\nans = a%b\nprint(ans)\nprint("Yes" if ans == 0 else"No")', 'a = int(input())\nb = sum(list(map(int,list(str(a)))))\nans = a/b\nprint("Yes" if ans == o else"No")', 'a = int(input())\nb = sum(list(map(int,list(str(a)))))\nans = a%b\nprint("Yes" if ans == 0 else"No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s118021549', 's950069018', 's421278136'] | [9168.0, 9084.0, 9036.0] | [30.0, 25.0, 29.0] | [108, 97, 97] |
p03316 | u347640436 | 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 int(n) % sum(map(int, n)) == 0:\n print('Yes')\nelse;\n print('No')\n", "n = input()\nif int(n) % sum(map(int, n)) == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s890307230', 's195010035'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 82] |
p03316 | u353919145 | 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()\nx = list(n)\n\nsum1 = sum(list(map(int,x)))\n\nif int(n) % sum1:\n print('Yes')\nelse:\n print('No')", 'def sum(x):\n y = x;\n sum = 0\n while y > 0:\n sum = sum + (y % 10)\n y = y // 10\n\n return sum\n\ni = int ( input () )\nprint( "Yes" if (x % sum(x) == 0) else "No")\n', 'a = int(input())\n\nsoma = 0\nb = str(a) \nfor i in range(len(b)):\n soma += int(b[i])\n\nif(a%soma == 0):\n print("YES")\nelse:\n print("NO")\n', 'n = int(input())\nx = n\nsum = 0\nwhile x:\n sum += (x % 10)\n x //= 10\nif(n % sum == 0):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s442774779', 's533453448', 's774417489', 's377218718'] | [2940.0, 2940.0, 2940.0, 9108.0] | [17.0, 17.0, 17.0, 29.0] | [111, 168, 142, 130] |
p03316 | u357751375 | 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())\ni = n\nm = 0\nwhile i > 0\n m += i % 10\n i = i // 10\n\nif n % m != 0:\n print('No')\nelse:\n print('Yes')", "n = input()\nm = list(n)\nm = list(map(int,m))\nm = sum(m)\nif int(n) % m == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s288895486', 's057747334'] | [8952.0, 9164.0] | [25.0, 26.0] | [127, 114] |
p03316 | u363836311 | 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))\nS=0\nfor i in range(len(s)):\n S+=int(s[i])\nif n%S==0:\n print('Yes')\nelsE:\n print('No')\n", "n=int(input())\ns=list(str(n))\nS=0\nfor i in range(len(s)):\n S+=int(s[i])\nif n%S==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s834793042', 's124955554'] | [2940.0, 2940.0] | [17.0, 17.0] | [119, 119] |
p03316 | u366959492 | 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())\ns=sum(n)\nn=int(n)\nif n%s==0:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nnl=str(n)\nl=map(int,list(nl))\ns=sum(l)\n\nif n%s==0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s548072846', 's309737480'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 105] |
p03316 | u367130284 | 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();print("YNeos"[sum(map(int,list(n)))%int(n)!=0::2])', 'n=input();print("YNeos"[int(n)%sum(map(int,list(n)))!=0::2])'] | ['Wrong Answer', 'Accepted'] | ['s610274952', 's684629853'] | [2940.0, 2940.0] | [17.0, 18.0] | [60, 60] |
p03316 | u370429695 | 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 = []\nfor i in n:\n li.append(int(i))\nif n % sum(li) == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\nli = []\nfor i in n:\n li.append(int(i))\nif int(n) % sum(li) == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s592380309', 's022769933'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 113] |
p03316 | u371763408 | 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. | ['while tmp > 0:\n sum += tmp % 10\n tmp /= 10\n\nif n % sum == 0:\n print ("Yes")\nelse:\n print ("No")', 'while tmp > 0:\n sum += tmp % 10\n tmp /= 10\n\nif n % sum == 0:\n print "Yes"\nelse:\n print "No"', 'n =int(input())\n\ns=eval("+".join(str(n)))\nif n % s ==0:\n print(\'Yes\')\nelse:\n print(\'No\')'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s185495305', 's687321389', 's711262507'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [107, 103, 90] |
p03316 | u372173285 | 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, K = map(int, input().split())\nL = list(map(int, input().split()))\n\nif N == K:\n print(1)\nelif N / K == 1:\n print(2)\nelse:\n print(int(N / (K-1)))\n', "N = input()\nS = 0\n\nfor i in N:\n S += int(i)\n\nif int(N) % S == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s835366147', 's462573387'] | [3060.0, 2940.0] | [19.0, 18.0] | [156, 107] |
p03316 | u374802266 | 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=len(n)\np=0\nm=0\nwhile True:\n m+=int(n[p])\n p+=1\n if m==a:\n break\nif int(n)%m==0:\n print('Yes')\nelse:\n print('No')", "a=input()\nb=0\nfor i in range(len(a)):\n b+=int(a[i])\nif int(a)%b==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s235279554', 's214326740'] | [2940.0, 2940.0] | [17.0, 17.0] | [146, 110] |
p03316 | u375616706 | 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. | ['# python template for atcoder1\nimport sys\nsys.setrecursionlimit(10**9)\n\nN = input()\ndi = 0\nfor c in N:\n di += int(c)\nif N % di == 0:\n print("Yes")\nelse:\n print("No")\n', '# python template for atcoder1\nimport sys\nsys.setrecursionlimit(10**9)\n\nN = input()\ndi = 0\nfor c in N:\n di += int(c)\nif int(N) % di == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s289963834', 's902502862'] | [3188.0, 2940.0] | [17.0, 20.0] | [175, 180] |
p03316 | u379692329 | 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 = list(map(int, N))\nprint("Yes" if N % sum(S) == 0 else "No")', 'N = input()\nS = list(map(int, N))\nprint("Yes" if int(N) % sum(S) == 0 else "No")'] | ['Runtime Error', 'Accepted'] | ['s771762032', 's964964132'] | [2940.0, 3064.0] | [18.0, 17.0] | [75, 80] |
p03316 | u382431597 | 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\nn = input()\nN = int(n)\nn = [int(i) for i in list(n)]\nprint("Yes" if sum(n) % N == 0 else "No")', 'import sys\nn = input()\nN = int(n)\nn = [int(i) for i in list(n)]\nprint("Yes" if sum(n) % N == 0 else "No")', 'import sys\nn = input()\nN = int(n)\nn = [int(i) for i in list(n)]\nprint("Yes" if N % sum(n) == 0 else "No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s122556091', 's308918783', 's192451253'] | [2940.0, 2940.0, 2940.0] | [22.0, 17.0, 17.0] | [105, 105, 105] |
p03316 | u382639013 | 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\nans = 0\nfor i in N:\n ans += int(i)\n\nif N % ans ==0:\n print("Yes")\nelse:\n print("No")', 'N = input()\n\nans = 0\nfor i in N:\n ans += int(i)\n\nif int(N) % ans ==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s425603011', 's666903701'] | [9164.0, 9168.0] | [23.0, 28.0] | [106, 111] |
p03316 | u409373192 | 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(int(i) for i in str(n))\nif n % s == 0:\n print("YES")\nelse:\n print("NO")', 'n = int(input())\ns = sum(int(i) for i in str(n))\nif n % s == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s506490533', 's890893929'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 98] |
p03316 | u416758623 | 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())\ntotal = 0\nfor i in range(len(n)):\n total+=int(n[i])\n if(total == 0):\n print("No")\nif(int(n) % total == 0):\n print("Yes")\nelse:\n print("No")\n ', 'n = input())\ntotal = 0\nfor i in range(len(n)):\n total+=int(n[i])\n\nif(total == 0):\n print("No")\nif(int(n) % total == 0):\n print("Yes")\nelse:\n print("No")', 'n = input()\ne = len(n)\ntotalList = []\nfor i in range(len(n)):\n totalList.append(n[i])\n \ntotal = sum(totalList)\nif(total == 0):\n print("Yes")\nif(n % total == 0):\n print("Yes")\nelse:\n print("No")\n \n\n ', 'n = int(input())\ntotal = 0\nfor i in range(len(n)):\n total+=n[i]\nif(total == 0):\n print("No")\nif(n % total == 0):\n print("Yes")\nelse:\n print("No")\n ', 'n = input()\ns = 0\nfor i in n:\n s += int(i)\nif int(n) % s == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s480040440', 's511267770', 's719492328', 's791242880', 's998909074'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0] | [166, 156, 205, 152, 104] |
p03316 | u419686324 | 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("No" if N % sum(int(x) for x in N) else "Yes")', 'N = input()\nprint("No" if int(N) % sum(int(x) for x in N) else "Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s048598946', 's117836602'] | [2940.0, 3060.0] | [18.0, 20.0] | [64, 70] |
p03316 | u423925725 | 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 Sn = 0\n for n in N: Sn += int(n)\n print(Yes if int(N) % Sn == 0 else 'No')\n \nif __name__ == '__main__':\n main()", "def main():\n N = input()\n Sn = 0\n for n in N: Sn += int(n)\n print('Yes' if int(N) % Sn == 0 else 'No')\n \nif __name__ == '__main__':\n main()"] | ['Runtime Error', 'Accepted'] | ['s853681836', 's147282551'] | [2940.0, 2940.0] | [17.0, 17.0] | [155, 157] |
p03316 | u426108351 | 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()\ndiv = 0\nfor i in range(len(N)):\n div += int(N[i])\nif int(N) % div == 0:\n print('YES')\nelse:\n print('No')", "N = input()\ndiv = 0\nfor i in range(len(N)):\n div += int(N[i])\nif int(N) % div == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s838604845', 's635143055'] | [2940.0, 2940.0] | [17.0, 18.0] | [119, 120] |
p03316 | u427984570 | 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 = list(input())\nn = 0\n\nfor i in s:\n n += int(s)\n\nprint("Yes" if int(s)%n == 0 else "No")', 'a = input()\ns = list(a)\nn = 0\n\nfor i in s:\n n += int(i)\n\nprint("Yes" if int(a)%n == 0 else "No")\n'] | ['Runtime Error', 'Accepted'] | ['s909527486', 's609455977'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 98] |
p03316 | u433780933 | 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)\nsum =0\nmir = n\nfor i in range(len(s)):\n sum += s[i]\nif n%sum ==0:\n print("Yes")\nelse:\n print("No")', 's = input()\nn = int(s)\nsum =0\nmir = n\nfor i in range(len(s)):\n sum += int(s[i])\nif n%sum ==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s067093212', 's960401778'] | [3060.0, 2940.0] | [17.0, 17.0] | [124, 129] |
p03316 | u434208140 | 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("YNeos"[n%sum(map(int,list(str(n))))>0])', 'n=input();print("YNeos"[int(n)%sum(map(int,n))>0::2])'] | ['Wrong Answer', 'Accepted'] | ['s319467692', 's676628497'] | [2940.0, 3060.0] | [17.0, 20.0] | [61, 53] |
p03316 | u440129511 | 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()\nn1=int(n)\nn=list(n)\nk=0\nfor i in range(len(n)):\n k+=int(a[i])\nif n1%k==0:print('Yes')\nelse:print('No')\n", "n=input()\nn1=int(n)\nn=list(n)\nk=0\nfor i in range(len(n)):\n k+=int(n[i])\nif n1%k==0:print('Yes')\nelse:print('No')"] | ['Runtime Error', 'Accepted'] | ['s525382910', 's539257121'] | [3060.0, 2940.0] | [20.0, 18.0] | [116, 115] |
p03316 | u445628522 | 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()\nnum=0\n\nfor i in range(len(S)):\n num+=int(S[i])\n\nif ((int)S%num)==0 :\n print("Yes")\n\nelse :\n print("No")', 'n = input()\ntmp = 0\n\nfor i in range(len(n)):\n tmp += int(n[i])\nif(int(n)%tmp==0):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s252441150', 's082350203'] | [2940.0, 2940.0] | [17.0, 17.0] | [122, 124] |
p03316 | u448655578 | 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()\nnums = list(N)\ncount = 0\nfor i in nums:\n count += i\n\nif int(N) % count == 0:\n print("Yes")\nelse:\n print("No")', 'N = input()\nnums = list(N)\ncount = 0\nfor i in nums:\n count += int(i)\n\nif int(N) % count == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s643973088', 's726508490'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 130] |
p03316 | u448743361 | 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()\nsum=0\nfor i in range(len(s)):\n sum+=int(s[i])\n \nprint(sum)\n\n\n\n', 'import sys\ns=input()\nsum=0\nfor i in range(len(s)):\n sum+=int(s[i])\n \nif int(s)%sum==0:\n print("Yes")\n sys.exit(0)\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s074699167', 's002519235'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 147] |
p03316 | u449473917 | 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(i)\n\nif n%a==0:\n print("Yes")\nelse:\n print("No")\n ', 'n=input()\na=0\nfor i in n:\n a+=int(i)\n\nif int(n)%a==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s929128802', 's126915939'] | [2940.0, 2940.0] | [18.0, 17.0] | [94, 95] |
p03316 | u452015170 | 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([int(i) for i in list(n)])\nif n % sn == 0 :\n print("Yes")\nelse :\n print("No")', 'n = input()\nsn = sum([int(i) for i in list(n)])\nif int(n) % sn == 0 :\n print("Yes")\nelse :\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s637662602', 's941149898'] | [2940.0, 3064.0] | [18.0, 18.0] | [104, 109] |
p03316 | u455317716 | 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 = 0\nfor i in str(n):\n s_n += i\nif n%s_n == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\ns_n = 0\nfor i in str(n):\n s_n += int(i)\nif n%s_n == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s821722399', 's068878051'] | [2940.0, 2940.0] | [18.0, 17.0] | [108, 113] |
p03316 | u455533363 | 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=0\nfor i in range(len(n)):\n sn += n[i]\nprint("Yes" if n%sn==0 else "No")', 'n = input()\nsn=0\nfor i in range(len(str(n))):\n sn += int(n[i])\nprint("Yes" if int(n)%sn==0 else "No")'] | ['Runtime Error', 'Accepted'] | ['s694773159', 's697717096'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 102] |
p03316 | u466331465 | 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 = int(N)\nfor i in range(len(N)):\n b += int(N[i])\nprint("Yes" if a%b==0 else "No")', 'N = input()\na = int(N)\nb = 0\nfor i in range(len(N)):\n b += int(N[i])\nprint("Yes" if a%b==0 else "No")\n'] | ['Runtime Error', 'Accepted'] | ['s458913540', 's048590782'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 103] |
p03316 | u466335531 | 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=int(input())\nN=Num\nn=0\nwhile N>=10:\n n+=N%10\n N=N//10\nn+=N\nprint(n)\nif Num%n:print("No")\nelse:print("Yes")', 'Num=int(input())\nN=Num\nn=0\nwhile N:\n n+=N%10\n N=N//10\nif Num%n:print("No")\nelse:print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s757224194', 's474663971'] | [3060.0, 2940.0] | [17.0, 17.0] | [116, 98] |
p03316 | u469953228 | 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())\nli = list(n)\nif sum(li)%n==0:\n print('Yes')\nelse:\n print('No')", "n = input()\nli = list(n)\nli = [int(i) for i in li]\n\nif int(n)%sum(li)==0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s060013401', 's801039254'] | [2940.0, 2940.0] | [17.0, 18.0] | [81, 108] |
p03316 | u480300350 | 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()\ndigit = int(n)\ntotal = sum(list(map(int, list(n))))\nprint("Yes" if total % digit == 0 else "No")\n', '#!/usr/bin/env python3\n\nimport sys\n# import math\n# from string import ascii_lowercase, ascii_upper_case, ascii_letters, digits, hexdigits\n# import re # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)\n# from operator import itemgetter # itemgetter(1), itemgetter(\'key\')\n\n# from collections import defaultdict # subclass of dict. defaultdict(facroty)\n# from collections import Counter # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)\n# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).\n# from heapq import nlargest, nsmallest # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).\n# from itertools import count, cycle, repeat # count(start[,step]), cycle(iter), repeat(elm[,n])\n# from itertools import groupby # [(k, list(g)) for k, g in groupby(\'000112\')] returns [(\'0\',[\'0\',\'0\',\'0\']), (\'1\',[\'1\',\'1\']), (\'2\',[\'2\'])]\n# from itertools import starmap # starmap(pow, [[2,5], [3,2]]) returns [32, 9]\n# from itertools import product, permutations # product(iter, repeat=n), permutations(iter[,r])\n# from itertools import combinations, combinations_with_replacement\n# from itertools import accumulate # accumulate(iter[, f])\n# from functools import reduce # reduce(f, iter[, init])\n# from functools import lru_cache # @lrucache ...arguments of functions should be able to be keys of dict (e.g. list is not allowed)\n# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).\n# from copy import deepcopy # to copy multi-dimentional matrix without reference\n# from fractions import gcd # for Python 3.4 (previous contest @AtCoder)\n\n\ndef main():\n mod = 1000000007 # 10^9+7\n inf = float(\'inf\') # sys.float_info.max = 1.79...e+308\n # inf = 2 ** 64 - 1 # (for fast JIT compile in PyPy) 1.84...e+19\n sys.setrecursionlimit(10**6) # 1000 -> 1000000\n def input(): return sys.stdin.readline().rstrip()\n def ii(): return int(input())\n def mi(): return map(int, input().split())\n def mi_0(): return map(lambda x: int(x)-1, input().split())\n def lmi(): return list(map(int, input().split()))\n def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))\n def li(): return list(input())\n \n \n n = input()\n s_n = 0\n for char in n:\n s_n += int(char)\n print(\'Yes\') if int(n) % s_n == 0 else print(\'No\')\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s440819487', 's011577298'] | [2940.0, 3064.0] | [17.0, 17.0] | [109, 2988] |
p03316 | u481533080 | 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\nn=str(n)\nfor i in n:\n s+=int(i)\nif int(n)%s==0:\n print("YES")\nelse:\n print("NO")', 'n=input()\ns=0\nn=str(n)\nfor i in n:\n s+=int(i)\nif int(n)%s==0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s812683598', 's157480055'] | [9096.0, 9140.0] | [24.0, 26.0] | [103, 103] |
p03316 | u492532572 | 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 n in N:\n s += int(n)\nres = int(N) % s\nif res == 0:\n print("Yes")\nelse\n print("No")', 'N = input()\nsum = 0\nfor n in N:\n sum += int(n)\nres = int(N) % sum\nif res == 0:\n print("yes")\nelse\n print("no")\n', 'N = input()\nsum = 0\nfor n in N:\n sum += int(n)\nres = int(N) % sum\nif res == 0:\n print("Yes")\nelse\n print("No")', 'N = input()\nsum = 0\nfor n in N:\n sum += int(n)\nres = int(N) % sum\nif res == 0:\n print("Yes")\nelse\n print("No")', 'N = input()\ns = 0\nfor n in N:\n s += int(n)\nres = int(N) % s\nif res == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s339848842', 's344707080', 's414327960', 's960437302', 's580690054'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [107, 114, 113, 113, 108] |
p03316 | u497883442 | 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 = list(n)\nn = int(n)\nsn = 0\nfor i in s:\n sn += int(i)\nif sn % n == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\ns = list(n)\nn = int(n)\nsn = 0\nfor i in s:\n sn += int(i)\nif n % sn == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s423673129', 's460944052'] | [3060.0, 2940.0] | [19.0, 22.0] | [125, 125] |
p03316 | u506287026 | 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([int(i) for i in str(N)])\nif N % sn == 0:\n print('Yes')\nelse:\n print('No')\n", "N = input()\nsn = sum([int(i) for i in str(N)])\nif int(N) % sn == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s411887039', 's152482920'] | [2940.0, 2940.0] | [17.0, 18.0] | [102, 107] |
p03316 | u515364861 | 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 solve(n):\n a = 0\n for s in str(n):\n a += int(s)\n if n%a == 0:\n return("Yes")\n else:\n return("No")\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n [str_a] = line.split(\' \')\n return (int(str_a)\n\ndef main():\n a = readQuestion()\n answer = solve(a)\n print(answer)\n \nif __name__ == \'__main__\':\n main()', 'import sys\n\ndef solve(n):\n a = 0\n for s in str(n):\n a += int(s)\n if n%a == 0:\n return("Yes")\n else:\n return("No")\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n [str_a] = line.split(\' \')\n return (int(str_a))\n\ndef main():\n a = readQuestion()\n answer = solve(a)\n print(answer)\n \nif __name__ == \'__main__\':\n main()'] | ['Runtime Error', 'Accepted'] | ['s437238350', 's520339330'] | [2940.0, 3064.0] | [17.0, 17.0] | [380, 381] |
p03316 | u516170499 | 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()\nSn=0\nfor i in range(1, 10):\n\tif i > len(S):break\n\tSn+=int(S[-i])\nans = "No"\nif int(S) / Sn == 0:ans = "Yes"\nprint(ans)', 'S=input()\nSn=0\nfor i in range(1, 10):\n\tif i > len(S):break\n\tSn += int(S[-i])\nans = "No"\nif Sn == 0 or int(S) % Sn == 0:ans = "Yes"\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s695032789', 's620968778'] | [3060.0, 2940.0] | [18.0, 17.0] | [128, 142] |
p03316 | u518556834 | 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\nfor i in range(len(str(n))):\n s += list(str(n))[i]\nif n % s == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\ns = 0\nfor i in range(len(str(n))):\n s += int(list(str(n))[i])\nif n % s == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s108356964', 's637314003'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 130] |
p03316 | u523414076 | 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\ns = input()\n_sum = 0\nfor x in s:\n\t_sum += int(x)\nprint ('Yes' if _sum % int(s) == 0 else 'No')", "import sys\ns = input()\n_sum = 0\nfor x in s:\n\t_sum += int(x)\nprint ('Yes' if int(s) % _sum == 0 else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s377364963', 's708216547'] | [2940.0, 2940.0] | [17.0, 18.0] | [105, 105] |
p03316 | u524327367 | 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. | ["N2 = N\nsum = 0\nwhile True:\n sum += N % 10\n N = N // 10\n if N == 0:\n break\nif N2 % sum == 0:\n print('Yes')\nelse:\n print('No')\n", "N = int(input())\nN2 = N\nsum = 0\nwhile True:\n print(N % 10)\n sum += N % 10\n N = N // 10\n if N == 0:\n break\nif N2 % sum == 0:\n print('Yes')\nelse:\n print('No')\n", "# coding: utf-8\n# Your code here!\nN = int(input())\nN2 = N\nsum = 0\nwhile True:\n sum += N % 10\n N = N // 10\n if N == 0:\n break\nif N2 % sum == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s146337921', 's960533807', 's666617961'] | [9088.0, 9092.0, 9160.0] | [27.0, 28.0, 29.0] | [147, 182, 198] |
p03316 | u546853743 | 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 range(len(n)):\n s += n[i]\nif int(n)%s == 0:\n print('Yes')\nelse:\n print('No')", "n=input()\ns=0\nfor i in range(len(n)):\n s += int(n[i])\nif int(n)%s == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s158253089', 's235913661'] | [9028.0, 9132.0] | [22.0, 29.0] | [108, 113] |
p03316 | u548545174 | 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\nn = int(N)\nsn = sum(list(N))\n\nprint('Yes' if n % sn == 0 else 'No')", "N = input()\n\nn = int(N)\nsn = sum(list(N))\n\nif n % sn == 0:\n print('Yes') \nelse:\n print('No')", "N = input()\n\nn = int(N)\nsn = sum(list(N))\n\nprint('Yes') if n % sn == 0 else print('No')", "N = input()\n\nn = int(N)\nsn = sum(list(map(int, list(N))))\n\nprint('Yes' if n % sn == 0 else 'No')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s421946826', 's668898145', 's772785953', 's775115178'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [80, 98, 87, 97] |
p03316 | u548624367 | 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. | ['print("No"if(lambda s:int(s)/sum(list(map(int,list(s)))))(input())else"Yes")', 'print("No"if(lambda s:int(s)%sum(list(map(int,list(s)))))(input())else"Yes")'] | ['Wrong Answer', 'Accepted'] | ['s475309206', 's007106141'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 76] |
p03316 | u551692187 | 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())\nln = list(N)\nprint('Yes') if N%sum(ln) == 0 else print('No')\n", "N = int(input())\nln = list(str(N))\nsumln = 0\nfor val in ln:\n sumln += int(val)\n\nprint('Yes') if N%sumln == 0 else print('No')\n\n"] | ['Runtime Error', 'Accepted'] | ['s007320961', 's002563857'] | [2940.0, 2940.0] | [18.0, 18.0] | [78, 130] |
p03316 | u555917689 | 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())\nk=len(n)\ns=0\nt=0\nfor i in range(k):\n s+=int(n[i])\nfor l in range(k):\n t+=int(n[i])*10**(k-1-i)\nif t%s==0:\n print('Yes')\nelse:\n print('No')", "import math\nn=list(input())\nk=len(n)\ns=0\nt=0\nfor i in range(k):\n s+=int(n[i])\nfor l in range(k):\n t+=int(n[i])*10**(k-1-i)\nif t%s==0:\n print('Yes')\nelse:\n print('No')", "n=list(input())\nk=len(n)\ns=0\nt=0\nfor i in range(k):\n s+=int(n[i])\nfor l in range(k):\n t+=int(n[i])*10**(k-1-i)\nif t%s==0:\n print('Yes')\nelif t%s==0:\n print('Yes')\nelse:\n print('No')", "n=list(input())\nk=len(n)\ns=0\nt=0\nfor i in range(k):\n s+=int(n[i])\nfor l in range(k):\n t+=int(n[l])*10**(k-1-l)\nif t%s==0:\n print('Yes')\n\nelse:\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s017295674', 's254898752', 's573250961', 's382499784'] | [3064.0, 3060.0, 3316.0, 3316.0] | [17.0, 17.0, 19.0, 19.0] | [166, 178, 196, 167] |
p03316 | u556225812 | 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. | ["#101 b\nn = str(input())\nN = int(N)\nS = 0\nfor i in n:\n S += i\nif N%S == 0:\n print('Yes')\nelse:\n print('No')", "n = str(input())\nN = int(n)\nS = 0\nfor i in n:\n S += int(i)\nif N%S == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s841497962', 's338144965'] | [2940.0, 2940.0] | [17.0, 18.0] | [115, 113] |
p03316 | u575653048 | 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())\nsn = 0\nfor i in range(len(n)):\n sn += int(n[i])\nif n % sn == 0:\n print("Yes")\nelse:\n print("No")', 'n = str(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")'] | ['Runtime Error', 'Accepted'] | ['s031983555', 's489223905'] | [2940.0, 2940.0] | [17.0, 17.0] | [122, 127] |
p03316 | u595893956 | 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();print('YNeos'[int(N)%sum(map(int,n))!=0::2])\n", "N=input();print('YNeos'[int(N)%sum(map(int,N))!=0::2])"] | ['Runtime Error', 'Accepted'] | ['s663960055', 's693561713'] | [2940.0, 3060.0] | [18.0, 20.0] | [55, 54] |
p03316 | u606033239 | 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 len(n):\n s += int(n[i])\n\nprint(["No","Yes"][n%s == 0])', 'n = input()\ns = 0\nfor i in n:\n s += n[i]\n\nprint(["No","Yes"][n%s == 0])', 'n = input()\ns = 0\nfor i in len(n):\n s += int(n[i])\n\nprint(["No","Yes"][int(n)%s == 0])', 'n = int(input())\ns = 0\nfor i in len(n):\n s += n[i]\n\nprint(["No","Yes"][n%s == 0])', 'n = int(input())\ns = 0\nfor i in n:\n s += n[i]\n\nprint(["No","Yes"][n%s == 0])', 'n = input()\ns = 0\nfor i in n:\n s += n[i]\n\nprint(["No","Yes"][n%s == 0])', 'n = int(input())\ns = 0\nfor i in str(n):\n s += int(i)\nprint("Yes" if n%s==0 else "No")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s281128448', 's444098677', 's598882979', 's630841316', 's642575287', 's911354697', 's808581737'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0] | [84, 74, 89, 84, 79, 74, 89] |
p03316 | u609061751 | 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\ninput = sys.stdin.readline\nN = int(input())\nN_str = list(str(N))\na = 0\nfor i in N_str:\n cnt += int(i)\nif N % a == 0:\n print("Yes")\nelse:\n print("No")', 'import sys\ninput = sys.stdin.readline\nfrom collections import Counter\nS = list(input().rstrip())\nc = Counter(S)\nprint(c["+"] - c["-"])\n', 'import sys\ninput = sys.stdin.readline\nN = int(input())\nN_str = list(str(N))\na = 0\nfor i in N_str:\n a += int(i)\nif N % a == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s474593855', 's582852811', 's538717532'] | [3060.0, 3316.0, 3060.0] | [17.0, 20.0, 17.0] | [169, 135, 167] |
p03316 | u611495846 | 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:")\nmapped_N = map(int, list(N))\nsum_s = sum(list(mapped_N))\nif int(N) % sum_s == 0:\n print("Yes")\nelse:\n print("No")', 'N = input("N:")\nmapped_N = map(int, list(N))\nsum_s = sum(list(mapped_N))\nif N % sum_s == 0:\n print("Yes")\nelse:\n print("No")', 'N = input()\nmapped_N = map(int, list(N))\nsum_s = sum(list(mapped_N))\nif int(N) % sum_s == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s905311522', 's965304155', 's139061405'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [136, 131, 132] |
p03316 | u612721349 | 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. | ['print(*["YNeos"[(int(s)%sum(int(i))for i in s)>0::2]for s in[input()]])\n', 'print(*["YNeos"[(int(s)%sum(int(i)for i in s))>0::2]for s in[input()]])\n'] | ['Runtime Error', 'Accepted'] | ['s423426082', 's862058217'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 72] |
p03316 | u614627871 | 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_str = input()\n n_int = int(n)\n n_sum = 0\n for i in range(len(n_str)):\n n_sum += int(n_str[i])\n if n_int % n_sum == 0:\n print("Yes")\n else:\n print("No")', 'N = int(input())\ndsum = 0\ntmp = N\nwhile tmp > 0:\n dsum += tmp % 10\n tmp //= 10\nif N % dsum != 0:\n print ("No")\nelse:\n print ("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s784844044', 's660547779'] | [2940.0, 2940.0] | [17.0, 18.0] | [181, 136] |
p03316 | u617203831 | 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("No" if n%sum(map(int,n)) else "Yes")', 'n=input()\nprint("No" if int(n)%sum(map(int,n)) else "Yes")'] | ['Runtime Error', 'Accepted'] | ['s721954936', 's942572609'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 58] |
p03316 | u618512227 | 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 , k = map(int, input().split())\nprint(n//(k-1))', "n = int(input())\nl = list(str(n))\ns = 0\nfor i in l:\n s += int(i)\nif n>=s and n//s == 0:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nl = list(str(n))\ns = 0\nfor i in l:\n s += int(i)\nif n//s == 0:\n print('Yes')\nelse:\n print('No')\n", "n = int(input())\nl = list(str(n))\ns = 0\nfor i in l:\n s += int(i)\nif n>=s and n%s == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s128108958', 's692906825', 's988668884', 's459814462'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 20.0] | [49, 129, 121, 128] |
p03316 | u623687794 | 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()\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")', 'n=input()\nl=len(n)\ns=0\nfor i in range(l):\n s+=int(n[i])\nif int(n)%s==0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s968792950', 's419784594'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 108] |
p03316 | u626228246 | 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 = list(str(N))\nprint("Yes" if N%(sum(n)==0 else "No")', 'N = int(input())\nNL = list(str(N))\nn = [int(i) for i in NL]\nprint("Yes" if N%(sum(n))==0 else "No")'] | ['Runtime Error', 'Accepted'] | ['s811416003', 's784519232'] | [8960.0, 9156.0] | [28.0, 37.0] | [72, 99] |
p03316 | u626337957 | 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_digit = 0\nfor i in range(len(N)):\n sum_digit += int(N[i])\nif N%sum_digit == 0:\n print('Yes')\nelse:\n print('No')\n", "N = input()\nsum_digit = 0\nfor i in range(len(N)):\n sum_digit += N[i]\nif N%sum_digit == 0:\n print('Yes')\nelse:\n print('No')", "N = input()\nsum_digit = 0\nfor i in range(len(N)):\n sum_digit += int(N[i])\nif int(N)%sum_digit == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s080716216', 's528267835', 's751854889'] | [2940.0, 3064.0, 3060.0] | [17.0, 18.0, 19.0] | [131, 125, 136] |
p03316 | u627325970 | 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()\ndigits = list(map(int, list(N)))\nsn = sum(digits)\n\nif sn % int(N)== 0:\n print('Yes')\nelse:\n print('No')", "N = input()\ndigits = list(map(int, list(N)))\nsn = sum(digits)\n\nif int(N) % sn == 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s445539164', 's951840608'] | [2940.0, 2940.0] | [17.0, 17.0] | [121, 122] |
p03316 | u627803856 | 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\ntmp = n\n\nwhile n > 0:\n sum += sum % 10\n n //= 10\n\nif tmp % sum == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\n\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 = int(input())\nsum = 0\ntmp = n\n\nwhile tmp > 0:\n sum += sum % 10\n tmp //= 10\n\nif n % sum == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\n\nsum = 0\ntmp = n\n\nwhile tmp > 0:\n sum += sum % 10\n tmp //= 10\n\nif n % sum == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\n\nsum = 0\ntmp = n\n\nwhile tmp > 0:\n sum += sum % 10\n tmp /= 10\n\nif n % sum == 0:\n print("Yes")\nelse:\n print("No")', 'def digitsum(n):\n ans = 0\n while n > 0:\n ans += n % 10\n n = n // 10\n return ans\n\nN = int(input())\nSumN = digitsum(N)\nif N % SumN == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s152545174', 's275806161', 's749197405', 's825825411', 's964509148', 's850359886'] | [3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [19.0, 17.0, 18.0, 17.0, 17.0, 18.0] | [138, 140, 140, 141, 140, 197] |
p03316 | u629540524 | 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())\ns = sum([int(n[i]) for i in range(len(n))])\nif n%s==0:\n print('Yes')\nelse:\n print('No')", "n = int(input())\ns = sum(map(int,list(str(n))))\nprint('Yes' if n%s == 0 else 'No')"] | ['Runtime Error', 'Accepted'] | ['s721369074', 's129140115'] | [9116.0, 8592.0] | [24.0, 28.0] | [111, 82] |
p03316 | u629607744 | 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())\ncnt = 0\nfor i in range(len(n)):\n\tcnt += n[i]\nif int(n)%cnt == 0:\n\tprint("Yes")\nelse:\n\tprint("No")', 'n = str(input())\ncnt = 0\nfor i in range(len(n)):\n\tcnt += int(n[i])\nif int(n)%cnt == 0:\n\tprint("Yes")\nelse:\n\tprint("No")\n'] | ['Runtime Error', 'Accepted'] | ['s600194939', 's328091591'] | [9100.0, 9144.0] | [25.0, 28.0] | [114, 120] |
p03316 | u635974378 | 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('Yes' if N%SN == 0 else 'No')", "N = input()\nSN = sum(map(int, list(N)))\nprint('Yes' if int(N)%SN == 0 else 'No')"] | ['Runtime Error', 'Accepted'] | ['s465835554', 's809696737'] | [2940.0, 3316.0] | [17.0, 20.0] | [75, 80] |
p03316 | u646989285 | 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())\nfor every_number in range(N + 1):\n number_list = [int(i) for i in str(every_number)]\n print(number_list)\nnumber_sum = sum(number_list)\nprint('Yes') if N % number_sum == 0 else print('No')\n", "N = int(input())\nnumber_sum = sum([int(i) for i in str(N)])\nprint('Yes') if N % number_sum == 0 else print('No')"] | ['Wrong Answer', 'Accepted'] | ['s328709826', 's802117089'] | [28844.0, 9160.0] | [2243.0, 25.0] | [211, 112] |
p03316 | u652081898 | 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()\nnum = int(input())\nlen = len(n)\nsn = 0\n\nfor i in range(len):\n sn += n[i]\n\nif n % sn == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\nnum = int(n)\nlen = len(n)\nsn = 0\n\nfor i in range(len):\n sn += int(n[i])\n\nif num % sn == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s550241690', 's560743887'] | [2940.0, 2940.0] | [18.0, 17.0] | [143, 145] |
p03316 | u652150585 | 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\nimport string\ninput=sys.stdin.readline\n\nn1=int(input())\nn=n1\nb=0\nwhile n>0:\n a=n%10\n n=n//10\n b+=a\nprint(b)\nif n1%b==0:\n print('Yes')\nelse:\n print('No')", "import sys\nimport string\ninput=sys.stdin.readline\n\nn=(input())\nl=list(n)\nn=int(n)\na=0\nfor i in range(len(l)):\n a+=int(l[i])\nif n%a==0:\n print('Yes')\nelse:\n print('No')", "import sys\nimport string\ninput=sys.stdin.readline\n\nn1=int(input())\nn=n1\nb=0\nwhile n>0:\n a=n%10\n n=n//10\n b+=a\n#print(b)\nif n1%b==0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s079244675', 's305092252', 's861672619'] | [3768.0, 3772.0, 3768.0] | [24.0, 24.0, 24.0] | [178, 176, 179] |
p03316 | u652656291 | 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_a = 0\nfor i in range(n):\n a = n[i]\n sum_a += a\nif n % sum_a == 0:\n print('Yes')\nelse:\n print('No')\n", "n = str(input())\nl = []\nfor i in range(n):\n a = n[i]\n l.append(a)\nsum_l = sum(l)\nif int(n) % sum_l == 0:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nl = []\nfor i in range(n):\n a = n[i]\n sum_a += a\nif n % sum_a == 0:\n print('Yes')\nelse:\n print('No')\n", "n = str(input())\nl = []\nfor i in range():\n a = n[i]\n l.append(a)\nsum_l = sum(l)\nif int(n) % sum_l == 0:\n print('Yes')\nelse:\n print('No')", "N = input()\nans = 0\nfor i in N:\n ans += int(i)\nif int(N)%ans == 0:\n print('Yes')\nelse:\n print('No') \n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s207204162', 's456068257', 's811854602', 's842100753', 's427254967'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 18.0, 17.0] | [124, 141, 121, 140, 110] |
p03316 | u658113376 | 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()\nSlist = list(S)\nres = 0\nfor i in Slist:\n res += int(i)\nprint(int(S) % res = 0)', 'S = int(input())\nSlist = list(str(S))\nres = 0\nfor i in Slist:\n res += int(i)\nif S % res == 0:\n print("yes")\nelse:\n print("no")', 'S = input()\nSlist = list(S)\nres = 0\nfor i in Slist:\n res += int(i)\nprint(int(S) % res == 0)', 'S = int(input())\nSlist = list(str(S))\nres = 0\nfor i in Slist:\n res += int(i)\nprint(S % res == 0)', 'S = int(input())\nSlist = list(str(S))\nres = 0\nfor i in Slist:\n res += int(i)\nif S % res == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s040009369', 's718506718', 's720035525', 's747775161', 's556154924'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0] | [91, 129, 92, 97, 129] |
p03316 | u663014688 | 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\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', 'n = int(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'] | ['Wrong Answer', 'Accepted'] | ['s844455040', 's943844967'] | [2940.0, 3064.0] | [17.0, 17.0] | [141, 142] |
p03316 | u665038048 | 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 range(len(N)):\n S += int(N[i])\nif N % S == 0:\n print('Yes')\nelse:\n print('No')\n", "N = input()\nS = 0\nfor i in range(len(N)):\n S += int(N[i])\nif int(N) % S == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s264113455', 's793401073'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 119] |
p03316 | u669173971 | 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=list(input())\nn=int(s)\nif n%(sum(s))==0:\n print('Yes')\nelse:\n print('No')", "i=input()\ns=list(map(int,i))\nn=int(i)\n\nif n%(sum(s))==0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s117532398', 's182219907'] | [3060.0, 2940.0] | [20.0, 20.0] | [77, 91] |
p03316 | u669770658 | 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\n\nwhile N > 0:\n sum += N % 10\n N = N // 10\n\nif sum % N == 0:\n print('Yes')\nelse:\n print('No')", 'n = str(input()); print("Yes" if int(n) % sum([int(n[i]) for i in range(len(n))]) == 0 else "No")'] | ['Runtime Error', 'Accepted'] | ['s916264016', 's211703948'] | [2940.0, 2940.0] | [20.0, 17.0] | [129, 97] |
p03316 | u672898046 | 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 = sum(list(map(int, n)))\nif n % sum == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nsum = sum(list(map(int, str(n))))\nif n % sum == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s408800381', 's578560457'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 102] |
p03316 | u685662874 | 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 n in N:\n sn += int(n)\n\nif N % sn == 0:\n print('Yes')\nelse:\n print('No')", "N=input()\nsn = 0\nfor n in N:\n sn += int(n)\n\nif int(N) % sn == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s870902239', 's136738323'] | [2940.0, 2940.0] | [18.0, 17.0] | [101, 106] |
p03316 | u686230543 | 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\ntmp = n\nwhile tmp:\n s += tmp % 10\n tmp // 10\nif n % s == 0:\n print('Yes')\nelse:\n print('No')", "str_n = input()\nn = int(str_n)\ns = 0\nfor digit in str_n:\n s += int(digit)\nif n % s == 0:\n print('Yes')\nelse:\n print('No')"] | ['Time Limit Exceeded', 'Accepted'] | ['s119004022', 's582879358'] | [2940.0, 2940.0] | [2104.0, 17.0] | [119, 124] |
p03316 | u688055251 | 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 solve (N):\n s=0\n for b in str(N):\n s = s + int(b)\n if N % s ==0:\n return 'Yes'\n else:\n return 'No'\n", "import sys\n\ndef solve (N):\n s=0\n for b in str(N):\n s = s + int(b)\n if N % s ==0:\n return 'Yes'\n else:\n return 'No'\n\n\ndef solve(n):\n \n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return int(line)\n\ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == '__main__':\n main()", "import sys\n\n\ndef solve (N):\n s=0\n for b in str(N):\n\n s = s + int(b)\n if N % s ==0:\n return 'Yes'\n else:\n return 'No'\n \n\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return int(line)\n\ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s086289402', 's894415360', 's013545017'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [136, 530, 517] |
p03316 | u689322583 | 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\nN = str(input())\nsum = 0\n\nfor i in range(len(S)):\n sum += int(N[i])\n\nif(int(N)%sum==0):\n print('Yes')\nelse:\n print('No')", "#coding: utf-8\n\nN = str(input())\nsum = 0\n\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'] | ['s976066563', 's379108100'] | [2940.0, 2940.0] | [17.0, 17.0] | [145, 145] |
p03316 | u690442716 | 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\ni = input()\na = i.split()\na = int(a[0])\nb = a\ns = 0\nfor i in range(len(i)):\n s = s + (a % 10)\n a = math.floor(a / 10)\n\nans = b % s\nprint(s)\nprint(ans)\n\nif (b % s == 0):\n print("Yes")\nelse:\n print("No")\n', 'import math\ni = input()\na = i.split()\na = int(a[0])\nb = a\ns = 0\nfor i in range(len(i)):\n s = s + (a % 10)\n a = math.floor(a / 10)\n\nans = b % s\n\n\nif (ans == 0):\n print("Yes")\nelse:\n print("No")\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s286960934', 's765878870'] | [3064.0, 3060.0] | [17.0, 17.0] | [226, 207] |
p03316 | u691018832 | 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\n\nn = int(input())\nn_check = n\nnum = []\nfor i in range(int(math.log10(n)+1)+1):\n print(num, n)\n num.append(n % 10)\n n /= 10\nif n_check%int(sum(num)) == 0:\n ans = 'Yes'\nelse:\n ans = 'No'\nprint(ans)", "import math\n\nn = int(input())\nn_check = n\nnum = []\nfor i in range(int(math.log10(n)+1)+1):\n num.append(n % 10)\n n /= 10\n n -= num[i]/10\nif n_check%int(sum(num)) == 0:\n ans = 'Yes'\nelse:\n ans = 'No'\nprint(ans)\n"] | ['Wrong Answer', 'Accepted'] | ['s487164511', 's363817743'] | [3188.0, 3060.0] | [18.0, 17.0] | [222, 224] |
p03316 | u695079172 | 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 = int(input())\n\nsm = sum([int(c) for c in s])\nif s%sm == 0:\n print("Yes")\nelse:\n print("No")', 's = int(input())\n\nsm = sum([int(c) for c in str(s)])\nif s%sm == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s398411346', 's260029568'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 101] |
p03316 | u697658632 | 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)\nsn = 0\nfor c in s:\n sn += int(c)\nif n % sn:\n print('Yes')\nelse:\n print('No')\n", "s = input()\nn = int(s)\nsn = 0\nfor c in s:\n sn += int(c)\nif n % sn == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s758975120', 's596688270'] | [3064.0, 2940.0] | [19.0, 17.0] | [103, 108] |
p03316 | u698416089 | 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. | ['i = 0\nwa = 0\nwhile i < len(str(N)):\n wa = wa + int(str(N)[i:i+1])\n i += 1\nif N % wa == 0:\n print("Yes")\nelif N % wa != 0:\n print("No")', 'i = 0\nwa = 0\nwhile i len(str(N)):\n wa = wa + int(str(N)[i:i+1])\n i += 1\nif N % wa == 0:\n print("Yes")\nelif N % wa != 0:\n print("No")', 'from sys import stdin\nN = int(stdin.readline().rstrip())\ni = 0\nwa = 0\nwhile i < len(str(N)):\n wa = wa + int(str(N)[i:i+1])\n i += 1\nif N % wa == 0:\n print("Yes")\nelif N % wa != 0:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s013818308', 's843329991', 's880050031'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [146, 136, 203] |
p03316 | u701318346 | 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\nSN = N % 10\nfor i in range(10):\n\tn = N\n\tSN += n // 10**(9 - i)\n\tn = n % 10**(9 - i)\n\nif N % SN == 0:\n\tprint('Yes')\nelse:\n\tprint('No')", "N = int(input())\n\nSN = N % 10\nfor i in range(1, 10):\n\tn = N\n\tSN += n // 10**(9 - i)\n\tn = n % 10**(9 - i)\n\nif N % SN == 0:\n\tprint('Yes')\nelse:\n\tprint('No')", "N = int(input())\n\nSN = 0\nn = N\nfor i in range(10):\n\tSN += n // 10**(9 - i)\n\tn = n % 10**(9 - i)\n\nif N % SN == 0:\n\tprint('Yes')\nelse:\n\tprint('No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s063562551', 's172275243', 's343206440'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [151, 154, 145] |
p03316 | u705418271 | 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\nif 1<=n<10:\n print("Yes")\n exit()\nelse:\n while n>10:\n s+=n%10\n n//=10\n if n%s==0:\n print("Yes")\n exit()\n\nprint("No")', 'n=str(input())\ns=0\nfor i in range(len(n)):\n s+=int(n[i])\n\nn=int(n)\nif n%s==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s126891099', 's846298822'] | [8944.0, 9168.0] | [27.0, 28.0] | [151, 113] |
p03316 | u710921979 | 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()\nnumlist=list(N)\nnumsum=0\nfor num in numlist:\n numsum+=int(num)\nif numsum%int(N)==0:\n print('Yes')\nelse:\n print('No')", "N=input()\nnumlist=list(N)\nnumsum=0\nfor num in numlist:\n numsum+=int(num)\nif int(N)%numsum==0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s211504973', 's151466534'] | [2940.0, 2940.0] | [18.0, 17.0] | [135, 135] |
p03316 | u729008627 | 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 str(N)]\nprint(sum(L))', "N = int(input())\nL = [int(x) for x in str(N)]\nS = sum(L)\nif N%S == 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s972381263', 's940871692'] | [2940.0, 2940.0] | [18.0, 17.0] | [59, 108] |
p03316 | u732870425 | 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\nfor i in range(len(n)):\n nsum += int(n[i])\n \nif int(n) % nsum == 0:\n print("Yes")\nelse:\n print("No")', 'n = input()\n\nnsum = 0\nfor i in range(len(n)):\n nsum += int(n[i])\n\nif int(n) % nsum == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s499002904', 's778449527'] | [2940.0, 2940.0] | [17.0, 17.0] | [125, 130] |
p03316 | u733814820 | 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. | ['from a import resolve\n\nimport sys\nfrom io import StringIO\nimport unittest\n\nclass TestClass(unittest.TestCase):\n def assertIO(self, input, output):\n stdout, stdin = sys.stdout, sys.stdin\n sys.stdout, sys.stdin = StringIO(), StringIO(input)\n resolve()\n sys.stdout.seek(0)\n out = sys.stdout.read()[:-1]\n sys.stdout, sys.stdin = stdout, stdin\n self.assertEqual(out, output)\n def test_入力例_1(self):\n input = """12"""\n output = """Yes"""\n self.assertIO(input, output)\n def test_入力例_2(self):\n input = """101"""\n output = """No"""\n self.assertIO(input, output)\n def test_入力例_3(self):\n input = """999999999"""\n output = """Yes"""\n self.assertIO(input, output)\n\nif __name__ == "__main__":\n unittest.main()\n', 'import sys\n\ndef resolve():\n n = int(input())\n s = str(n)\n sum = 0\n for c in s:\n sum += int(c)\n if n % sum == 0:\n print("Yes")\n else:\n print("No")\n return\n\nif __name__ == "__main__":\n resolve()\n'] | ['Runtime Error', 'Accepted'] | ['s329914560', 's373950782'] | [3192.0, 2940.0] | [25.0, 20.0] | [840, 210] |
p03316 | u735008991 | 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. | ['print(sum(map(int, input())))\n', 'N = int(input())\nprint(\'Yes\' if N % sum(map(int, str(N))) == 0 else "No")\n'] | ['Wrong Answer', 'Accepted'] | ['s771570007', 's714394001'] | [2940.0, 2940.0] | [17.0, 17.0] | [30, 74] |
p03316 | u736564905 | 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=n\nsn=0\nwhile(n>=10):\n sn=sn+n%10\n n=n/10\nsn=sn+n\n\nif num%sn==0:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nnum=n\nsn=0\nwhile(n>=10):\n sn=sn+n%10\n n=int(n/10)\n\nsn=sn+n\n\nif num%sn==0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s029567655', 's814785541'] | [9172.0, 9048.0] | [29.0, 24.0] | [119, 125] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.