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 | u175590965 | 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 sum(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'] | ['s356167029', 's975450497'] | [9084.0, 9164.0] | [199.0, 208.0] | [72, 67] |
p02577 | u181159916 | 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. | ['# t=int(input())\n# for _ in range(t):\n# n=int(input())\n# arr=[int(x) for x in input().split()]\nn=int(input())\nif n%9 == 0:\n print("YES")\nelse:\n print("NO")\n#print(t*need)', '# t=int(input())\n# for _ in range(t):\n# n=int(input())\n# arr=[int(x) for x in input().split()]\ndef sumall(n):\n sum=0\n while n:\n sum+=n%10\n n=n//10\n return sum\nn=int(input())\nif sumall(n)%9 == 0:\n print("YES")\nelse:\n print("NO")\n#print(t*need)', '# t=int(input())\n# for _ in range(t):\n# n=int(input())\n# arr=[int(x) for x in input().split()]\nn=int(input())\nif n%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s269114849', 's654493623', 's322012115'] | [9240.0, 9292.0, 9128.0] | [205.0, 2206.0, 215.0] | [184, 279, 169] |
p02577 | u184661160 | 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())\nif sum(n)%9==0:\n print("Yes")\nelse:\n print("No")', 'n=input()\nls=[]\nfor i in n:\n ls.append(int(i))\nif sum(ls)%9==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s150617447', 's847510094'] | [10520.0, 10816.0] | [32.0, 72.0] | [66, 101] |
p02577 | u188828568 | 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()\nsum = 0\nfor n in S:\n sum += int(n)\nif sum % 9 == 0:\n print("YES")\nelse:\n print("NO")', "S = input()\nsum = 0\nfor n in S:\n sum += int(n)\nif sum % 9 == 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s052798540', 's123459551'] | [9156.0, 9184.0] | [66.0, 66.0] | [97, 99] |
p02577 | u191444581 | 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 = 0\n\nwhile N > 1 :\n sum += N % 10\n N = N // 10\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'] | ['Wrong Answer', 'Accepted'] | ['s422491888', 's981926843'] | [9324.0, 9240.0] | [2206.0, 218.0] | [135, 70] |
p02577 | u192359936 | 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\na==int(n%9)\n\nif a==0:\n print(Yes)\nelse:\n print(No)\n ', 'n==int(input())\n\na==int(n%9)\n\nif a==0:\n print("Yes")\nelse:\n print("No")\n \n', 'n=int(input())\n\na=int(n%9)\n\nif a==0:\n print("Yes")\nelse:\n print("No")\n \n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s084168913', 's490425820', 's047357131'] | [9152.0, 8992.0, 9208.0] | [217.0, 30.0, 205.0] | [72, 78, 76] |
p02577 | u213314609 | 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 += (N%10)\n N /= 10\nif sum % 9 == 0:\n print('Yes')\nelse: print('No')", "N = int(input())\nsum = 0 \nwhile(N != 0):\n sum += (N%10)\n N /= 10\nif sum % 9 == 0:\n print('Yes')\nelse: \n print('No')", 'N = int(input())\nsumN = sum(int(digit) for digit in str(N))\nif sumN%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s188913490', 's515402014', 's759084495'] | [9176.0, 9312.0, 9172.0] | [216.0, 214.0, 714.0] | [122, 125, 114] |
p02577 | u213537943 | 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 \n s = str(n)\n \n array = list(map(int, s))\n \n return sum(array)\n\nif N ==0:\n print('Yes')\nelif digitSum(N)%9 ==0:\n print('Yes')\nelse:\n print('No')", "N = int(input())\nif N ==0:\n print('Yes')\nelif sum(list(map(int, str(N))))%9 ==0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s262192006', 's412529442'] | [8908.0, 10996.0] | [22.0, 750.0] | [279, 116] |
p02577 | u213538174 | 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 for i in range(int(input())):\n N = int(input())\n #pc, pr = map(int, input().split())\n #N = list(map(int,input().split()))\n print("Yes" if N%9 ==0 else "No")', 'if __name__==\'__main__\':\n N = int(input())\n #pc, pr = map(int, input().split())\n #N = list(map(int,input().split()))\n\tprint("Yes" if N%9 ==0 else "No")', 'if __name__==\'__main__\':\n N = int(input())\n print("Yes" if N%9 ==0 else "No")\n\t'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s147686071', 's482520392', 's174094137'] | [9236.0, 8896.0, 9116.0] | [201.0, 31.0, 204.0] | [213, 168, 85] |
p02577 | u217571418 | 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())\nwa = 0\n\nfor i in range(len(n)):\n\tn[i] = int(n[i])\n\twa += n[i]\n\nif wa % 9 == 0:\n\tprint('Yes')\nelse:\n\tprint('No')", "n = str(input())\nwa = 0\n\nfor i in n:\n\tn[i] = int(n[i])\n\twa += n[i]\n\nif wa % 9 == 0:\n\tprint('Yes')\nelse:\n\tprint('No')", "n = str(input())\nwa = 0\n\nfor i in range(len(n)):\n\twa += int(n[i])\n\nif wa % 9 == 0:\n\tprint('Yes')\nelse:\n\tprint('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s212944080', 's283950420', 's870231441'] | [9224.0, 9152.0, 9256.0] | [25.0, 23.0, 71.0] | [128, 116, 115] |
p02577 | u220302984 | 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 \n sum = sum + int(n % 10) \n n = int(n/10) \n\n \nif (sum%9) == 0:\n print("YES")\nelse:\n print("NO")', 's = input()\nans = 0\nfor i in range(len(s)):\n ans += int(s[i])\n \nif ans%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s606516882', 's350747010'] | [9324.0, 9280.0] | [215.0, 78.0] | [154, 123] |
p02577 | u222643068 | 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. | ["li = list(input())\n\nsum_ = 0\nfor val in li:\n sum_ += int(val)\nif sum_%9 == 0:\n print('YES')\nelse:\n print('NO')", "li = list(input())\n\nsum_ = 0\nfor val in li:\n sum_ += int(val)\nif sum_%9 == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s816661422', 's267138302'] | [10588.0, 10616.0] | [72.0, 69.0] | [113, 114] |
p02577 | u222668979 | 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('No' if n % 6 else 'Yes')\n", "n=int(input())\nprint('No' if n % 3 else 'Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s304522755', 's837682460'] | [9012.0, 9212.0] | [203.0, 204.0] | [47, 47] |
p02577 | u231262424 | 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(int(input()) % 9 == 0)', 'n = input()\nsum = 0\nfor i in n:\n sum += int(i)\nprint(sum % 9 == 0)', 'n = input()\nsum = 0\nif n == 0:\n print("No")\nelse:\n for i in n:\n sum += int(i)\n print("Yes" if sum % 9 == 0 else "No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s036325212', 's931693346', 's434958312'] | [9188.0, 9268.0, 9284.0] | [221.0, 71.0, 70.0] | [28, 69, 133] |
p02577 | u235210692 | 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(i) for i in input().split()]\n\nif sum(n)%9==0:\n print("Yes)\nelse:\n print("No")', 'n=[int(i) for i in input().split()]\n \nif sum(n)%9==0:\n print("Yes")\nelse:\n print("No")\n\n'] | ['Runtime Error', 'Accepted'] | ['s874042510', 's468217007'] | [9032.0, 9260.0] | [22.0, 204.0] | [86, 90] |
p02577 | u235508145 | 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()\nlen_N = len(N)\nN = int(N)\ncount = 0\n\nfor i in range(len_N):\n count += N[i]\nif count%9 == 0:\n print("Yes")\nelse:\n print("No")', 'N = input()\nlen_N = len(N)\ncount = 0\n\nfor i in range(len_N):\n count += int(N[i])\nif count%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s764799315', 's784602492'] | [9156.0, 9184.0] | [201.0, 70.0] | [139, 133] |
p02577 | u237593839 | 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()\nif num % 9 == 0:\n print("yes")\nelse:\n print("no")', 'from sys import stdin, stdout\nt = int(stdin.readline())\nif t % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s279867912', 's475452342'] | [9128.0, 9312.0] | [28.0, 204.0] | [65, 105] |
p02577 | u237935782 | 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 = int(input())\n \nif N%9 == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s491412443', 's930948147'] | [9220.0, 9300.0] | [202.0, 206.0] | [61, 66] |
p02577 | u244434589 | 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')", "N= int(input())\nif N%9==0:\n print('Yes')\n \n else :\n print('No')", "N =int(input())\nif N%9 ==0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s032667756', 's045397637', 's847214271', 's966808878'] | [9276.0, 8944.0, 8840.0, 9184.0] | [22.0, 27.0, 24.0, 206.0] | [61, 63, 69, 62] |
p02577 | u244466744 | 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(list(map(int, str(n))))\na = sum // 9\n\nif a == 0:\n print("Yes")\n\nelse:\n print("No")\n', 'n = input()\n\nsum(list(map(int, str(n))))\n\nif sum // 9 == 0:\n print("Yes")\n\nelse:\n print("No")\n', 'n = int(input())\n\nsum(list(map(int, str(n))))\n\nif sum // 9 == 0:\n print(Yes)\n\nelse:\n print(No)\n', 'n = int(input())\n\nsum(list(map(int, str(n))))\n\nif sum // == 0:\n print(Yes)\n\nelse:\n print(No)\n', 'n = int(input())\n\nsum(list(map(int, str(n))))\n\nprint(sum)', 'n = input()\n\nsum(list(map(int, str(n))))\na = sum % 9\n\nif a == 0:\n print("Yes")\n\nelse:\n print("No")\n', 'N = input()\ns = len(N)\nsum = 0\n\nfor i in range(s):\n sum += int(N[i])\n \nif sum % 9 == 0:\n print("Yes")\n \nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s048653794', 's075071216', 's281657713', 's397610010', 's764687982', 's904780682', 's984281122'] | [10580.0, 10596.0, 11176.0, 8960.0, 11112.0, 10576.0, 9212.0] | [44.0, 48.0, 704.0, 30.0, 745.0, 46.0, 76.0] | [102, 96, 97, 95, 57, 101, 127] |
p02577 | u247060273 | 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\nN=int(input())\n\nif N//9==0:\n print("Yes")\nelse :\n print("No") \n', 'import numpy as np\nN=int(input())\n\nif N%9==0:\n print("Yes")\nelse :\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s141465591', 's234206265'] | [27136.0, 27336.0] | [304.0, 287.0] | [91, 86] |
p02577 | u250944591 | 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(int(input()).split())\nc = 0\n\nfor n in N:\n c += n\n\nif c % 9 == 0:\n print('Yes')\nelse:\n print('No')", "N = list(input())\nc = 0\n\nfor n in N:\n c += int(n)\n\nif c % 9 == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s079549612', 's175377272'] | [9200.0, 10476.0] | [200.0, 66.0] | [109, 102] |
p02577 | u261036477 | 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")', 'N = input()\nA = list(N)\nAn = list(map(int,A))\nB = sum(An)\nif B%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s938029705', 's957400797', 's597694043'] | [9212.0, 9272.0, 12060.0] | [213.0, 213.0, 52.0] | [68, 68, 109] |
p02577 | u261103969 | 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()\ncur = 0\n\nfor x in n:\n cur += int(x)\n\n if cur % 9 == 0:\n print("Yes")\n else:\n print("No")', 'n = int(input())\n\nif n % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s209146905', 's960353390'] | [8948.0, 9136.0] | [20.0, 216.0] | [113, 71] |
p02577 | u262632239 | 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()\na = 0\nfor i in range(len(n)):\n a += int(n[i])\nprint(a)', "n = int(input())\nprint('Yes' if n % 9 == 0 else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s231419897', 's528226500'] | [9212.0, 9300.0] | [79.0, 219.0] | [67, 53] |
p02577 | u263737105 | 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\nimport math\ncin = sys.stdin.readline\nn, x, t = map(int, cin().split())\n\ncount = math.ceil(n / x)\nprint(count * t)\n', 'import sys\ncin = sys.stdin.readline\nn = cin()\ntotal = 0\n\n\nfor i in range(10):\n total += n.count(str(i)) * i\nprint("Yes" if total%9 == 0 else "No")'] | ['Runtime Error', 'Accepted'] | ['s253662765', 's591743390'] | [9236.0, 9256.0] | [202.0, 34.0] | [126, 149] |
p02577 | u268427584 | 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=int(input())\nif x%9==0:\n\tprint("YES")\nelse:\n\tprint("NO")', 'x=int(input())\nif x%9==0:\n\tprint("Yes")\nelse:\n\tprint("No")'] | ['Wrong Answer', 'Accepted'] | ['s491772395', 's013957102'] | [9236.0, 9068.0] | [216.0, 215.0] | [58, 58] |
p02577 | u268792407 | 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()\nt=0\nfor i in n:\n t+=int(i)\nif t//9==0:\n print('Yes')\nelse:\n print('No')", "n=input()\nt=0\nfor i in n:\n t+=int(i)\nif t%9==0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s766099526', 's858203303'] | [9260.0, 9188.0] | [68.0, 67.0] | [84, 83] |
p02577 | u270658530 | 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 = sum([i for i in n])\nif s%9==0:\n print("Yes")\nelse: print("No")', 'n = input()\ns = sum([int(i) for i in n])\nif s%9==0:\n print("Yes")\nelse: print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s719919339', 's598229777'] | [10652.0, 10764.0] | [33.0, 57.0] | [79, 87] |
p02577 | u272525952 | 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. | ["count=0\nn=input()\nk=len(n)\nfor i in range(k):\n count+=int(n[i])\nprint(count)\nif count%9==0:\n print('Yes')\nelse:\n print('No')", "count=0\nn=input()\nk=len(n)\nfor i in range(k):\n count+=int(n[i])\n\nif count%9==0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s815213551', 's965711701'] | [9096.0, 9212.0] | [73.0, 73.0] | [133, 121] |
p02577 | u274755552 | 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:\nprint("Yes")\nelse:\n print("No")', 'n = input()\ncur = 0\n\nfor x in n:\n cur += int(x)\n if cur % 9 == 0:\n print("Yes")\n else:\n print("No")', 'i = input()\ns = str(i)\nl = len(s)\n\nwhile num < l+1\nptint("num=" + int(s[-num]))\n', 'n = input()\ncur = 0\nfor x in n:\ncur += int(x)\nif cur % 9 == 0:\nprint("Yes")\nelse:\nprint("No")', 'n = input()\ncur = 0\nfor x in n:\n\tcur += int(x)\nif cur % 9 == 0:\n\tprint("Yes")\nelse:\n\tprint("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s412102944', 's495289346', 's713158650', 's932280781', 's944098702'] | [8944.0, 8916.0, 8856.0, 8868.0, 9156.0] | [27.0, 27.0, 25.0, 27.0, 69.0] | [64, 112, 80, 93, 96] |
p02577 | u281337375 | 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\nans = 0\na = A.index(max(A))\nl = A[a+1:]\nfor i in range(1,N):\n bf = A[i-1]\n af = A[i]\n if a <= i:\n ans += max(A)*len(l)-sum(l)\n break\n elif bf > af:\n ans += bf-af\n\nprint(ans)', 'N = list(input())\n\nn = [int(s) for s in N]\nif sum(n) % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s476879216', 's384680812'] | [9296.0, 12300.0] | [201.0, 60.0] | [259, 101] |
p02577 | u283539527 | 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())\nc=0\nwhile n>0:\n c+=n%10\n n//=10\nprint(c)', 'n=str(input())\ns=0\nfor i in n:\n s+=int(i)\nprint("Yes" if s%9==0 else "No")\n'] | ['Wrong Answer', 'Accepted'] | ['s968391872', 's050526413'] | [9180.0, 9172.0] | [2206.0, 69.0] | [57, 76] |
p02577 | u284872032 | 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()\nif a % 9 == 0:\n print("Yes")\nelse:\n print("No")', 'a = int(input())\nif a % 9 == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s834477621', 's545605360'] | [9256.0, 9308.0] | [25.0, 207.0] | [61, 67] |
p02577 | u290886932 | 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()\nret = 0\nfor c in N:\n ret += ret + int(c) % 9\n \nif ret % 9 == 0:\n print('Yes')\nelse:\n print('No')", 'N = input()\nret = 0\nfor c in N:\n ret += (ret + int(c)) % 9\n \nif ret == 0:\n print(Yes)\nelse:\n print(No)', 'N = input()\nret = 0\nfor c in N:\n ret += ret + int(c) % 9\n\nif ret % 9 == 0:\n print(Yes)\nelse:\n print(No)', "N = input()\nret = 0\nfor c in N:\n ret += (ret + int(c)) % 9\n \nif ret == 0:\n print('Yes')\nelse:\n print('No')", "import collections \n\nN = input()\nD = collections.Counter(N)\nret = 0\nfor c in D.keys():\n ret += int(c) * D[c]\n ret = ret % 9\n \nif ret == 0:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s447444378', 's789052513', 's837792306', 's960425132', 's896126059'] | [9236.0, 9264.0, 9280.0, 9320.0, 9584.0] | [1111.0, 72.0, 1102.0, 78.0, 43.0] | [112, 107, 106, 111, 177] |
p02577 | u293326264 | 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()\na = [i for i in n]\nif sum(a) % 9 == 0: print("Yes")\nelse: print("No")', 'n = input()\na = [int(i) for i in n]\nif sum(a) % 9 == 0: print("Yes")\nelse: print("No")'] | ['Runtime Error', 'Accepted'] | ['s075118604', 's676821137'] | [10760.0, 10744.0] | [36.0, 59.0] | [81, 86] |
p02577 | u302040595 | 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\nintNum = 0\n\nloop = len(num)\nfor i in range(loop):\n intNum += int(num)[i]\n\nif intNum % 9 == 0:\n print('Yes')\nelse:\n print('No')", "num = int(input())\n\nintNum = 0\n\nloop = len(num)\nfor i in loop:\n intNum += int(num)[i]\n \nif inNum % 9 == 0:\n print('Yes')\nelse:\n print('No')", "num = input()\n\nintNum = 0\n\nloop = len(num)\nfor i in range(loop):\n intNum += int(num[i])\n\nif intNum % 9 == 0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s285044880', 's706930047', 's484432113'] | [9196.0, 9312.0, 9228.0] | [201.0, 203.0, 74.0] | [144, 143, 144] |
p02577 | u309120194 | 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, str(input())))\n\ns = 0\nfor n in range(N):\n s += n\n\nif(s % 9 == 0): print('Yes')\nelse: print('No')", "N = list(map(int, str(input())))\ns = sum(N)\n \nif(s % 9 == 0): print('Yes')\nelse: print('No')"] | ['Runtime Error', 'Accepted'] | ['s083517895', 's920923203'] | [10768.0, 10560.0] | [46.0, 50.0] | [115, 92] |
p02577 | u310245677 | 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%0==0:\n print("Yes")\nelse:\n print("No")', 'print("Yes"if int(input())%9==0else"No")'] | ['Runtime Error', 'Accepted'] | ['s976745512', 's067137319'] | [9140.0, 9212.0] | [200.0, 204.0] | [60, 40] |
p02577 | u313184483 | 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 sum_each_num(n):\n sum = 0\n while n > 0:\n sum += n % 10\n n = n // 10\n return sum\n\ndef main():\n n = input()\n sum = sum_each_num(n)\n if n % 9 == 0:\n print("Yes")\n else:\n print("No")\n\nif __name__ == \'__main__\':\n main()\n', 'n = int(input())\nif n % 9 == 0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s795924287', 's606935765'] | [9196.0, 9300.0] | [29.0, 218.0] | [271, 71] |
p02577 | u314606631 | 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 math import ceil\n\nn, x, t = [int(v) for v in input().split(" ")]\n\n\nprint(ceil(n / x) * t)', 'from math import *\n\nn, x, t = input().split(" ")\n\n\nprint(ceil(n / x) * t)\n', "n = input()\n\ns = sum([int(v) for v in n.split()])\n\nif s % 9 == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s345585806', 's834866071', 's264897469'] | [9320.0, 9248.0, 9324.0] | [216.0, 25.0, 218.0] | [94, 74, 105] |
p02577 | u327421986 | 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\n\ninput = sys.stdin.readline\n\ndef main(n):\n\tsumm = 0\n\tfor i in n:\n\t\tsumm += int(i)\n\tif summ % 9 == 0: return "Yes"\n\telse: return "No"\n\t\n\nn = input()\nprint(main(n))', 'def main(n):\n\tsumm = 0\n\tfor i in n:\n\t\tsumm += int(i)\n\tif summ % 9 == 0: return "Yes"\n\telse: return "No"\n\t\n\nn = input()\nprint(main(n))'] | ['Runtime Error', 'Accepted'] | ['s365566977', 's885924622'] | [9232.0, 9316.0] | [51.0, 59.0] | [173, 133] |
p02577 | u327498205 | 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')", 'N=int(input())\nif N % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s455853118', 's889990199', 's674231852'] | [9320.0, 9244.0, 9284.0] | [25.0, 202.0, 205.0] | [61, 66, 68] |
p02577 | u328179275 | 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", "n = input()\nif n%==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'] | ['s614303987', 's701524528', 's995539102'] | [9176.0, 9000.0, 9216.0] | [25.0, 24.0, 202.0] | [58, 56, 62] |
p02577 | u332622654 | 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\n\ndef main():\n\n\tN = int(input())\n\t\n\tif N%9 == 0 :\n\t\tprint("yes")\n\telse:\n\t\tprint("No")\n\t\t\n\nif __name__ == "__main__":\n main()', 'import sys\n\ndef main():\n\n\tN = int(input())\n\t\n\tif N%9 == 0 :\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")\n\t\t\n\nif __name__ == "__main__":\n main()'] | ['Wrong Answer', 'Accepted'] | ['s626584317', 's029470481'] | [9272.0, 9252.0] | [215.0, 219.0] | [137, 137] |
p02577 | u340553385 | 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\n\ndata = str(sys.stdin().read())\n\ndef multiple_nine():\n total = 0\n for num in data:\n total += int(num)\n if total % 9 == 0:\n return "Yes"\n else:\n return "No"', 'from sys import stdin\n\nnum = str(stdin.read())\n\ntotal = 0\nfor n in num:\n total += int(n)\n \nif total % 9 == 0:\n print("Yes")\nelse:\n print("No")', 'from sys import stdin\n\nnum =stdin.read().strip()\n\nlst = [int(n) for n in num]\nif sum(lst) % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s017986391', 's894961022', 's297239169'] | [8932.0, 9156.0, 10792.0] | [21.0, 69.0, 60.0] | [179, 145, 134] |
p02577 | u344276999 | 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() \nprint(n)\nsum = 0\nfor i in range(len(n)):\n sum += int(i)\nif(sum%9 == 0):\n print("Yes")\nelse:\n print("No")', 'n = input() \nsum = 0\nfor i in range(len(n)):\n sum += int(n[i])\nif(sum%9 == 0):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s826092087', 's316822057'] | [9320.0, 9244.0] | [69.0, 74.0] | [120, 114] |
p02577 | u346207191 | 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\nl=list(map(int,str(n)))\n\na=sum(l)\n\nif l%9==0:\n print('Yes')\nelse:\n print('No')", "n=int(input())\n\nl=list(map(int,str(n)))\n\na=sum(l)\n\nif a%9==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s274778202', 's022411156'] | [11108.0, 11184.0] | [704.0, 707.0] | [96, 97] |
p02577 | u349515860 | 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())\ncount = 0\nfor i in range(len(N)):\n count = count + int(N[i])\n\nif count//9 == 0:\n print("Yes")\nelse:\n print("No")', 'N = str(input())\ncount = 0\nfor i in range(len(N)):\n count = count + int(N[i])\nprint(count)\nif (count/9) - (count//9) == 0:\n print("Yes")\nelse:\n print("No")', 'N = str(input())\ncount = 0\nfor i in range(len(N)):\n count = count + int(N[i])\n\nif (count/9) - (count//9) == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s326621561', 's808733350', 's830316416'] | [9248.0, 9340.0, 9328.0] | [78.0, 74.0, 74.0] | [132, 158, 146] |
p02577 | u353919145 | 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. | ['/*\nID: sstfmsc1\nTASK: milk2\nLANG: C++\n*/\n#include <bits/stdc++.h>\n \nusing namespace std;\n#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);\n\n#define MAXN 50000\n#define INF 1000000\ntypedef long long ll;\nconst char nl = \'\\n\';\nll MOD = (ll)(1e9 + 7);\n \nvoid solve()\n{\n string num; \n cin >> num;\n\n int suma = 0;\n for(auto x : num) suma += (int)( x - \'0\' );\n\n cout << ( ( suma % 9 == 0 ) ? "Yes" : "No" ) << nl;\n return;\n}\n \nint main()\n{\n //freopen("milk2.in", "r", stdin);\n //freopen("milk2.out", "w", stdout);\n //IOS\n //int q; cin >> q;\n //while(q--) \n solve();\n \n return 0;\n}', 'def solve(s):\n suma = 0\n for x in s:\n suma += int(x)\n if suma % 9 == 0:\n print("YES")\n else: print("NO")\ns = input()\nsolve(s)', '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 :\n print("Yes")\nelse:\n print("No")', 'str = input()\nsum = 0\nfor ch in str:\n sum += ord(ch) - ord(\'0\')\nif sum % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s036803595', 's068562241', 's377575361', 's688200121'] | [8792.0, 9152.0, 10680.0, 9256.0] | [22.0, 55.0, 49.0, 65.0] | [688, 135, 177, 122] |
p02577 | u354623416 | 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())\nbruh = 0\nfor i in N :\n bruh += int(i)\nif bruh %9 == 9 :\n print ("Yes")\nelse :\n print ("No")\n\n \n \n', 'N = str(input())\nbruh = 0\nfor i in N :\n bruh += int(i)\nif bruh %9 == 0 :\n print ("Yes")\nelse :\n print ("No")\n\n \n \n'] | ['Wrong Answer', 'Accepted'] | ['s227285566', 's132978727'] | [9192.0, 9312.0] | [66.0, 66.0] | [133, 133] |
p02577 | u357070508 | 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 type(n / 9) == int:\n print("Yes")\nelse:\n print("No")', 'n = input()\nt = sum(list(map(int, list(n))))\n\n\nif int(t / 9) == t / 9:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s441121928', 's716358561'] | [9240.0, 12324.0] | [216.0, 54.0] | [75, 110] |
p02577 | u357698450 | 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().strip())\n\ncnt = 0\nwhile(S!=0):\n cnt += S%10\n S /= 10\n\nif (cnt % 9 == 0):\n print("Yes")\n\nelse:\n print("No")', 'S = input().strip()\n\ncnt = 0\nfor c in S:\n cnt += int(c)\n\nif (cnt % 9 == 0):\n print("Yes")\n\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s895570592', 's469406192'] | [9180.0, 9208.0] | [218.0, 70.0] | [134, 118] |
p02577 | u357907167 | 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\nfor i in n:\n\tsum+=int(i)\nif sum%9=0:\n\tprint(\'Yes\')\nelse:\n\tprint("No")', 'n=str(input())\nsum=0\nfor i in n:\n\tsum+=int(i)\nif sum%9==0:\n\tprint(\'Yes\')\nelse:\n\tprint("No")'] | ['Runtime Error', 'Accepted'] | ['s010041119', 's865382475'] | [9040.0, 9216.0] | [27.0, 68.0] | [90, 91] |
p02577 | u359008221 | 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. | ['V = input()\ns = 0\nfor c in V:\n n = int(c)\n s = s + n\n \nif s%9 == 0:\n print("yes")\nelse:\n print("no")', 'V = input()\ns = 0\nfor c in V:\n n = int(c)\n s = s + n\n \nif s%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s010074514', 's196387134'] | [9288.0, 9300.0] | [73.0, 75.0] | [105, 105] |
p02577 | u360784902 | 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 = str(input())\nL = list(N)\nr = 0\nfor l in L:\n r = r + int(l)\n\nm = r % 9\nif m == 0:\n print('yes')\nelse:\n print('no')\n", "\nN = str(input())\nL = list(N)\nr = 0\nfor l in L:\n r = r + int(l)\n\nm = r % 9\nif m == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s071909584', 's002358487'] | [10552.0, 10608.0] | [72.0, 73.0] | [128, 128] |
p02577 | u363393619 | 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(intput())\nif(n%9==0):\n print("YES\')\nelse:\n print("NO")', 'n = list(input())\na = 0\nfor i in n:\n a += int(i)\nif(a % 9 == 0):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s835419397', 's323784955'] | [8852.0, 10404.0] | [23.0, 69.0] | [63, 107] |
p02577 | u369630760 | 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. | ['[int(s) for s in l_si]', 'a = str(input())\nb = []\nc = 0\nfor i in range(len(a)):\n b.append(int(a[i]))\nif sum(b) % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s258061296', 's435579006'] | [8900.0, 10828.0] | [25.0, 76.0] | [22, 136] |
p02577 | u370576244 | 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()\nj = 10\nr = 0\nfor i in range(200002):\n r = r + n%j\n j = j*10\n\nif r%9==0:\n print("Yes")\nelse:\n print("No")', 'n = input()\nr = 0\nfor i in n:\n r = r + int(i)\nif r % 9 == 0:\n print("Yes")\nelse:\n print("No")\n '] | ['Runtime Error', 'Accepted'] | ['s208823659', 's700100880'] | [9244.0, 9260.0] | [24.0, 71.0] | [120, 109] |
p02577 | u373956679 | 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 = 0\n\nwhile(n >= 1):\n sum += n % 10\n n //= 10\n print(n)\n\nif(sum % 9 == 0):\n print("Yes")\nelse:\n print("No")', 'n = int(input())\n\n\n\n# while(n >= 1):\n\n# n //= 10\n\nif(n % 9 == 0):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s342177221', 's717314284'] | [10100.0, 9248.0] | [2219.0, 205.0] | [133, 128] |
p02577 | u379917971 | 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()))\nSUM=0\nfor i in N:\n SUM+=i\nif SUM%9==0:\n print("YES")\nelse:\n print("NO")', 'N=list(map(int,input().split()))\nSUM=0\nfor i in N:\n SUM+=i\nif SUM%9==0:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s259847342', 's643166732'] | [9248.0, 9384.0] | [205.0, 205.0] | [113, 113] |
p02577 | u381359012 | 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\ns = 0\nfor i in range(len(n)):\n s += int(n[i])\n\nprint('YES' if (s % 9) == 0 else 'NO')", "n = input()\n\ns = 0\nfor i in range(len(n)):\n s += int(n[i])\n\nprint('Yes' if (s % 9) == 0 else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s843282170', 's963845440'] | [9208.0, 9224.0] | [79.0, 78.0] | [101, 101] |
p02577 | u386328677 | 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 nine():\n N=int(input())\n if N%9 != 0:\n return False\n else:\n t=(i for i in str(N))\n sum=0\n for i in t:\n sum+=int(i)\n if sum%9 == 0:\n return True\n\nprint(nine())', 'def nine():\n N=int(input())\n if N%9 != 0:\n return "No"\n else:\n t=(i for i in str(N))\n sum=0\n for i in t:\n sum+=int(i)\n if sum%9 == 0:\n return "Yes"\n\nprint(nine())'] | ['Wrong Answer', 'Accepted'] | ['s834785322', 's865678582'] | [9172.0, 9284.0] | [758.0, 761.0] | [228, 228] |
p02577 | u388636486 | 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=long(input())\ns=0\nwhile n>0:\n s=s+n%10\n n=n//10\nif s%9==0:\n print('Yes')\nelse:\n print('No')", "import sys \ndef get_string(): return sys.stdin.readline().strip() \n \nstring = get_string()\ns=0\nwhile string!='':\n s=s+int(string[-1])\n string=string[:-1]\nif s%9==0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s265652516', 's670017018'] | [9028.0, 9344.0] | [26.0, 562.0] | [105, 210] |
p02577 | u389530753 | 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())\nS=[int(t) for t in N]\nT=sum(s)\nif T%9==0:\n pint(\'Yes\')\nelse :\n print("No")', 'N=list(input())\nS=[int(t) for t in N]\nT=sum(s)\nif T%9==0:\n print(\'Yes\')\nelse :\n print("No")', 'N=list(input())\nS=[int(t) for t in N]\nT=sum(s)\nif T%9==0:\n print("Yes")\nelse :\n print("No")', 'N=list(input())\nS=[int(t) for t in N]\nT=sum(s)\nif T%9==0:\n print(\'Yes\')\nelse :\n print("No")', 'N=list(input())\nS=[int(t) for t in N]\nT=sum(S)\nif T%9==0:\n print("Yes")\nelse :\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s206823134', 's248004522', 's689964475', 's775351684', 's506043211'] | [12160.0, 12284.0, 12224.0, 12308.0, 12232.0] | [54.0, 52.0, 54.0, 54.0, 57.0] | [92, 93, 93, 93, 93] |
p02577 | u394950523 | 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\na = 0\nfor n in N:\n a += int(n)\n \nif a % 9 == 0:\n ans = "Yse"\nelse:\n ans = "No"\nprint(ans)', 'N = input()\n\na = 0\nfor n in N:\n a += int(n)\nif a % 9 == 0:\n ans = "Yse"\nelse:\n ans = "No"\nprint(ans)', 'N = int(input())\n\nif N % 9 == 0:\n ans = "Yes"\nelse:\n ans = "No"\n\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s374760986', 's914535013', 's047933526'] | [9324.0, 9272.0, 9204.0] | [70.0, 74.0, 218.0] | [114, 109, 81] |
p02577 | u395672550 | 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. | ["ans = input()\na = int(ans)\nb = a % 9\nif b == 0:\n print('yes')\nif b != 0:\n print('no')", "ans = input()\na = str(ans)\nc = 0\nfor f in a:\n b = int(f)\n c = c + b\ninp = c % 9\nif inp == 0:\n print('yes')\nif inp != 0:\n print('no')", "ans = input()\na = str(ans)\nc = 0\nfor f in a:\n b = int(f)\n c = c + b\ninp = c % 9\nif inp == 0:\n print('Yes')\nif inp != 0:\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s468062940', 's962155710', 's077438542'] | [9316.0, 9244.0, 9232.0] | [220.0, 80.0, 79.0] | [87, 136, 136] |
p02577 | u401810884 | 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()\nc=0\nfor i in len(N):\n c+=intN[i]\nif c%9==0:\n print("Yes")\nelse:\n print("No")\n', 'N=input()\nc=0\nfor i in len(N):\n c+=int(N[i])\nif c%9==0:\n print("Yes")\nelse:\n print("No")\n', 'N=input()\nc=0\nfor i in len(N):\n c+=intN[i]\nif c%9==0:\n print(Yes)\nelse:\n print(No)', 'N=input()\nc=0\nfor i in range(len(N)):\n c+=int(N[i])\nif c%9==0:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s013717192', 's851154715', 's865609108', 's619010449'] | [9184.0, 9124.0, 9092.0, 9196.0] | [30.0, 29.0, 29.0, 74.0] | [90, 92, 85, 99] |
p02577 | u408325839 | 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==0 else 'NO')", "N=input()\nprint('YES' if N%9==0 else 'NO')", "print('Yes' if int(input())%9==0 else 'No')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s032966498', 's792800287', 's012634515'] | [9108.0, 9048.0, 9132.0] | [205.0, 26.0, 205.0] | [43, 42, 43] |
p02577 | u410558877 | 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 = 0\n\nfor c in N:\n sum += int(c)\n sum = sum % 9\n\nif sum % 9 == 0:\n ans = "yes"\nelse:\n ans = "no"\n\nprint(ans)', 'N = input()\n\nsum = 0\n\nfor c in N:\n sum += int(c)\n sum = sum % 9\n\nif sum % 9 == 0:\n ans = "Yes"\nelse:\n ans = "No"\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s167092887', 's922876674'] | [9216.0, 9112.0] | [71.0, 72.0] | [136, 136] |
p02577 | u410956928 | 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 = sum(list(str(n)))\nif a%9==0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\na = sum(list(map(str(n), int)))\nif a%9==0:\n print("Yes")\nelse:\n print("No")', 'n = int(input())\na = sum(list(map(int,str(n))))\nif a%9==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s101029684', 's528983904', 's105056379'] | [10612.0, 9288.0, 11080.0] | [689.0, 687.0, 752.0] | [84, 94, 93] |
p02577 | u414050834 | 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=len(n)\nans=0\nfor i in range(1,s+1):\n ans=(ans+a[-i])%9\nif ans==0:\n print('Yes')\nelse:\n print('No')\n ", "n=int(input())\nk=str(n)\ns=len(k)\nans=0\nfor i in range(1,s+1):\n ans=(ans+int(k[-i]))%9\nif ans==0:\n print('Yes')\nelse:\n print('No')\n \n"] | ['Runtime Error', 'Accepted'] | ['s338820164', 's865304649'] | [9216.0, 9160.0] | [213.0, 779.0] | [121, 136] |
p02577 | u416123847 | 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()\nl = len(n)\ns = 0\nfor i in range(l):\n s += int(n[i])\nif(s%9):\n print("NO")\nelse:\n print("YES")', 'n = input()\nl = len(n)\ns = 0\nfor i in range(l):\n if(n[i]!=\'-\'):\n \ts += int(n[i])\nprint(s)\nif(s%9):\n print("Np")\nelse:\n print("Yes")', 'n = input()\nl = len(n)\ns = 0\nfor i in range(l):\n if(n[i]!=\'-\'):\n \ts += int(n[i])\nprint(s)\nif(s%9):\n print("NO")\nelse:\n print("YES")', 'n = input()\nl = len(n)\ns = 0\nfor i in range(l):\n if(n[i]!=\'-\'):\n \ts += int(n[i])\n#print(s)\nif(s%9):\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s113598210', 's602909212', 's889101269', 's400532636'] | [9276.0, 9264.0, 9160.0, 9328.0] | [72.0, 88.0, 85.0, 90.0] | [109, 136, 136, 137] |
p02577 | u416563101 | 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 nineJoke(val):\n if (val % 9 == 0):\n return "YES"\n else:\n return "NO"\n \ndef userInput():\n a = int(input())\n return nineJoke(a)\n \nprint(userInput())', "def nineJoke(val):\n if (val % 9 == 0):\n return 'Yes'\n else:\n return 'No'\n \ndef userInput():\n a = int(input())\n return nineJoke(a)\n \nprint(userInput())"] | ['Wrong Answer', 'Accepted'] | ['s671782202', 's017828259'] | [9236.0, 9260.0] | [203.0, 213.0] | [162, 162] |
p02577 | u430395207 | 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")', 'line = input()\nsum = 0\nfor i in range(len(line)):\n sum = sum + int(line[0])\nif sum % 9 == 0:\n print("yes")\nelse:\n print("no")', 'line = input()\nsum = 0\nfor i in range(len(line)):\n sum = sum + int(line[0])\n print(sum)', 'line = input()\nsum = 0\nfor i in range(len(line)):\n sum = sum + int(line[0])\nif sum % 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', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s124818252', 's174266848', 's249361955', 's516608586', 's344702264'] | [9264.0, 9164.0, 9020.0, 9248.0, 9244.0] | [201.0, 72.0, 23.0, 72.0, 204.0] | [70, 132, 88, 132, 68] |
p02577 | u431389521 | 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. | ['#include <bits/stdc++.h>\nusing namespace std;\n\nchar S[20010];\nint main() {\n cin >> S;\n int len = strlen(S);\n int sum=0;\n for(int i=0; i<len; i++) {\n sum += S[i]-\'0\';\n }\n if(sum%9==0) cout << "Yes" << endl;\n else cout << "No" << endl;\n}', 'N = int(input()) \nif N%9==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s664384474', 's491963958'] | [8832.0, 9120.0] | [23.0, 206.0] | [245, 63] |
p02577 | u437990671 | 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 = input()\ns = 0\nfor i in n:\n s+=int(i)\nif s%9==0:\n print("Yes")\nelse:\n print("No")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s201333197', 's415914035'] | [9208.0, 9340.0] | [68.0, 73.0] | [93, 95] |
p02577 | u438415627 | 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 = int(input())\nresult = sum(list(map(int, str(x))))\nif result % 9 == 0:\n print("YES")\nelse:\n print("NO")', 'x = int(input())\nresult = sum(list(map(int, str(x))))\nif result % 9 == 0:\n print("Yes")\nelse:\n print("No")\n '] | ['Wrong Answer', 'Accepted'] | ['s521500537', 's411427603'] | [11004.0, 10984.0] | [746.0, 706.0] | [108, 113] |
p02577 | u440416514 | 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=0\nN=int(input("整数を入力:"))\n\nwhile(1==1):\n Nn=str(N/10)\n a=Nn.split(".")\n x+=int(a[1])\n N=int(a[0])\n if N==0:\n break\nif x%9==0:\n print(\'Yes\')\nelse:\n print(\'No\')\n', '\nx=0\nN=int(input("整数を入力:"))\n\nwhile(1==1):\n Nn=str(N/10)\n a=Nn.split(".")\n x+=int(a[1])\n N=int(a[0])\n if N==0:\n break\nif x%9==0:\n print(\'Yes\')\nelse:\n print(\'No\')\n', "N=int(input())\nif N%9==0:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s188336688', 's864300967', 's933964891'] | [9260.0, 9284.0, 9156.0] | [202.0, 215.0, 207.0] | [198, 248, 60] |
p02577 | u440478998 | 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 = [int(input()) for i in range(n)]\nres = 0\ntemp_max = 0\nfor x in a:\n if temp_max > x:\n res += temp_max - x\n temp_max = max(temp_max,x)\n\nprint(res)', 'n = int(input())\n\nif n%9 ==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s255010988', 's274450125'] | [9584.0, 9252.0] | [202.0, 206.0] | [178, 68] |
p02577 | u440608859 | 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())\nfor i in s:\n ans+=int(i)\nif ans%9==0:\n print("Yes")\nelse:\n print("No")', 's=str(input())\nans=0\nfor i in s:\n ans+=int(i)\nif ans%9==0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s840536257', 's326165954'] | [9128.0, 9320.0] | [215.0, 73.0] | [94, 100] |
p02577 | u449237691 | 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)\nA=len(S)\nM=0\nfor i in range(N):\n M=M+int(S[i])\nif M%9==0: \n print("Yes")\nelse:\n print("No")\n ', 'N=int(input())\nS=str(N)\nA=len(S)\nM=0\nfor i in range(N):\n M=M+int(S[i])\nif M%9==0: \n print("Yes")\nelse:\n print("No")', 'N=int(input())\nS=str(N)\nA=len(S)\nint(S[i])\nfor i in range(A):\nM=M+S[i] \nif M%9==0:\n print("Yes")\nelse:\n print("No")', 'N=int(input())\nM=int(input())\nS=str(N)\nA=len(S)\nint(S[i])\nfor i in range(A):\n\u3000\u3000M=M+S[i]\nif M%9==0:\n print("Yes")\nelse:\n print("No")', 'N=int(input())\nS=str(N)\nA=len(S)\nM=0\nfor i in range(A):\n M=M+int(S[i])\nif M%9==0: \n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s033868481', 's119069542', 's244892349', 's351775916', 's089136048'] | [9456.0, 9452.0, 8852.0, 8888.0, 9252.0] | [783.0, 739.0, 23.0, 22.0, 728.0] | [122, 119, 117, 137, 119] |
p02577 | u450963682 | 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()\n\ncounter=0\nfor i in range(len(x)):\n\tcounter+=int(x[i])\n\nif(counter%9==0): print("YES")\nelse: print("NO")\n', 'x=input()\n\ncounter=0\nfor i in range(len(x)):\n\tcounter+=int(x[i])\n\nif(counter%9==0): print("YES")\nelse: print("NO")\n', 'x=input()\n\ncounter=0\nfor i in range(len(x)):\n\tcounter+=int(x[i])\n\nif(counter%9==0): print("Yes")\nelse: print("No")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s478792821', 's687408224', 's754127536'] | [9228.0, 9224.0, 9212.0] | [78.0, 79.0, 72.0] | [115, 115, 115] |
p02577 | u457326935 | 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\nimport sys\ninput = sys.stdin.readline\nsys.setrecursionlimit(10**8)\n \nnum_str = input()\n\nnum_sum = 0\nfor i in range(len(num_str)):\n num_sum+=int(num_str[i])\n \nif num_sum%9 == 0:\n print("Yes")\nelse:\n print("No")', 'import numpy as np\nimport sys\ninput = sys.stdin.readline\n\nnum_str = input()\n\nnum_list = np.array([int(num_str[i]) for i in range(len(num_str))])\n\nnum_sum = np.sum(num_list)\n\nif num_sum%9 == 0:\n print("Yes")\nelse:\n print("No")', 'import numpy as np\nimport sys\ninput = sys.stdin.readline\n\nnum_str = input()\n\nnum_list = [int(num_str[i]) for i in range(len(num_str))]\n\nnum_sum = sum(num_list)\n\nif num_sum%9 == 0:\n print("Yes")\nelse:\n print("No")', 'import numpy as np\nimport sys\ninput = sys.stdin.readline\nsys.setrecursionlimit(10**6)\n \nnum_str = input()\n\nlst = []\n\ntmp_sum = 0\ntmp = 0\ncount = 1\nout_sum = 0\nwhile True:\n if tmp_sum + 10**10 * count < len(num_str):\n out_sum += sum([int(num_str[i]) for i in range(tmp, 10**10 * count)])\n else:\n out_sum += sum([int(num_str[i]) for i in range(tmp, len(num_str))])\n break\n tmp = 10**10 * count\n count += 1\n tmp_sum += tmp\n \nif out_sum%9 == 0:\n print("Yes")\nelse:\n print("No")\n\n\n\n\n\n\n\n\n', 'import numpy as np\nimport sys\ninput = sys.stdin.readline\nsys.setrecursionlimit(10**8)\n\nnum_str = input()\n\nnum_list = [int(num_str[i]) for i in range(len(num_str))]\n\nnum_sum = sum(num_list)\n\nif num_sum%9 == 0:\n print("Yes")\nelse:\n print("No")', 'import numpy as np\nimport sys\n# input = sys.stdin.readline\nsys.setrecursionlimit(10**8)\n \nnum_str = input()\n \nnum_list = [int(num_str[i]) for i in range(len(num_str))]\n \nnum_sum = sum(num_list)\n \nif num_sum%9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s123029024', 's205535151', 's323848492', 's854602790', 's870967592', 's119586142'] | [27204.0, 28692.0, 28504.0, 28640.0, 28652.0, 28656.0] | [162.0, 145.0, 159.0, 154.0, 159.0, 156.0] | [231, 227, 214, 504, 243, 249] |
p02577 | u457554982 | 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. | ['nstr=input()\nketa=len(nstr)\nwa=0\nfor i in range(keta):\n wa+=nstr[i]\n\nans="No"\nif wa%9==0:\n ans="Yes"\n\nprint(ans)', 'nstr=input()\nketa=len(nstr)\nwa=0\nfor i in range(keta):\n wa+=int(nstr[i])\n\nans="No"\nif wa%9==0:\n ans="Yes"\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s519387014', 's067308357'] | [9124.0, 9152.0] | [28.0, 75.0] | [118, 123] |
p02577 | u462524298 | 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', 'n = int(input())\nif n%9 == 0:\n print("Yes")\nelse:\n print("No")\n\n'] | ['Runtime Error', 'Accepted'] | ['s298653964', 's920979736'] | [8888.0, 9276.0] | [22.0, 206.0] | [69, 70] |
p02577 | u462548730 | 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")\n else:\n print("No")', 'a = int(input())\nif a % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s813318159', 's368527091'] | [8952.0, 9256.0] | [29.0, 206.0] | [67, 66] |
p02577 | u465597982 | 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==0):\n print("YES")\nelif(n%9==0):\n print("YES")\nelse:\n print("NO")', 'n=int(input())\nif(n==0):\n print("Yes")\nelif(n%9==0):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s548950817', 's737041555'] | [9148.0, 9324.0] | [212.0, 216.0] | [88, 88] |
p02577 | u468972478 | 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())\na = 0\nfor i in n:\n a += i\n \nif a % 9 == 0:\n print("Yes")\nelse:\n print("No")', 'n = list(input())\nprint("Yes" if sum(n) % 9 == 0 else "No")', 'print("Yes" if int(input()) % 9 == 0 else "No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s150507673', 's859709209', 's998350930'] | [10472.0, 10552.0, 9252.0] | [27.0, 24.0, 205.0] | [97, 59, 47] |
p02577 | u473172054 | 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 = 0\n\nfor i in range(len(N)):\n num += int(N[i])\nif num % 9 == 0:\n print("Yes")\nelse:\n print("No")', 'N = input()\nnum = 0\n\nfor i in range(len(N)):\n num += int(N[i])\nif num % 9 == 0:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s386279466', 's115444834'] | [9096.0, 9244.0] | [33.0, 74.0] | [109, 121] |
p02577 | u477638578 | 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, os.path\n\nif(os.path.exists(\'input.txt\')):\n sys.stdin = open(\'input.txt\',"r")\n sys.stdout = open(\'output.txt\',"w")\n\nsys.setrecursionlimit(10 ** 5)\n\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\ndef solve():\n sum=0\n lst = list(input())\n for _ in range(len(lst)):\n sum+=int(lst[_])\n if sum%9==0:\n print("YES")\n else:\n print("NO")\nsolve()', 'import sys, os.path\n\nif(os.path.exists(\'input.txt\')):\n sys.stdin = open(\'input.txt\',"r")\n sys.stdout = open(\'output.txt\',"w")\n\nsys.setrecursionlimit(10 ** 5)\n\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\ndef solve():\n sum=0\n lst = list(input())\n for _ in range(len(lst)):\n sum+=int(lst[_])\n if sum%9==0:\n print("Yes")\n else:\n print("No")\nsolve()'] | ['Wrong Answer', 'Accepted'] | ['s953671534', 's953407001'] | [10460.0, 10232.0] | [67.0, 65.0] | [504, 504] |
p02577 | u483026911 | 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\nsys.stdin = open(\'input.txt\', \'r\')\nsys.stdout = open(\'output.txt\', \'w\')\n\n\ndef isDivBy9(n):\n\n if (n == 0 or n == 9):\n return True\n if (n < 9):\n return False\n\n return isDivBy9((int)(n >> 3) - (int)(n & 7))\n\n\nn = int(input())\nif (isDivBy9(n)):\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'] | ['s229128315', 's424971184'] | [8944.0, 9172.0] | [25.0, 203.0] | [314, 73] |
p02577 | u486646943 | 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. | ["\nfrom enum import Enum\nfrom queue import Queue\nimport collections\n\nimport sys\nimport math\n\nBIG_NUM = 2000000000\nMOD = 1000000007\nEPS = 0.000000001\n\nN=int(input())\nn=map(int,N.split())\n\nif sum(n)%9==0:\n print('Yes')\nelse:\n print('No')", "\nfrom enum import Enum\nfrom queue import Queue\nimport collections\n\nimport sys\nimport math\n\nBIG_NUM = 2000000000\nMOD = 1000000007\nEPS = 0.000000001\n\nN=int(input())\nn=map(int,N.split())\n\nif sum(n)%9==0:\n print('Yes')\nelse:\n print('No')", "\nfrom enum import Enum\nfrom queue import Queue\nimport collections\n\nimport sys\nimport math\n\nBIG_NUM = 2000000000\nMOD = 1000000007\nEPS = 0.000000001\n\nN=int(input())\nif N/9==0:\n print('Yes')\nelse:\n print('No')", "import math\n\nN=int(input())\nif N%9==0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s383509049', 's526475046', 's948284059', 's537917802'] | [9900.0, 9820.0, 9872.0, 9124.0] | [215.0, 219.0, 218.0, 204.0] | [239, 239, 212, 78] |
p02577 | u491550356 | 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\na = 0\nwhile N > 0:\n a += N % 10\n N /= 10\n a %= 9\n\nif a == 0:\n print("Yes")\nelse:\n print("No")', 'if int(input()) % 9 == 0:\n print("Yes")\nelse:\n print("No") '] | ['Runtime Error', 'Accepted'] | ['s084347399', 's742933176'] | [9120.0, 9236.0] | [203.0, 202.0] | [116, 62] |
p02577 | u501486979 | 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=int(input())\nNstr=list(str(N))\nsum=0\nfor i in np.arange(len(Nstr)):\n sum+=Nstr[i]\n \nif (sum%9==0):\n print("Yes")\nelse:\n print("No")', 'import numpy as np\n\nN=int(input())\nNstr=list(str(N))\nsum=0\nfor i in np.arange(len(Nstr)):\n sum+=int(Nstr[i])\n \nif (sum%9==0):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s529943447', 's159556347'] | [30216.0, 30144.0] | [780.0, 836.0] | [165, 170] |
p02577 | u506996808 | 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())\nList=[int(N[i]) for i in range(len(N))]\nif sum(List)%9==0:\n print("YES")\nelse:\n print("NO")', 'N=str(input())\nList=[int(N[i]) for i in range(len(N))]\nif sum(List)%9==0:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s415791938', 's884978434'] | [10924.0, 10936.0] | [67.0, 65.0] | [112, 113] |
p02577 | u507171466 | 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. | ['i = int(input())\nif i % 9:\n print("NO")\nelse:\n print("YES")', 'i = int(input())\nif i % 9:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s928508767', 's004561187'] | [9324.0, 9176.0] | [201.0, 202.0] | [61, 61] |
p02577 | u508960292 | 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. | ["#176-B\n\nN = input()\nwhile len(N) > 1:\n sum = 0\n for i in range(1,len(N)+1):\n sum += int(N[-i])\n N = str(sum)\n\nif N == 9:\n print('Yes')\nelse:\n print('No')\n", "N = input()\nwhile len(N) > 1:\n sum = 0\n for i in range(1,len(N)+1):\n sum += int(N[-i])\n print(sum)\n N = str(sum)\n\nif int(N) == 9:\n print('Yes')\nelse:\n print('No')\n", "#176-B\n\nN = input()\nwhile len(N) > 1:\n sum = 0\n for i in range(1,len(N)+1):\n sum += int(N[-i])\n print(sum)\n N = str(sum)\n\nif int(N) == 9:\n print('Yes')\nelse:\n print('No')\n", "#176-B\n\nN = input()\nsum = 0\nfor i in range(1,len(N)+1):\n sum += int(N[-i])\n\nif int(sum) % 9 == 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s029788806', 's714516866', 's874490990', 's456811638'] | [9164.0, 9292.0, 9224.0, 9312.0] | [75.0, 132.0, 132.0, 76.0] | [162, 174, 182, 134] |
p02577 | u509739538 | 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 collections import defaultdict\nfrom collections import deque\nfrom collections import Counter\nimport math\n\ndef readInt():\n\treturn int(input())\ndef readInts():\n\treturn list(map(int, input().split()))\ndef readChar():\n\treturn input()\ndef readChars():\n\treturn input().split()\n\nx = sum(list(map(int, input().split())))\n\nif x%9==0:\n\tprint("YES")\nelse:\n\tprint("NO")', 'from collections import defaultdict\nfrom collections import deque\nfrom collections import Counter\nimport math\n\ndef readInt():\n\treturn int(input())\ndef readInts():\n\treturn list(map(int, input().split()))\ndef readChar():\n\treturn input()\ndef readChars():\n\treturn input().split()\n\nx = sum(list(map(int, input().split())))\n\nif x%9==0:\n\tprint("Yes")\nelse:\n\tprint("No")'] | ['Wrong Answer', 'Accepted'] | ['s753320708', 's114022269'] | [9576.0, 9568.0] | [219.0, 205.0] | [362, 362] |
p02577 | u512212329 | 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 num = int(input())\n if num & 9 == 0:\n return 'Yes'\n else:\n return 'No'\n\n\nif __name__ == '__main__':\n ans = main()\n print(ans)\n", "def main():\n num = input()\n if num % 9 == 0:\n return 'Yes'\n else:\n return 'No'\n\n\nif __name__ == '__main__':\n ans = main()\n print(ans)\n", "def main():\n num = input()\n if sum(int(c) for c in num) % 9 == 0:\n return 'Yes'\n else:\n return 'No'\n\n\nif __name__ == '__main__':\n ans = main()\n print(ans)\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s058204962', 's351043563', 's777282234'] | [9212.0, 9128.0, 9172.0] | [221.0, 26.0, 54.0] | [168, 163, 184] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.