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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02577 | u516525290 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['s = input()\n\ndef digitsum(n):\n for i in n:\n ni = int(i)\n res += ni\n return res \n\nres = digitsum(s)\nif res % 9 == 0:\n print("Yes")\nelse:\n print("No")\n', 'def digitsum(n):\n res = 0\n for i in n:\n #print(ni)\n ni = int(i)\n res += ni\n return res \n\... | ['Runtime Error', 'Accepted'] | ['s573810904', 's042622341'] | [9296.0, 9116.0] | [29.0, 56.0] | [175, 202] |
p02577 | u531427291 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = input()\ns = 0\nfor i in range(len(n)):\n s += int(n[i])\n \nif s % 9 == 0:\n print("yes")\nelse:\n print("no")', 'n = input()\ns = 0\nfor i in range(len(n)):\n s += int(n[i])\n \nif s % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s646470088', 's280586280'] | [9324.0, 9108.0] | [78.0, 78.0] | [119, 119] |
p02577 | u535720003 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N=int(input())\nif(N%9==0):\n\tprint('Yes')\nelse\n\tprint('No')", "N=int(input())\nif(N%9==0):\n\tprint('Yes')\nelse:\n\tprint('No')"] | ['Runtime Error', 'Accepted'] | ['s872306810', 's181038241'] | [8884.0, 9244.0] | [27.0, 207.0] | [58, 59] |
p02577 | u540631540 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = list(input())\nm = sum(n)\nif m % 9 == 0:\n print("Yes")\nelse:\n print("No")', 'n = list(input())\nx = 0\nfor i in range(len(n)):\n x += int(n[i])\nif x % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s131262615', 's540360856'] | [10544.0, 10492.0] | [30.0, 82.0] | [82, 120] |
p02577 | u541055501 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['print("YNeos"[int(input())%9==0::2])', 'print("YNeos"[int(input())%9!=0::2])'] | ['Wrong Answer', 'Accepted'] | ['s277225225', 's693616384'] | [9284.0, 9112.0] | [215.0, 212.0] | [36, 36] |
p02577 | u550091708 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N = int(input())\n\nsum_N = 0\n\nwhile N >= 10:\n print(N)\n sum_N += N % 10\n N = N //10\n\nif (sum_N+N) % 9 == 0:\n print('Yes')\nelse:\n print('No')\n \n", "N = int(input())\n\nif N%9 ==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s963343168', 's503878554'] | [9744.0, 9256.0] | [2212.0, 203.0] | [148, 65] |
p02577 | u551967750 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['s = input()\nn = 0\nfor i in range(len(s)):\n n += int(s[i:i+1])\nprint(n)\nif n % 9 == 0:\n print("Yes")\nelse:\n print("No")', 's = input()\nn = 0\nfor i in range(len(s)):\n n += int(s[i:i+1])\nif n % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s412256548', 's367329798'] | [9168.0, 9116.0] | [84.0, 94.0] | [121, 112] |
p02577 | u555311916 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n = list(input())\n\ncount = 0\nfor i in range(len(n)):\n count += int(n[i])\n count %= 9\nif count == 0:\n print('YES')\nelse:\n print('NO')", "n = list(input())\n\ncount = 0\nfor i in range(len(n)):\n count += int(n[i])\n count %= 9\nif count == 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s209566969', 's218281167'] | [10552.0, 10428.0] | [90.0, 83.0] | [144, 144] |
p02577 | u556589653 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\nans = 0\nfor i in range(len(N)):\n ans += N[i]\nprint("Yes") if ans%9 == 0 else print("No")', 'N = input()\nans = 0\nfor i in range(len(N)):\n ans += int(N[i])\nprint("Yes") if ans%9 == 0 else print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s882514875', 's191306792'] | [9072.0, 9176.0] | [23.0, 77.0] | [101, 107] |
p02577 | u562147608 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['a = int(input())\ndef getSum(n):\n s = 0\n while (n != 0):\n s = s + (n % 10)\n n = n // 10\n return s\nprint(getSum(a))', 'a = input()\ns = 0\nfor i in a:\n s += int(i)\nif s % 9 == 0 :\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s009581865', 's688346305'] | [9244.0, 9320.0] | [2206.0, 68.0] | [136, 100] |
p02577 | u565674810 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['# your code goes here\nn=input()\nsum=0\nfor i in n:\n\tsum+=int(i)\nif(sum%9==0):\n\tprint("YES")\nelse:\n\tprint("NO")\n\t', '# your code goes here\nn=input()\nsum=0\nfor i in n:\n\tsum+=int(i)\nif(sum%9==0):\n\tprint("Yes")\nelse:\n\tprint("No")\n\t'] | ['Wrong Answer', 'Accepted'] | ['s754184778', 's706854848'] | [9200.0, 9236.0] | [70.0, 70.0] | [111, 111] |
p02577 | u573332356 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\n\nnum = 0\nfor n in N:\n num = num + int(n)\n\nprint(num)\nprint("Yes") if(num % 9 == 0) else print("No")\n', 'N = input()\n\nnum = 0\nfor n in N:\n num = num + int(n)\n\nprint("Yes") if(num % 9 == 0) else print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s096221917', 's556158322'] | [9212.0, 9184.0] | [67.0, 66.0] | [115, 104] |
p02577 | u576432509 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['\nimport sys\ninput = sys.stdin.readline\n\nn=input()\n\nnn=0\nfor i in range(len(n)):\n nn+=int(n[i])\n\nif nn%9==0:\n print("Yes")\nelse:\n print("No")\n ', 'n=input()\n\nnn=0\nfor i in range(len(n)):\n nn+=int(n[i])\n\nif nn%9==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s717483558', 's667143648'] | [9124.0, 9244.0] | [73.0, 76.0] | [154, 109] |
p02577 | u580273604 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["from sys import stdin\ninput = stdin.readline\nN=str(input())\nNN=0\nfor i in range(len(N)):\n NN=NN+int(N[i])\n \nif NN%9==0:print('Yes')\nelse:print('No')", "N=str(input())\nNN=0\nfor i in range(len(N)):\n NN=NN+int(N[i])\n \nif NN%9==0:print('Yes')\nelse:print('No')"] | ['Runtime Error', 'Accepted'] | ['s984557313', 's293782882'] | [9064.0, 9200.0] | [69.0, 75.0] | [152, 107] |
p02577 | u581641595 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n = int(input())\nsum1 = 0\nwhile n>0:\n sum1 += n%10\n n = n//10\n\nif sum1%9 == 0:\n print('YES')\nelse:\n print('NO')", "n = int(input())\nsum1 = 0\nwhile n>0:\n sum1 += n%10\n n/=10\nif sum1%9 == 0:\n print('YES')\nelse:\n print('NO')", "n = int(input())\nsum1 = 0\nwhile n>0:\n sum1 += n%10\n n= n//10\n... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s145315155', 's186999035', 's500872722', 's750670400', 's248954479'] | [9224.0, 9184.0, 9160.0, 9192.0, 9224.0] | [2206.0, 213.0, 2205.0, 212.0, 219.0] | [115, 110, 113, 117, 69] |
p02577 | u582489208 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = input()\nif n % 9 == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nif n % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s260752580', 's872060625'] | [9132.0, 9300.0] | [24.0, 206.0] | [65, 70] |
p02577 | u583363497 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=(int.input())\nif n%9==0:\n print(Yes)\nelse :\n print(No)\n ', 'n=int(input())\nif n%9==0:\n print("Yes")\nelse:\n print("No")\n '] | ['Runtime Error', 'Accepted'] | ['s546818031', 's458583311'] | [9008.0, 9296.0] | [25.0, 207.0] | [61, 63] |
p02577 | u587375413 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['map(input, N)\nsum = lambda i :sum+i for i in str(N)\nif sum/9 print "Yes" else "No"', 'def sum_i(N):\n return sum(list(int(i) for i in str(N)))\n\n\nprint("No") if sum_i(input()) % 9 else print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s568549452', 's234329769'] | [9000.0, 10624.0] | [22.0, 53.0] | [82, 112] |
p02577 | u587429593 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n = int(input())\nt = int(input())\n\nfor i in range(len(n)):\n t += n[i]\n\nif t % 9 == 0:\n print('Yes')\nelse t % 9 == 0:\n print('No')", "n = input()\n\nt = 0\n\nfor i in n:\n t += int(i)\n\nif t % 9 == 0:\n print('Yes')\nelse t % 9 != 0:\n print('No')", "n = input()\n\nt = 0\n\nfor i in n:\n t += int(i)\n... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s315589038', 's616253671', 's868097460'] | [8912.0, 8948.0, 9244.0] | [26.0, 21.0, 68.0] | [132, 107, 99] |
p02577 | u589432040 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\nS = 0\nfor i in N:\n S+=int(i)\n\nif i%9 == 0:\n print("Yes")\nelse:\n print("No")', 'N = input()\nS = 0\nfor i in N:\n S+=int(i)\n\nif S%9 == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s680340234', 's861289465'] | [9212.0, 9228.0] | [61.0, 67.0] | [90, 91] |
p02577 | u589734885 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = input()\n\n\ndef solve1(n: int) -> str:\n k = 0\n for i in range(len(n)):\n k += int(n[i])\n\n if k % 9 == 0:\n return "Yes"\n else:\n return "No"\n\n\ndef solve2(n: int) -> str:\n if n % 9 == 0:\n return "Yes"\n else:\n return "No"\n\n\nsolve2(n)\n', 'n = int(... | ['Runtime Error', 'Accepted'] | ['s983642794', 's393701148'] | [9344.0, 9152.0] | [24.0, 206.0] | [284, 296] |
p02577 | u590091673 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = int(input())\n\nn = str(N)\n\nle = len(n)\n\nM = []\n\nfor i in range(le):\n nn = int(n[i])\n M.append(nn)\n\nif sum(M) % 9 == 0:\n print("Yes")\nelse:\n print("No")\n\nprint(M)', 'N = int(input())\n\nn = str(N)\n\nle = len(n)\n\nM = 0\n\nfor i in range(le):\n nn = int(n[i])\n M += nn\n\nif M % ... | ['Wrong Answer', 'Accepted'] | ['s381766379', 's206372245'] | [12272.0, 9180.0] | [746.0, 732.0] | [176, 155] |
p02577 | u596847957 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N=str(input())\nL=len(N)\nX=0\nans=None\n\nfor i in range(0,L):\n Y=int(N[i])\n X=X+Y\n\nif X%9==0:\n ans="yes"\nelse:\n ans="no"\n\nprint(ans)', 'N=str(input())\nL=len(N)\nX=0\nans=None\n\nfor i in range(0,L):\n Y=int(N[i])\n X=X+Y\n\nif X%9==0:\n ans="Yes"\nelse:\n ans="No"\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s732204560', 's062911913'] | [9168.0, 9116.0] | [88.0, 87.0] | [141, 141] |
p02577 | u607816468 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\ncheck = 0\nfor i in N:\n check += i\nif check % 9 == 0:\n print("Yes")\nelse:\n print("No")\n', 'N = input()\ncheck = 0\nfor i in N:\n check += int(i)\nif check % 9 == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s574020100', 's533624619'] | [9100.0, 9188.0] | [26.0, 66.0] | [101, 106] |
p02577 | u612635771 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['a = input()\nfor i in range(len(a)):\n total = total + int(a[i])\nprint("Yes" if total % 9 == 0 else "No")', 'a = int(input())\nprint("Yes" if a % 9 == 0 else "No")'] | ['Runtime Error', 'Accepted'] | ['s692225147', 's057535463'] | [9136.0, 9304.0] | [26.0, 206.0] | [104, 53] |
p02577 | u618187934 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['def digitSum(n):\n s = str(n)\n array = list(map(int, s))\n return sum(array)\na= int(input())\nif digitsum(a) % 9 == 0:\n print(Yes)\nelse:\n print(No)', 'N=int(input())\nif N%9==0:\n print(Yes)\nelse:\n print(No)', 'def digitSum(n):\n s = str(n)\n array = list(map(int, s))\n return sum... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s115370600', 's392166916', 's899702057', 's089422373'] | [9156.0, 9192.0, 10992.0, 11152.0] | [211.0, 212.0, 746.0, 708.0] | [159, 60, 159, 169] |
p02577 | u620098028 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N = int(input())\nif N % 9 == 0:\n print('Yse')\nelse:\n print('No')", "N = int(input())\nif N % 9 == 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s935026545', 's854229457'] | [9256.0, 9188.0] | [204.0, 219.0] | [66, 66] |
p02577 | u629607744 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['def i():\n\treturn int(input())\ndef i2():\n\treturn map(int,input().split())\ndef s():\n\treturn str(input())\ndef l():\n\treturn list(input())\ndef intl():\n\treturn list(int(k) for k in input().split())\n\nn = s()\nmemo = 0\nfor i in range(len(n)):\n\tmemo += int(n[i])\nif memo%9 == 0:\n\tprint("Yes")\nelse:\n\tpr... | ['Wrong Answer', 'Accepted'] | ['s565528496', 's853620084'] | [9296.0, 9308.0] | [78.0, 81.0] | [317, 301] |
p02577 | u644666189 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['def digital_root(n):\n return n % 9 or n and 9\n\n\nif __name__ == "__main__" :\n num = input()\n if(digital_root(num)%9==0):\n print("Yes")\n else:\n print("No")', 'def digital_root(n):\n return n if n < 10 else digital_root(sum(map(int,str(n))))\n\nn = input()\nif(digital_root(n) % 9 == 0):\n print("Yes... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s412497763', 's578720075', 's709673725', 's458897994'] | [9124.0, 9160.0, 9132.0, 9220.0] | [33.0, 29.0, 28.0, 744.0] | [163, 159, 159, 165] |
p02577 | u645183909 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = input()\n\nn_list = list(n)\nans = sum(n_list)\n\nprint("Yes" if (ans % 9) == 0 else "No")', 'import math\n\nn = input()\n\nn_list = map(int, list(n))\nans = sum(n_list)\n\nprint("Yes" if (ans % 9) == 0 else "No")\n'] | ['Runtime Error', 'Accepted'] | ['s461467883', 's814115096'] | [10412.0, 10484.0] | [27.0, 47.0] | [89, 113] |
p02577 | u651255388 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = list(map(int, input().split()))\nresult = "YES" if sum(n) % 9 == 0 else "NO"\nprint(result)\n', 'n = list(map(int, input().split()))\nresult = "Yes" if sum(n) % 9 == 0 else "No"\nprint(result)'] | ['Wrong Answer', 'Accepted'] | ['s543660839', 's090695800'] | [9336.0, 9164.0] | [215.0, 216.0] | [94, 93] |
p02577 | u656120612 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['a=0\nn=input()\nn=list(n)\nn=list(map(int,n))\na=sum(n)\nif a%9==0:\n print("YES")\nelse:\n print("No")', 'a=0\nn=input()\nn=list(n)\nn=list(map(int,n))\na=sum(n)\nif a%9==0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s623505358', 's928154746'] | [12156.0, 11992.0] | [54.0, 58.0] | [101, 101] |
p02577 | u658600714 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n = input()\nifn%9 == 0:\n print('Yes')\nelse:\n print('No')", "n = input()\nif n%9 == 0:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nif n%9 == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s280571861', 's291035062', 's462285692'] | [9008.0, 9176.0, 9184.0] | [28.0, 27.0, 206.0] | [58, 59, 64] |
p02577 | u659634410 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['a = input()\n\na = int(a)\n\nb = a\n\nb = int(b)\n\nif a % 9 == 0:\n\n for i in range(a):\n b += b % pow(10, i)\n\nelse:\n print("No")\n exit()\n\nif b % 9 == 0:\n print("Yes")\nelse:\n print("No")\n', 'a = input()\n\na = int(a)\n\nif a % 9 == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Time Limit Exceeded', 'Accepted'] | ['s402565162', 's703798920'] | [9368.0, 9232.0] | [2206.0, 218.0] | [200, 79] |
p02577 | u668078904 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N=int(input())\nif(N%9==0):\n print('YES')\nelse:\n print('NO')", "N=int(input())\nif(N%9==0):\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s826825805', 's967015259'] | [9244.0, 9216.0] | [207.0, 217.0] | [61, 61] |
p02577 | u669315378 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N=int(imput())\nif N%9 == 0:\n print("Yes")\nelse:\n print("No")', 'N=int(input())\nif N%9 == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s990136366', 's999862357'] | [8944.0, 9252.0] | [25.0, 218.0] | [62, 63] |
p02577 | u671204079 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N = input()\nsum = 0\nfor i in N:\n sum = sum + int(i)\nif (sum%9):\n print('NO')\nelse:\n print('YES')", "N = input()\nsum = 0\nfor i in N:\n sum = sum + int(i)\nif (sum%9):\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s813472962', 's189762861'] | [9276.0, 9204.0] | [74.0, 74.0] | [99, 100] |
p02577 | u673173160 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = input()\nfor i in range(len(n)):\n count += int(n[i])\nif count%9 == 0:\n print("Yes")\nelse:\n print("No")', 'import sys, math, itertools, collections, bisect\ninput = lambda: sys.stdin.buffer.readline().rstrip().decode(\'utf-8\') \ninf = float(\'inf\') ;mod = 10**9+7 \nmans = inf ;ans = 0 ;count = 0 ;p... | ['Runtime Error', 'Accepted'] | ['s118221259', 's554140532'] | [9012.0, 9668.0] | [21.0, 79.0] | [114, 309] |
p02577 | u682894596 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = str(input())\n\ns = list(map(int,N))\n\nS = sum(s)\n\nif S % 9 = 0:\n print(Yes)\nelse:\n print(No)', 'N = str(input())\nM = list(map(int, N))\nS = sum(M)\n\nif S % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s610816152', 's765351573'] | [8896.0, 10712.0] | [22.0, 48.0] | [96, 100] |
p02577 | u684849102 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = int(input())\nA = list(map(int, input().split()))\n\na=0\nresult=0\n\nfor i in range(n-1):\n if A[i] > A[i+1]:\n a = A[i] - A[i+1]\n result += a\n \nprint(result)', 'n = int(input())\n\nSUM = sum(list(map(int, str(n))))\n\nif SUM % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s878994971', 's552856456'] | [9184.0, 11172.0] | [202.0, 706.0] | [165, 104] |
p02577 | u686817216 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N=input()\n\nif N%9==0:\n\tprint("Yes")\nelse:\n\tprint("No")', 'N=input()\na=[int(i) for i in N\nb=sum(a)\n\nif b%9==0:\n\tprint("Yes")\nelse:\n\tprint("No")', 'N=input()\na=[int(i) for i in N]\nb=sum(a)\n\nif b%9==0:\n\tprint("Yes")\nelse:\n\tprint("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s284865884', 's938372341', 's774710409'] | [9228.0, 8804.0, 10792.0] | [28.0, 28.0, 59.0] | [54, 84, 85] |
p02577 | u687332123 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n=input()\n#lst=list(n)\n#print(lst)\ns=0\nfor i in lst:\n s+=int(i)\nif s%9==0:\n print('Yes')\nelse:\n print('No')", "n=input()\n#lst=list(n)\nprint(lst)\ns=0\nfor i in lst:\n s+=int(i)\nif s%9==0:\n print('Yes')\nelse:\n print('No')", "n=input()\nlst=list(n)\ns=0\nfor i in lst:\n s+=int(i)\nif... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s003378174', 's716292838', 's984711858', 's740870874'] | [9188.0, 9264.0, 10532.0, 10536.0] | [29.0, 21.0, 74.0, 73.0] | [116, 115, 103, 115] |
p02577 | u689281702 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["num = input()\n\ncount = 0\nfor i in range(len(num)):\n count += int(num[i])\n\nif count % 9 == 0:\n print('yes')\nelse:\n print('no')", "num = input()\ncount = 0\nfor i in range(len(num)):\n count += int(num[i])\nif count % 9 == 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s509430945', 's399349745'] | [9320.0, 9268.0] | [73.0, 77.0] | [134, 132] |
p02577 | u692746605 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n,t=input(),0\n\nfor i in range(len(n)):\n t+=int(n[i])\n\n print('No' if t%9 else 'Yes')\n", "n,t=input(),0\n\nfor i in range(len(n)):\n t+=int(n[i])\n\nprint('No' if t%9 else 'Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s991705572', 's427552958'] | [8948.0, 9092.0] | [24.0, 75.0] | [86, 85] |
p02577 | u694321332 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\n\nsum_of_digits = 0\nfor digit in str(N):\n sum_of_digits += int(digit)\nif sum_of_digits % 9 == 0:\n print("yes")\nelse:\n print("No")', 'N = input()\n\nsum_of_digits = 0\nfor digit in str(N):\n sum_of_digits += int(digit)\nif sum_of_digits % 9 == 0:\n print("Yes")\nelse:\n print("No")... | ['Wrong Answer', 'Accepted'] | ['s511868338', 's452260469'] | [9272.0, 9200.0] | [73.0, 74.0] | [149, 149] |
p02577 | u697377589 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = int(input())\nif N / 9 == 0:\n print("Yes")\nelse :\n print("No")', 'N=int(input())\nif N%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s229889138', 's236294294'] | [9212.0, 9220.0] | [214.0, 203.0] | [71, 66] |
p02577 | u698060511 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['summation = sum([int(i) for i in s])\nis_mul = summation%9\nif is_mul == 0:\n print("Yes")\nelse:\n print("No")', '\ns = input()\nis_mul = sum([int(i) for i in s])%9\nif is_mul:\n print("Yes")\nelse:\n print("No")', 's = input()\nsummation = sum([int(i) for i in s])\nis_mul = summation%9\nif is_mul == 0:\n print... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s142126210', 's971452143', 's336825060'] | [9004.0, 10872.0, 10600.0] | [20.0, 55.0, 58.0] | [108, 94, 120] |
p02577 | u699101754 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=input()\nsm=0\nfor i in n:\n sm+=int(i)\nreturn sm%9', 'n=int(input())\nif n%9==0:\n print("Yes")\nelse:\n print("No")\n\n'] | ['Runtime Error', 'Accepted'] | ['s259743692', 's644690804'] | [8948.0, 9216.0] | [30.0, 205.0] | [51, 62] |
p02577 | u699715278 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N_st = input()\nnum = 0\nfor i in N_st:\n num += int(i)\n\nif num % 9 == 0:\n print('yes')\nelse:\n print('No')\n", "N_st = input()\nnum = 0\nfor i in N_st:\n num += int(i)\n\nif num % 9 == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s352850593', 's762329417'] | [9184.0, 9272.0] | [68.0, 69.0] | [113, 113] |
p02577 | u702399883 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=int(input())\nl=[int(x) for x in list(str(n))]\nprint(sum(l))', "n=int(input())\nl=[int(x) for x in list(str(n))]\nresult=sum(l)\nif result%9==0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s551752894', 's195429846'] | [12384.0, 12316.0] | [753.0, 759.0] | [61, 112] |
p02577 | u703092276 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N=int(input());tt=0\nwhile(N>1):\n tt+=(N%10);N//=10\nprint("No" if tt%9 else "Yes")', 'N=int(input());tt=0\nwhile(N):tt+=(N%10);N//=10\nprint("NO" if tt%9 else "YES")', 'N=int(input());tt=0\nwhile(N>1):tt+=(N%10);N//=10\nprint("NO" if tt%9 else "YES")', 'print("No"if int(input())%9 else "Yes")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s180441114', 's371362971', 's752975824', 's338150519'] | [8996.0, 9100.0, 9164.0, 9144.0] | [2205.0, 2205.0, 2205.0, 207.0] | [84, 77, 79, 39] |
p02577 | u710526715 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['number = int(input("enter your no"))\n\nsum_of_digits = 0\nfor digit in str(number):\n sum_of_digits += int(digit)\nif(sum_of_digits%9==0):\n print("yes")\nelse:\n print("No")\n\n\n', 'number = int(input("enter your no"))\n\nsum_of_digits = 0\nfor digit in str(number):\n sum_of_digits += int(digit)\nif(su... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s332891675', 's837444356', 's885608035'] | [9188.0, 9148.0, 9220.0] | [721.0, 764.0, 765.0] | [179, 179, 164] |
p02577 | u711238850 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['def main():\n n = input()\n \n\n if n%9==0:\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == "__main__":\n main()', 'def main():\n n = int(input())\n \n\n if n%9==0:\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == "__main__":\n main()'] | ['Runtime Error', 'Accepted'] | ['s207499821', 's837222102'] | [9252.0, 9216.0] | [28.0, 217.0] | [139, 144] |
p02577 | u723612973 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['digsum(n):\n if(n==0):\n return 0\n if(n%9==0):\n return 9\n else:\n \treturn n%9\nn=int(input())\nd=digsum(n)\nif(d==9 or d==0):\n print("Yes")\nelse:\n print("No");', 'def digsum(n):\n if(n==0):\n return 0\n if(n%9==0):\n return 9\n else:\n \treturn n%9\nn=int(input())\nd=digsum(n)\nif(d==9 or... | ['Runtime Error', 'Accepted'] | ['s181381937', 's156071110'] | [8860.0, 9176.0] | [25.0, 218.0] | [165, 169] |
p02577 | u725359833 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['str_n = input()\nn = int(str_n)\n\nif sum(map(int, list(str_n))) % 9 == 0:\n print(\'yes\')\nelse:\n print("no")\n', 'str_n = input()\n\nif sum(map(int, list(str_n))) % 9 == 0:\n print(\'Yes\')\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s511670796', 's795127475'] | [10680.0, 10560.0] | [237.0, 56.0] | [111, 96] |
p02577 | u725518274 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=input()\ns=0\nfor i in n:\n s+=int(i)\nif s%9==0:\n print(Yes)\nelse:\n print("No")\n ', 'n=input()\ns=0\nfor i in n:\n s+=int(i)\n s=s%9\nif s%9==0:\n print(Yes)\nelse:\n print("No")\n ', 'n=input()\ns=0\nfor i in n:\n s+=int(i)\n s=s%9\nif s%9==0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s191840190', 's931058221', 's947325345'] | [9156.0, 9184.0, 9144.0] | [71.0, 72.0, 83.0] | [84, 92, 92] |
p02577 | u726823037 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["import sys\nimport math\ndef Ii():return int(sys.stdin.readline())\ndef Mi():return map(int,sys.stdin.readline().split())\ndef Li():return list(map(int,sys.stdin.readline().split()))\n\ns = sys.stdin.readline()\nans = 0\nfor i in s:\n ans += int(i)\n ans %= 9\n\nprint('Yes' if ans%9 == 0 else 'No')", "import sys\ni... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s023595941', 's267613679', 's797233132', 's673672055'] | [9324.0, 9240.0, 9164.0, 9180.0] | [71.0, 71.0, 75.0, 75.0] | [289, 289, 290, 305] |
p02577 | u727051308 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['if (int(input())%9 == 0:\n print("Yes")\nelse:\n print("No")', 'if (int(input()))%9 == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s238174139', 's653827053'] | [8996.0, 9168.0] | [26.0, 205.0] | [63, 61] |
p02577 | u727360543 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\nN_len = len(N)\nnum = 0\n\nfor i in range(N_len):\n num += int(N(i))\n \nif (num % 9 == 0):\n print("yes")\nelse:\n print("no")\n', 'N = input()\n\nnum = 0\n\nfor n in N:\n num += int(n)\n \nif num % 9 == 0:\n print("yes")\nelse:\n print("no")', 'N = input()\n\nnum = 0\n\nfor n in N:\n num += in... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s453083688', 's871564963', 's718276613'] | [9128.0, 9312.0, 9264.0] | [32.0, 70.0, 65.0] | [135, 104, 105] |
p02577 | u729008627 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N = int(input())\nS = 0\nfor i in range(2*10**5)\n digit = N%10\n S += digit\n N = N//10\nT = 0\nwhile S > 0:\n digit = S%10\n T += digit\n S = S//10\nif T%9 == 0:\n print('Yes')\nelse:\n print('No')\n", "N = int(input())\nS = 0\nwhile N > 9:\n digit = N%10\n S += digit\n N = N//10\nif S%9 == 0:\n print('... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s299527546', 's889877889', 's248255745'] | [8868.0, 9324.0, 9312.0] | [25.0, 2206.0, 205.0] | [194, 124, 63] |
p02577 | u729245484 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['num = int(input())\nans = num%9\n\nif ans == 0:\n print("YES")\nelse:\n print("NO")', 'num = int(input())\nans = num%9\n\nif ans == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s203839450', 's369430303'] | [9260.0, 9264.0] | [208.0, 205.0] | [79, 79] |
p02577 | u729939940 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\nfor i in range(10):\n cnt += i * N.count(str(i))\nprint("Yes" if cnt % 9 == 0 else "No")', 'N = input()\ncnt = 0\nfor i in range(10):\n cnt += i * N.count(str(i))\nprint("Yes" if cnt % 9 == 0 else "No")'] | ['Runtime Error', 'Accepted'] | ['s557815871', 's603659052'] | [9184.0, 9256.0] | [30.0, 37.0] | [99, 107] |
p02577 | u738439089 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N=input()\nsum_of_num=0\nfor i in N:\n sum_of_num+=int(i)\nif sum_of_num/9==0:\n print("Yes")\nelse:\n print("No")\n ', 'N=input()\nsum_of_num=0\nfor i in N:\n sum_of_num+=int(i)\nif sum_of_num%9==0:\n print("Yes")\nelif N==0:\n print("No")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s971687838', 's692952681'] | [9152.0, 9252.0] | [67.0, 66.0] | [113, 137] |
p02577 | u742723561 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['\nnumberString = input()\nprint(numberString)\nsumNumber = 0\n\n\nfor i in range(len(numberString)):\n sumNumber += int(numberString[i])\n\n\nif sumNumber % 9 == 0:\n print("Yes")\nelse:\n print("No")', '\nnumberString = input()\nsumNumber = 0\n\n\nfor i in range(len(numberString)):\n sumNumber += int(numberStrin... | ['Wrong Answer', 'Accepted'] | ['s465628503', 's193455537'] | [9172.0, 9208.0] | [78.0, 76.0] | [308, 293] |
p02577 | u752200367 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["l = list(map(int, input()))\ns = 0\nfor i in l:\n s += i\nif s % 9 == 0:\n print('yes')\nelse:\n print('no')\n", "l = list(map(int, input()))\ns = 0\nfor i in l:\n s += i\nif s % 9 == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s301777373', 's903878475'] | [10756.0, 10560.0] | [67.0, 66.0] | [111, 111] |
p02577 | u755116850 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['# coding: utf-8\nfrom functools import reduce\nfrom queue import Queue\n\nH, W = list(map(int, input().split(" ")))\ncurrent_h, current_w = list(map(int, input().split(" ")))\ncurrent_h -= 1\ncurrent_w -= 1\ngoal_h, goal_w = list(map(int, input().split(" ")))\ngoal_h -= 1\ngoal_w -= 1\n\ntable = [list(input()) for _ ... | ['Runtime Error', 'Accepted'] | ['s402859288', 's031805470'] | [9908.0, 12640.0] | [216.0, 74.0] | [3672, 180] |
p02577 | u768199898 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\nN_list = []\nfor i in range(N):\n N_list.append(N[i])\nif sum(N_list) %9 == 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nif N%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s112135474', 's611273580'] | [9076.0, 9244.0] | [29.0, 208.0] | [123, 64] |
p02577 | u771869879 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N = input()\n\nsum = sum([int(i) for i in N])\nif sum % 9 == 0:\n print('YES')\nelse:\n print('NO')\n", "N = int(input())\n\nif N % 9 == 0:\n print('YES')\nelse:\n print('NO')", "N = input()\n\nsum = sum([int(i) for i in N])\nif sum % 9 == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s366823502', 's917212999', 's906639121'] | [10736.0, 9244.0, 10784.0] | [57.0, 203.0, 54.0] | [96, 67, 96] |
p02577 | u773440446 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["s = int(input())\nq = []\nfor i in s:\n q.append(i)\nif sum(q)%9 == 0:\n print('Yes')\nelse:print('No')", "s = input()\nq = []\nfor i in s:\n q.append(int(i))\nif sum(q)%9 == 0:\n print('Yes')\nelse:print('No')"] | ['Runtime Error', 'Accepted'] | ['s703516777', 's244423410'] | [9248.0, 10928.0] | [200.0, 72.0] | [99, 99] |
p02577 | u782521628 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["import numpy as np\n\nN = str(input())\narray = np.array(list(map(int, s)))\n\ns = np.sum(array)\nif s % 9 == 0:\n print('Yes')\nelse:\n print('No')", "import numpy as np\n\nN = str(input())\narray = np.array(list(map(int, N)))\n\ns = np.sum(array)\nif s % 9 == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s185323913', 's694975868'] | [27480.0, 30220.0] | [128.0, 154.0] | [141, 141] |
p02577 | u815043514 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=int(input())\ns=str(n)\narray = list(map(int,s))\nif array%9==0:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nstr(n)\narray = list(map(int,s))\nif array%9==0:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\ns=str(n)\narray = list(map(int,s))\nif sum(array)%9==0:\n print("Yes")\nelse:... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s011285697', 's849602854', 's665406457'] | [11032.0, 9244.0, 11064.0] | [702.0, 682.0, 706.0] | [102, 100, 107] |
p02577 | u816171517 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=int(input())\n\nif n%9:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\n\nif n%9==0:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s314221912', 's225288976'] | [9212.0, 9168.0] | [203.0, 206.0] | [62, 66] |
p02577 | u816631826 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['s = input()\nsuma = 0\nfor x in s:\n\tsuma += int(x)\nif suma % 9 == 0:\n\tprint("YES")\nelse: print("NO")', 'x = input("")\nfor i in range(3):\n alist = list(map(int,x))\n result = sum(alist)\n x = str(result)\nif result % 9 == 0 :\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s934292817', 's864000546'] | [9232.0, 10576.0] | [67.0, 50.0] | [98, 165] |
p02577 | u822984882 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['if __name__ == "__main__":\n x = input()\n x = int(x)\n\n digits = 200000\n index = 200000\n\n tmp1 = []\n for i in range(digits):\n tmp2 = pow(2,index)\n\n if(tmp2>x):\n continue\n tmp3 = x%tmp2\n if tmp2 != 0:\n x -= tmp3*index\n tmp1.ap... | ['Time Limit Exceeded', 'Accepted'] | ['s529109357', 's881333176'] | [10016.0, 9232.0] | [2206.0, 61.0] | [432, 356] |
p02577 | u823885866 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["import sys\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\nfrom functools import reduce\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split())... | ['Runtime Error', 'Accepted'] | ['s466274224', 's241646458'] | [9044.0, 27176.0] | [33.0, 164.0] | [511, 497] |
p02577 | u828738107 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = str(input())\nans = 0\nfor i in n: ans = (ans + int(i - \'0\')) % 9\nif ans: print ("No")\nelse: print("Yes")\n\n', 'n = str(input())\nans = 0\nfor i in range(len(n)): \n\tans = (ans + int(ord(i) - ord(\'0\'))) % 9\nif ans: print ("No")\nelse: print("Yes")\n\n', 'n = str(input())\nans = 0\nfor i in range(len(n)):... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s747567622', 's851111036', 's452440532'] | [9140.0, 9112.0, 9180.0] | [27.0, 28.0, 80.0] | [109, 133, 127] |
p02577 | u832039789 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["\nn = int(input())\nif n % 9 == 0:\n print('YES')\nelse:\n print('NO')", "\nn = int(input())\nif n % 9 == 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s176701215', 's034818663'] | [9260.0, 9232.0] | [210.0, 217.0] | [122, 122] |
p02577 | u835090251 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=int(input())\na=0\nwhile n%10!=0:\n a=a+n%10\nif a%9==0:\n print("Yes")\nelse:\n print("No")', 'n=input()\na=len(n)\nb=0\nfor i in range(a):\n b=b+int(n[i])\nprint(b)\n', 'n=input()\na=len(b)\nb=0\nfor i in range(a):\n b=b+int(n[i])\nif b%9==0:\n print("Yes")\nelse:\n print("No")\n', 'n=input()\na=len(n)\nb=... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s282854466', 's341562265', 's776382739', 's968412687'] | [9284.0, 9100.0, 9192.0, 9132.0] | [2205.0, 78.0, 26.0, 72.0] | [90, 67, 104, 104] |
p02577 | u843135954 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["print('Yes' if int(input())%9 else 'No')\n", "print('No'if int(input())%9 else'Yes')"] | ['Wrong Answer', 'Accepted'] | ['s602445845', 's453753943'] | [9208.0, 9224.0] | [213.0, 219.0] | [41, 38] |
p02577 | u845982808 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = list(map(int, input()))\nans = 0\nfor i in n:\n ans += i * (i+1)//2\n continue\n\nif ans % 9 == 0:\n print("YES")\nelse:\n print("NO")', 'n = list(map(int, input()))\nans = 0\nfor i in n:\n ans = i * (i+1)//2\n continue\n\nif ans % 9 == 0:\n print("YES")\nelse:\n print("NO")', 'n = list(ma... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s029773399', 's208509697', 's244472035', 's331807606', 's832331219', 's686001489'] | [10636.0, 10660.0, 10536.0, 9164.0, 10640.0, 9320.0] | [71.0, 66.0, 73.0, 203.0, 71.0, 206.0] | [141, 140, 139, 70, 141, 66] |
p02577 | u848535504 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['print("Yws"if int(input())%9==0 else"No")', 'n = int(input())\n\nif n % 2 == 0:\n print("Yes")\nelse:\n print("No")', 'print("Yws"if int(input())%9==0else"No")', 'n = int(input())\n\nif n % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s246738604', 's819841477', 's844951367', 's081902769'] | [9216.0, 9156.0, 9192.0, 9176.0] | [205.0, 206.0, 216.0, 203.0] | [41, 71, 40, 71] |
p02577 | u853315858 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n=int(input())\nif n%9==o:\n print('Yes')\nelse:\n print('No')", "n=int(input())\nif n%9==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s574728633', 's454594647'] | [9296.0, 9152.0] | [213.0, 208.0] | [60, 61] |
p02577 | u855057563 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=int(nput())\nif n%9==0:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nif n%9==0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s299400219', 's873369229'] | [9008.0, 9296.0] | [24.0, 206.0] | [59, 61] |
p02577 | u858114983 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N = int(input().strip())\n\nans = 0\nN = str(N)\n\nfor i in range(len(N)):\n ans = int(N[i]) + ans\nif ans % 9 == 0:\n print('yes')\nelse:\n print('no')\n", "N = int(input().strip())\n\nans = 0\nN = str(N)\n\nfor i in range(len(N)):\n ans = int(N[i]) + ans\nif ans % 9 == 0:\n print('Yes')\nelse:\n p... | ['Wrong Answer', 'Accepted'] | ['s651730697', 's673839696'] | [9284.0, 9252.0] | [772.0, 727.0] | [152, 152] |
p02577 | u862654689 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['ls=[int(s) for s in input()]\nsm = sum(ls)\nif sm%9 == 0:\n print("YES")\nelse:\n print("NO")', 'ls=[int(s) for s in input()]\nsm = sum(ls)\nif sm%9 == 0:\n print("YES")\nelse:\n print("NO")', 'ls=[int(s) for s in input()]\nsm = sum(ls)\nif sm%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s283604901', 's698296759', 's412131708'] | [10968.0, 10832.0, 10956.0] | [59.0, 54.0, 60.0] | [90, 90, 90] |
p02577 | u862910769 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = str(input())\n\nif n%9 == 0:\n print("Yes")\nelse:\n print("No")', 'n = str(input())\n\ntotL = 0\nfor i in n:\n total += int(i)\nif total % 9 == 0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\n \nif n%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s093797949', 's246016455', 's756469464'] | [9316.0, 9116.0, 9244.0] | [27.0, 25.0, 207.0] | [65, 110, 66] |
p02577 | u863370423 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['x = input()\nfor i in range(5):\n\n alist = list(map(int,x))\n result = sum(alist)\n x = str(result\n\nif result%9 == 0 :\n print("yes")\nelse:\n print("no")', 'x = input()\nfor i in range(3):\n alist = list(map(int,x))\n result = sum(alist)\n x = str(result)\nprint(result)\nif result % 9 == 0... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s792542771', 's903098789', 's042979099'] | [8924.0, 10624.0, 9492.0] | [32.0, 51.0, 427.0] | [162, 177, 204] |
p02577 | u864090097 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = int(input())\n\nhantei = 0\n\nwhile N != 0 or N < 1:\n hantei += N % 10\n N = N // 10\n\nif hantei % 9 == 0:\n ans = "Yes"\nelse:\n ans = "No"\n\nprint(ans)\n', 'N = input()\n\nhantei = 0\n\nfor i in range(len(N)):\n hantei += int(N[i])\n\nif hantei % 9 == 0:\n ans = "Yes"\nelse:\n ans = "No"... | ['Time Limit Exceeded', 'Accepted'] | ['s209489707', 's426327954'] | [9116.0, 9320.0] | [2206.0, 71.0] | [160, 143] |
p02577 | u864197622 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = Int(input())\nprint("Yes" if N % 9 == 0 else "No")', 'N = int(input())\nprint("Yes" if N % 9 == 0 else "No")\n'] | ['Runtime Error', 'Accepted'] | ['s338860971', 's438738904'] | [9080.0, 9260.0] | [28.0, 206.0] | [53, 54] |
p02577 | u869937227 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n = str(input())\nsum = 0\n\nfor i in range(len(n)):\n sum += int(n[i])\n\nif sum % 9 == 0:\n print("yes")\nelse:\n print("no")', 'n = str(input())\nsum = 0\n\nfor i in range(len(n)):\n sum += int(n[i])\n\nif sum % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s784588068', 's739299684'] | [9248.0, 9232.0] | [73.0, 71.0] | [127, 127] |
p02577 | u875756191 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n = int(input())\n\nif n % 9 == 0:\n print('YES')\nelse:\n print('No')\n", "n = int(input())\n\nif n % 9 == 0:\n print('YES')\nelse:\n print('No')\n", "n = int(input())\n\nif n % 9 == 0:\n print('YES')\nelse:\n print('No')\n", "n = list(input())\n\nif n % 9 == 0:\n print('YES')\nelse:\n print(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s038485976', 's089917749', 's340714706', 's890250465', 's898125932', 's436560139'] | [9284.0, 9172.0, 9244.0, 10432.0, 10496.0, 9244.0] | [204.0, 204.0, 204.0, 34.0, 78.0, 205.0] | [72, 72, 72, 73, 123, 71] |
p02577 | u882869256 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["a=int(input())/9\n\nif str(b)[-1]=='0':\n print('Yes')\nelse:\n print('NO')\n ", "a=int(input())%9\nif a==0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s846701266', 's243023781'] | [9256.0, 9164.0] | [214.0, 218.0] | [77, 60] |
p02577 | u886545507 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["#abc176b\nN=input()\ns=0\nfor i in range(len(N)):\n s+=int(N[i])\nprint(s)\nif s%9==0:\n print('Yes')\nelse:\n print('No')\n", "#abc176b\nN=input()\ns=0\nfor i in range(len(N)):\n s+=int(N[i])\nif s%9==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s663665969', 's277376307'] | [9104.0, 9272.0] | [75.0, 72.0] | [114, 105] |
p02577 | u888933875 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["n=int(input())\nif n%9==0\n print('Yes')\nelse:\n print('No')", "n=int(input())\nif n%9==0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s001794725', 's870808015'] | [8908.0, 9292.0] | [22.0, 207.0] | [58, 59] |
p02577 | u891847179 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['N = input()\ntmp = 0\nwhile N > 0:\n tmp += (N % 10)\n N /= 10\nif tmp % 9 == 0:\n print("Yes")\nelse:\n print("No")\n', 'N = input()\ntmp = 0\nwhile N > 0:\n tmp += (N % 10)\n N /= 10\nif tmp % 9 == 0:\n print("Yes")\nelse:\n print("No")\n', 'N = input()\ntmp = 0\nwhile N > 0:\n tmp += (N % 10)\n N... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s288128336', 's474365797', 's628020355', 's898928692', 's636463207'] | [9148.0, 9172.0, 9332.0, 27244.0, 9188.0] | [25.0, 25.0, 23.0, 2206.0, 206.0] | [113, 121, 113, 1286, 38] |
p02577 | u893178798 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N = input()\nans = 0\nwhile N:\n ans += int(N[:-1])\n ans = ans % 9\n N = N[:-1]\nif ans == 0:\n print('Yes')\nelse:\n print('No')\n", "N = input()\nans = 0\nwhile N:\n ans += int(N[-1])\n ans = ans % 9\n N = N[:-1]\nif ans == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s521471712', 's759622660'] | [9396.0, 9400.0] | [2206.0, 571.0] | [137, 136] |
p02577 | u898526415 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['\ndef main():\n N = input()\n N_sum = 0\n \n if N == str(0):\n print("No")\n exit()\n \n for i in N:\n N_sum += int(i)\n \n if N_sum // 9 == 0:\n print("Yes")\n else:\n print("No")\n \nif __name__ == "__main__":\n main()\n ', 'def main():\n N = input()\n N_sum = 0\n \n for i in N:\n ... | ['Wrong Answer', 'Accepted'] | ['s674685478', 's134841610'] | [9328.0, 9296.0] | [59.0, 55.0] | [233, 183] |
p02577 | u901144784 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=input()\ns=0\nfor i in range(n):\n s+=int(n[i])\nif(s%9==0):\n print("Yes")\nelse:\n print("No")', 'n=input()\ns=0\nfor i in range(len(n)):\n s+=int(n[i])\nif(s%9==0):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s509615375', 's708122104'] | [9132.0, 9152.0] | [22.0, 77.0] | [94, 99] |
p02577 | u905029819 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ["N = input(int())\n\nN = str(N)\n\nsum = 0\nfor i in len(N):\n sum += N[i]\n\nif sum % 9 ==0:\n print('Yes')\nelse:\n print('No')", "N = input()\n\nN = str(N)\n\nsum = 0\nfor i in range(0, len(N)):\n sum += N[i]\n\nif sum % 9 ==0:\n print('Yes')\nelse:\n print('No')", "N = int(input())\n\nif N % 9 ==0:\n print(... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s680216826', 's693923489', 's964378248'] | [9140.0, 9272.0, 9252.0] | [25.0, 25.0, 204.0] | [120, 125, 66] |
p02577 | u905592208 | 2,000 | 1,048,576 | An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9. Determine whether N is a multiple of 9. | ['n=int(input())\nsum=0\nwhile (n != 0):\n sum = sum + n % 10; \n n = n/10; \nif(sum%9==0):\n print("Yes")\nelse:\n print("No") \n ', 'n=int(input())\nsum=0\nwhile (n != 0):\n sum = sum + n % 10; \n n = n/10; \nif(sum%9==0):\n print("Yes")\nelse:\n print("No) \n \n ', 'n=int(input())\nwhile (n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s021305952', 's213243643', 's993380806', 's237532347'] | [9272.0, 9028.0, 9024.0, 9316.0] | [213.0, 26.0, 28.0, 81.0] | [131, 135, 129, 124] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.