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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02717 | u169350228 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z = map(int,input())\nprint(z,x,y)', 'x,y,z = map(int,input().split())\nprint(z,x,y)\n'] | ['Runtime Error', 'Accepted'] | ['s643227382', 's872968469'] | [2940.0, 2940.0] | [18.0, 17.0] | [37, 46] |
p02717 | u172780602 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['n,m=list(map(int,input().split()))\na=list(map(int,input().split()))\na.sort(reverse=True)\n\ncnt=0\nfor j in range(n):\n cnt+=a[j]\n\nb=[]\nfor i in range(n):\n if a[i]>(cnt*(1/(4*m))):\n b.append(a[i])\n\nif len(b) > m:\n print("Yes")\nelse:\n print("No")', 'a,b,c=list(map(int,input().split()))\n\na,b=b,a\na,c=c,a\nprint(a,b,c)'] | ['Runtime Error', 'Accepted'] | ['s235329554', 's915252638'] | [3064.0, 2940.0] | [17.0, 17.0] | [260, 66] |
p02717 | u177070195 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["import fractions\n\nn, k = map(int, input().split())\nif (n > abs(n - k)):\n n = fractions.gcd(n, k)\nwhile n > abs(n - k):\n n = abs(n - k)\nif n == k:\n print('0')\nelse:\n print(n)", 'x, y, z = map(int, input().split())\nprint(z, x, y)'] | ['Runtime Error', 'Accepted'] | ['s617724206', 's287148895'] | [5688.0, 2940.0] | [53.0, 17.0] | [185, 50] |
p02717 | u181195295 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["a, b, c = map(int(), input().split())\nprint(a +' '+b+' '+c)\n", "a, b, c = map(int, input().split())\nprint(a +' '+b+' '+c)", "a, b, c = input().split()\nprint(c +' '+a+' '+b)\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s147261411', 's661523532', 's906206298'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0] | [60, 57, 48] |
p02717 | u182898140 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X,Y,Z=map(int,input().split())\n\nprint(Y,Z,X)', 'X,Y,Z=map(int,input().split())\n\nprint(Z,X,Y)'] | ['Wrong Answer', 'Accepted'] | ['s025000241', 's978827179'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 44] |
p02717 | u183657342 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X, Y, Z = map(int, input().split())\nprint(Y, Z, X)', 'X, Y, Z = map(int, input().split())\nprint(Z, X, Y)'] | ['Wrong Answer', 'Accepted'] | ['s364292319', 's713729363'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 50] |
p02717 | u183751661 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["l = list(map(int,input().split()))\nprint(l[2]+' 'l[0]+' 'l[1])", "l = list(map(int,input().split()))\nprint(str(l[2])+' '+str(l[0])+' '+str(l[1]))"] | ['Runtime Error', 'Accepted'] | ['s303774210', 's023205810'] | [3064.0, 2940.0] | [22.0, 17.0] | [62, 79] |
p02717 | u184238067 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['num = input()\n\na = num[0]\nb = num[1]\nc = num[2]\nd = int\n\nd = a\na = b\nb = d \nd = c \nc = a\na = d\nprint(a,b,c)', 'a = input()\nb = input()\nc = input()\nd = int\n\nd = a\na = b\nb = d \nd = c \nc = a\na = d\nprint(a,b,c)\n', 'a,b,c = input().split()\n\nd = int\n\nd = a\na = b\nb = d \nd = c \nc = a\na = d\nprint(a,b,c)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s590172123', 's739011253', 's619560015'] | [9024.0, 9028.0, 9108.0] | [20.0, 20.0, 24.0] | [107, 96, 84] |
p02717 | u184796829 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['A,B,C=map(int,input().split())\nprint("箱Aと箱Bの中身を入れ替えた後、箱A,B,Cに入っている整数はそれぞれ",B,",",A,",",C,"です。")\nprint("箱Aと箱Cの中身を入れ替えた後、箱A,B,Cに入っている整数はそれぞれ",C,",",B,",",A,"です。") ', 'A,B,C=map(int,input().split())\nprint(C,A,B)'] | ['Wrong Answer', 'Accepted'] | ['s027111960', 's475299859'] | [9020.0, 9160.0] | [27.0, 27.0] | [285, 43] |
p02717 | u185297444 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a = [int(i) for i in input().split()]\na[0], a[1] = a[1], a[0]\na[0], a[2] = a[2], a[0]\nprint(a)', 'a = [int(i) for i in input().split()]\na[0], a[1] = a[1], a[0]\na[0], a[2] = a[2], a[0]\nprint(a[0], a[1], a[2])\n'] | ['Wrong Answer', 'Accepted'] | ['s862902845', 's692139353'] | [9132.0, 9176.0] | [23.0, 21.0] | [94, 110] |
p02717 | u185325486 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X,Y,Z = [int(i) for i in input().split()]\nprint(Y,Z,X)', 'X,Y,Z = [int(i) for i in input().split()]\nprint(Z,X,Y)'] | ['Wrong Answer', 'Accepted'] | ['s617234229', 's360885129'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 54] |
p02717 | u189023301 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a, b, c = int(input().split())\nprint(c, a, b, sep=" ")', 'a, b, c = map(int, input().split())\nprint(c, a, b)'] | ['Runtime Error', 'Accepted'] | ['s167928114', 's486723782'] | [2940.0, 2940.0] | [17.0, 19.0] | [54, 50] |
p02717 | u189049195 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['import sys\n\na = list(map(int, input().split()))\n\nb = [a[2], a[0], a[1]]\n\nprint(b)\n', 'import sys\n\na = list(map(int, input().split()))\n\nb = [a[2], a[0], a[1]]\n\nprint(b[0], b[1], b[2])'] | ['Wrong Answer', 'Accepted'] | ['s207659778', 's076079999'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 96] |
p02717 | u189479417 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X, Y, Z = map(int,input().split())\nprint(*[Y, Z, X])', 'X, Y, Z = map(int,input().split())\nprint(*[Z, X, Y])'] | ['Wrong Answer', 'Accepted'] | ['s450357872', 's642208134'] | [2940.0, 2940.0] | [17.0, 17.0] | [52, 52] |
p02717 | u192154323 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a = list(input().split())\nprint(a[2],a[1],a[0])', 'a = list(input().split())\nprint(a[2],a[0],a[1])\n'] | ['Wrong Answer', 'Accepted'] | ['s938133254', 's071205112'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 48] |
p02717 | u193432970 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z=input().split()\n \nprint(x,y,z)\n', 'x,y,z=input().split()\n \nprint(z,x,y)'] | ['Wrong Answer', 'Accepted'] | ['s903473629', 's600005996'] | [8944.0, 8852.0] | [26.0, 27.0] | [40, 39] |
p02717 | u195177386 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["print(' '.join(reversed(input().split())))", 'X, Y, Z = map(int, input().split())\nprint(Z, X, Y)'] | ['Wrong Answer', 'Accepted'] | ['s716468573', 's546046068'] | [8956.0, 9152.0] | [23.0, 22.0] | [42, 50] |
p02717 | u196746947 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z=input().split()#これは文字\nx=int(x)\ny=int(y)\nz=int(z)\nprint(z,x,y)\n\n\n\n', 'x,y,z=input().split()\nx=int(x)\ny=int(y)\nz=int(z)\nprint(z,x,y)\n\n\n\n'] | ['Runtime Error', 'Accepted'] | ['s724414399', 's367464645'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 65] |
p02717 | u197921942 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['s=input()\nprint("Yes" if s[2]==s[3] and s[4]==s[5] else "No")', 'x,y,z=input().split()\nprint(z,x,y)'] | ['Wrong Answer', 'Accepted'] | ['s842038619', 's602680850'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 34] |
p02717 | u199588618 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['N,M=map(int,input().split())\na=list(map(int,input().split()))\nSUM=sum(a)\nninnki=SUM/(4*M)\ncount=0\n\nfor i in a:\n if i>=ninnki:\n count+=1\n \nif count>=M:\n print("Yes")\nelse:\n print("No")', 'X,Y,Z=map(int,input().split())\nX,Y=Y,X\nX,Z=Z,X\nprint(X,Y,Z)'] | ['Runtime Error', 'Accepted'] | ['s118315974', 's603844832'] | [3060.0, 2940.0] | [17.0, 17.0] | [206, 59] |
p02717 | u200228637 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = int(input().split)\nprint(int(z, x, y))', 'x, y, z = map(int, input().split())\nprint(int(z, x, y))', 'x, y, z = map(int, input().split())\n \nx, y, z = y, z, x\ny, z, x = we\nprint(we)', 'x, y, z = map(int, input().split())\nprint(y, z, x)', 'x, y, z = map(int, input().split())\nx = a\ny = b\nz = c\n\nprint(int(c, a, b)', 'x, y, z = map(int, input().split())\n \nx, y, z = z, x, y\nprint(z, x, y)', 'x, y, z = map(int, input().split())\nx, y, z = a, b, c\nprint(b, c, a)', 'x, y, z = map(int, input().split())\n\nx, y, z = z, x, y\na= z, x, y\nprint(a)', 'x, y, z = map(int, input().split())\nx, y, z = a, b, c\nprint(int(b, c, a))', 'x, y, z = map(int, input().split())\n \nx, y, z = y, z, x\nprint(y, z, x)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s028278709', 's076705536', 's182945067', 's445002641', 's451004888', 's551521859', 's613111363', 's787679435', 's994520438', 's152856314'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0] | [48, 55, 78, 50, 73, 70, 68, 74, 73, 70] |
p02717 | u200316926 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['import numpy as np\n\nbox = np.array(input("XYZ:").split())\nbox[0],box[1] = box[1], box[0]\nbox[0],box[2] = box[2], box[0]\n\nprint(box[0], box[1], box[2])', 'X, Y, Z = [int(x) for x in input().split()]\nprint(Z, X, Y)'] | ['Wrong Answer', 'Accepted'] | ['s809680233', 's047770843'] | [12488.0, 2940.0] | [153.0, 17.0] | [150, 58] |
p02717 | u204260373 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y=input().split()\nz=input()\nprint(z,x,y)', 'x,y,z=map(int,input().split())\nprint(z,x,y)'] | ['Runtime Error', 'Accepted'] | ['s616569581', 's836955283'] | [2940.0, 2940.0] | [17.0, 18.0] | [42, 43] |
p02717 | u207326980 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a,b,c = map(int, input())\n\nprint(c,a,b)', 'a,b,c = map(int,input().split())\n\nprint(c,a,b)'] | ['Runtime Error', 'Accepted'] | ['s522185283', 's636975242'] | [2940.0, 2940.0] | [17.0, 18.0] | [39, 46] |
p02717 | u208309047 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['N, M = map(int, input().split())\nA = list(map(int, input().split()))\nvote = sum(A)\n#print(vote)\ncount = 0\nline = 4*M\nline2 = vote/line\nans = "No"\n\nfor i in A:\n if (i >= line2):\n count += 1\n\n#print(count)\nif (count > M):\n ans = "Yes"\n\n\nprint(ans)', 'X, Y, Z = map(int, input().split())\n\nA = X\nB = Y\nC = Z\n\nA,B = B,A\nA,C = C,A\n\nprint(A,B,C)'] | ['Runtime Error', 'Accepted'] | ['s864146331', 's672704014'] | [3060.0, 2940.0] | [17.0, 17.0] | [258, 89] |
p02717 | u213155373 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z = input().split\nprint(z,x,y)\n\n', 'x,y,z = map(int,input().split)\nnew_list = [z,x,y]\nprint((" ").join(new_list))', 'x,y,z = map(int,input().split)\nprint(z,x,y)\n', 'x,y,z = input().split(" ")\nprint(z,x,y)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s101158621', 's107078303', 's989813182', 's033448731'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [36, 77, 44, 39] |
p02717 | u215286521 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['nums = list(map(int, input().split()))\nn = nums[0]\nk = nums[1]\n\nn = n % k\n\nprint(min(n, k - n))\n\n\n', 'nums = list(map(int, input().split()))\n\nprint(str(nums[2]) + " " + str(nums[0]) + " " + str(nums[1]))'] | ['Wrong Answer', 'Accepted'] | ['s774485646', 's172459957'] | [2940.0, 2940.0] | [18.0, 17.0] | [99, 101] |
p02717 | u215403436 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["N, M = map(int, input().split())\nA = list(map(int, input().split()))\n\ncount = 0\nallpoint = sum(A)\nX = allpoint // (4 * M)\n\nfor i in A:\n if i > X:\n count += 1\n\nif count >= M:\n print('Yes')\nelse:\n print('No')", 'x, y, z = map(int, input().split())\n\na = x\nx, y = x, y\nx = z\nz = a\n\nprint(x, y ,z)', "N, M = map(int, input().split())\nA = list(map(int, input().split()))\n\ncount = 0\nallpoint = sum(A)\n\nfor i in A:\n if i > float(allpoint // (4 * M)):\n count += 1\n\nif count >= M:\n print('Yes')\nelse:\n print('No')", 'x, y, z = map(int, input().split())\n\na = x\nx, y = y, x\nx = z\nz = a\n\nprint(x, y ,z)\n', 'x, y, z = map(int, input().split())\n\nx, y = x, y\nx, z = z, x \n\nprint(x, y ,z)', 'x, y, z = map(int, input().split())\n\nx, y = y, x\nx, z = z, x\n\nprint(x, y ,z)\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s122222178', 's498291811', 's506883657', 's789090978', 's969803909', 's959535441'] | [3060.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0, 17.0] | [223, 82, 224, 83, 77, 77] |
p02717 | u216306899 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a, b, c = map(int, input().split())\nprint(c, b, a)', 'a, b, c = map(int, input().split())\nprint(c, a, b)'] | ['Wrong Answer', 'Accepted'] | ['s012622983', 's046655449'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 50] |
p02717 | u217729995 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a = input("enter sth for a: ")\nb = input("enter sth for b: ")\nc = input("enter sth for c: ")\n\na1=a\nb1 = b\nc1= c\na = c1\nb = a1\nc = b1\nprint(f"valuse after reverse:{a}")\nprint(f"valuse after reverse:{b}")\nprint(f"valuse after reverse:{c}")', 'a = input("enter sth for a: ")\nb = input("enter sth for b: ")\nc = input("enter sth for c: ")\n\na1=a\nb1 = b\nc1= c\na = c1\nb = a1\nc = b1\nprint(f"valuse after reverse:{a}")\nprint(f"valuse after reverse:{b}")\nprint(f"valuse after reverse:{c}")', '#for the user_input \na = input("enter sth for a: ")\nb = input("enter sth for b: ")\nc = input("enter sth for c: ")\n#create temporary var to keep the user_input\na1=a\nb1 = b\nc1= c\n#set the place for the input after swap\na = c1\nb = a1\nc = b1\n#print out the final output\nprint(f"valuse after reverse:{a}")\nprint(f"valuse after reverse:{b}")\nprint(f"valuse after reverse:{c}")', 'A = input("enter number for A: ")\nB = input("enter number for B: ")\nC = input("enter number for C: ")\n\na1 = A\nb1 = B\nc1 = C\na = c1\nb = a1\nc = b1\nprint(f"valuse after reverse A = {a}")\nprint(f"valuse after reverse B= {b}")\nprint(f"valuse after reverse C= {c}")', 'a = int(input("enter something: "))\nprint(a[::-1])', 'x,y,z = list(map(int,input().split()))\n \ndef swap(a,b):\n tmp = a\n a = b\n b = tmp\n return (a,b)\n \nx,y = swap(x,y)\nx, z = swap(x, z)\nprint(x,y,z)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s404673460', 's572867440', 's594360265', 's805928242', 's919288984', 's734171778'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [237, 237, 370, 259, 50, 155] |
p02717 | u219937318 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['A,B,C=map(int,input().split())\n\nprint (int(C,A,B).split=())\n', 'A,B,C=map(int,input().split())\n\nprint (int(C,A,B).split)\n', 'A,B,C=map(int,input().split())\n\nprint ((C,A,B).split())\n', 'N=int(input())\n\nA=N[0]\nB=N[1]\nC=N[2]\n\nprint (C,A,B)', 'A,B,C=map(int,input().split())\n\nprint (map(int(C,A,B).split))', 'A,B,C=map(int,input().split())\n\nprint ((C,A,B).split=())\n', 'A,B,C=map(int,input().split())\n\nprint (C,A,B)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s066708951', 's087267487', 's125298954', 's225470041', 's492513126', 's824721540', 's301537987'] | [9020.0, 9084.0, 9156.0, 9048.0, 9132.0, 8984.0, 9048.0] | [24.0, 22.0, 23.0, 19.0, 19.0, 20.0, 24.0] | [60, 57, 56, 51, 61, 57, 45] |
p02717 | u222185706 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['import numpy as np\n\nfirst_input = map(lambda x:int(x), input().split(" "))\n#second_input = input()\n\nprint(first_input[2]+" "+first_input[0]+" "+first_input[1])\n', '\nfirst_input = map(lambda x:int(x), input().split(" "))\n#second_input = input()\n\nprint(str(first_input[2])+" "+str(first_input[0])+" "+str(first_input[1]))\n', 'import numpy as np\n\nfirst_input = map(lambda x:int(x), input().split(" "))\n#second_input = input()\n\nprint(str(first_input[2])+" "+str(first_input[0])+" "+str(first_input[1]))\n', '\nfirst_input = list(map(lambda x:int(x), input().split(" ")))\n#second_input = input()\n\nprint(str(first_input[2])+" "+str(first_input[0])+" "+str(first_input[1]))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s224565270', 's673731792', 's759311054', 's635314582'] | [21512.0, 2940.0, 21888.0, 2940.0] | [1032.0, 17.0, 1837.0, 17.0] | [160, 156, 175, 162] |
p02717 | u223442335 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["X = int(input())\nY = int(input())\nZ = int(input())\nprint(f'{Z} {X} {Y}')", "X = int(input())\nY = int(input())\nZ = int(input())\nprint(f'A value is {Z}')\nprint(f'B value is {X}')\nprint(f'C value is {Y}')", 'A, B, C = input().split()\nprint(C, A, B)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s313384898', 's479460803', 's127480789'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [72, 125, 40] |
p02717 | u224119985 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z=map(int, input().split)\n print(z, x, y)', ' x,y,z=map(int, input().split)\n print(z,x,y)', 'x,y,z=map(int,input().split())\nprint(z,x,y)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s208268517', 's954912239', 's517427911'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [45, 44, 43] |
p02717 | u225020286 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['A,B,C=list(map(int,input().split()))\nA,B,C=B,C,A\nprint(A,B,C)', 'A,B,C=list(map(int,input().split()))\nA,B,C=C,A,B\nprint(A,B,C)'] | ['Wrong Answer', 'Accepted'] | ['s942814936', 's657173401'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 61] |
p02717 | u226779434 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z =map(int,input().splilt())\nt=0\nt=x;x=y;y=t;\nt=x;x=z;z=t;\nprint(x,y,z)', 'x,y,z =map(int,input().split())\nt=0\nt=x;x=y;y=t;\nt=x;x=z;z=t;\nprint(x,y,z)'] | ['Runtime Error', 'Accepted'] | ['s544040485', 's000900784'] | [8952.0, 9064.0] | [25.0, 26.0] | [75, 74] |
p02717 | u227929139 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['count = 0\nn, m = map(int, input().split())\na = list(map(int, input().split()))\nfor i in range(n):\n if a[i] >= sum(a)/4/m:\n count += 1\nif count >= m:\n print("Yes")\nelse:\n print("No")', '#ABC161-A\nx,y,z=map(int,input().split())\nprint(z,x,y)\n'] | ['Runtime Error', 'Accepted'] | ['s211606412', 's095988813'] | [9084.0, 9048.0] | [22.0, 25.0] | [197, 54] |
p02717 | u229518917 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['N,K=map(int,input().split())\nwhile N>=0:\n N=N-K\nif abs(N)<abs(N+K):\n print(abs(N))\nelse:\n print(abs(N+K))', "X,Y,Z=map(str,input().split())\nprint(Z+' '+X+' '+Y)"] | ['Runtime Error', 'Accepted'] | ['s364825905', 's194751563'] | [2940.0, 2940.0] | [17.0, 17.0] | [114, 51] |
p02717 | u232462528 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a,b,c = map(int input().split())\nprint(c,a,b)', 'a,b,c = map(int, input().split())\nprint(c,a,b)'] | ['Runtime Error', 'Accepted'] | ['s388641196', 's728883595'] | [2940.0, 2940.0] | [17.0, 17.0] | [45, 46] |
p02717 | u234088879 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['inputline = list(map(lambda x:int(x), input().split(" ")))\nprint(inputline[1], inputline[0], inputline[2])', 'inputline = list(map(lambda x:int(x), input().split(" ")))\nprint(inputline[1], inputline[2], inputline[0])', 'N, M = map(int, input().split())\nA = sorted(list(map(int, input().split())))[::-1]\nA_sum = sum(A)\n\ncount = 0;\ncriteria = A_sum/(4*M)\n\nprint("No") if (A[M - 1] < criteria) else print("Yes")\n', 'inputline = list(map(lambda x:int(x), input().split(" ")))\nprint(inputline[2], inputline[0], inputline[1])'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s531650192', 's578662236', 's777376080', 's232051833'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 18.0] | [106, 106, 189, 106] |
p02717 | u234761782 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X = int(input())\nY = int(input())\nZ = int(input())\nX, Y, Z = Z, X, Y\nprint(X, Y, Z)', 'X = int(input())\nY = int(input())\nZ = int(input())\nprint(Z, X, Y)', 'X, Y, Z = list(map(int, input().split()))\nX, Y, Z = Z, X, Y\nprint(X, Y, Z)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s382107688', 's968107851', 's876733982'] | [2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0] | [83, 65, 74] |
p02717 | u237634011 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = map(int, input().split())\ncontenta = x\ncontentb = y\ncontentc = z\n\ncontenta = contentb\ncontentb = contenta\n\ncontenta = contentc\ncontentc = contenta\n\nprint(contenta, contentb, contentc)\n', 'x, y, z = map(int, input().split())\n\nprint(z, x, y)\n\n'] | ['Wrong Answer', 'Accepted'] | ['s521385477', 's241633427'] | [9088.0, 9080.0] | [22.0, 23.0] | [194, 53] |
p02717 | u239342230 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X,Y,Z=map(int,input().split())\nprint(Y,Z,X)', 'X,Y,Z=input().split();print(Z,X,Y)'] | ['Wrong Answer', 'Accepted'] | ['s302316081', 's123818970'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 34] |
p02717 | u239528020 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['#!/usr/bin/env python3\n\na = int(input())\na, b = map(int, input().split())\na = list(str(input()))\n', '#!/usr/bin/env python3\n\na = int(input())\na, b = map(int, input().split())\na = list(str(input()))\n', '#!/usr/bin/env python3\n\na = int(input())\na, b = map(int, input().split())\na = list(str(input()))\n', '#!/usr/bin/env python3\n\na, b, c = map(int, input().split())\nprint("{} {} {}".format(c, a, b))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s099154530', 's788995768', 's892793306', 's588590724'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 16.0, 17.0] | [97, 97, 97, 94] |
p02717 | u242890210 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['list1 = list(map(int, input().split()))\nlist2= []\nlist2[0] = list1[2]\nlist2[1] = list1[0]\nlist2[2] = list1[1]\nprint(list2)', 'list1 = list(map(int, input().split()))\nlist2= []\nlist2.append(list1[2])\nlist2.append(list1[0])\nlist2.append(list1[1])\nprint(list2)\n', 'list1 = list(map(int, input().split()))\nlist2= []\nlist2.append(list1[2])\nlist2.append(list1[0])\nlist2.append(list1[1])\nprint(list2[0], list2[1], list2[2])\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s332989831', 's997876752', 's990450823'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [122, 132, 155] |
p02717 | u245299791 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X,Y,Z=map(int,input().split())\nprint(Z,Y,X)', 'X,Y,Z=map(int,input().split())\nprint(Z,X,Y)'] | ['Wrong Answer', 'Accepted'] | ['s059831537', 's131251580'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 43] |
p02717 | u247211039 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = map(int, input()split())\nprint(z, x, y)', 'X,Y,Z=map(int,input().split())\n\nprint(Z,X,Y)'] | ['Runtime Error', 'Accepted'] | ['s257370663', 's424173499'] | [8880.0, 9156.0] | [21.0, 23.0] | [49, 44] |
p02717 | u248190041 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["n, m = map(int, input().split())\nl = list(map(int, input().split()))\na = sum(l)\ns = a / (4*m)\nl.sort(reverse = True)\nif l[m-1] < s:\n print('No')\nelse:\n print('Yes')", "x, y, z = map(int, input().split())\nprint('{} {} {}'.format(z, x, y))"] | ['Runtime Error', 'Accepted'] | ['s821055077', 's683313348'] | [3060.0, 2940.0] | [17.0, 17.0] | [170, 69] |
p02717 | u250527797 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['r_l = [1,2,3,4,5,6,7,8,9,10,11,12,21,22,23,32,33,34,43,44,45,54,55,56,65,66,67,76,77,78,87,88,89,98,99,100,101,110,111,112,113,121,122,123,210,211,212,221,222,223,232,233,234]\nN = int(input())\nprint(r_l[N-1])\n', 'n = input()\nn_lis = n.split(" ")\n\nprint(n_lis[2],n_lis[0],n_lis[1])'] | ['Runtime Error', 'Accepted'] | ['s640105309', 's818435935'] | [3060.0, 2940.0] | [17.0, 17.0] | [209, 67] |
p02717 | u250944591 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["x,y,z=map(int,input().split())\nprint(z+' '+x+' '+y)", "x,y,z=map(str,input().split())\nprint(z+' '+x+' '+y)"] | ['Runtime Error', 'Accepted'] | ['s461863874', 's558364761'] | [9088.0, 9076.0] | [20.0, 28.0] | [51, 51] |
p02717 | u252511810 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z = list(map(int, input().split()))\ndef myFun(a,b):\n c = a\n a = b\n b = c\n return(a,b)\nx,y = myFunc(x,y)\nx,z = myFunc(x,z)\nprint(x,y,z)', 'a,b,c = list(map(int,input().split()))\n \ndef myFun(x,y):\n val = x\n x = y\n y = val\n return (x,y)\n \na,b = myFun(a,b)\na,c = myFun(a,c)\nprint(a,b,c)'] | ['Runtime Error', 'Accepted'] | ['s206842378', 's923027888'] | [3060.0, 3060.0] | [18.0, 17.0] | [142, 156] |
p02717 | u254221913 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X, Y, Z = map(int, input().split())\ntmp = X\nX = Y\nY = tmp\ntmp2 = X\nZ = tmp2\nX = Z\nprint(X,Y,Z)', 'X, Y, Z = map(int, input().split())\ntmp = X\nX = Y\nY = tmp\ntmp2 = X\nX = Z\nZ = tmp2\n\nprint(X,Y,Z)'] | ['Wrong Answer', 'Accepted'] | ['s727287422', 's650424486'] | [3060.0, 3060.0] | [17.0, 17.0] | [94, 95] |
p02717 | u258355189 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['str = input()\nprint(str) \nprint(str[0])\n\nstr_list = str.split()\n\nprint(str_list)\n\nprint(str_list[2] + " "+str_list[0] + " " +str_list[1])', 'str = input()\nstr_list = str.split()\nprint(str_list[2] + " "+ str_list[0] + " " + str_list[1])'] | ['Wrong Answer', 'Accepted'] | ['s326840795', 's341007639'] | [2940.0, 2940.0] | [17.0, 18.0] | [187, 133] |
p02717 | u262481526 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["N, M = map(int, input().split())\nA = list(map(int, input().split()))\ntotal = sum(A) / 4 * M\nA.sort(reverse = True)\nif A[M-1] >= total:\n print('Yes')\nelse:\n print('No')", 'X, Y, Z = map(int, input().split())\nA = X\nB = Y\nC = Z\nA = Z\nB = X\nC = Y\n\nprint(int(A), int(B), int(C))'] | ['Runtime Error', 'Accepted'] | ['s698204976', 's792198315'] | [9180.0, 9184.0] | [23.0, 23.0] | [169, 102] |
p02717 | u266014018 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['import collections\ndef prime_factorize(n):\n a = []\n while n%2 == 0:\n a.append(2)\n n//=2\n f =3\n while f*f <= n:\n if n%f == 0:\n a.append(f)\n n//=f\n else:\n f +=2\n if n != 1:\n a.append(n)\n return a\n\n\nN = int(input())\nfactor = collections.Counter(prime_factorize(N-1))\nK = 1\nfor i in list(factor.values()):\n K *= i+1\nK -=1\nfor f in range(2, int(N**0.5)+1):\n n = N\n if n%f != 0:\n continue\n while n%f ==0:\n n//=f\n if n%f ==1 or n==1:\n K+=1\n\nK +=1\nprint(K)', "N,M = map(int,input().split())\nA = list(map(int,input().split()))\nshreshold = sum(A)/(4*M)\nret = [a for a in A if a >= shreshold]\nif len(ret) < M:\n print('no')\nelse:\n print('yes')", 'x,y,z = map(int, input().split())\nx,y,z = z,x,y\nprint(x,y,z)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s757472658', 's914483857', 's302351112'] | [3316.0, 3060.0, 2940.0] | [21.0, 17.0, 17.0] | [633, 185, 60] |
p02717 | u266143155 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['n, m = map(int, input().split())\na = list(map(int, input().split()))\na.sort(reverse = True)\nans = "Yes"\nfor i in range(m):\n if a[i] < sum(a)*(1/(4*m)):\n ans = "No"\n break\nprint(ans)\n', 'n, m = map(int, input().split())\na = list(map(int, input().split()))\nans = "Yes"\n\na.sort(reverse=True)\n\nfor i in range(m):\n if a[i] < sum(a)*(1/(4*m)):\n ans = "No"\n break\n\nprint(ans)\n', 'x = list(map(int, input().split()))\nprint(x[2],x[0],x[1])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s759567170', 's986659941', 's476720010'] | [2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0] | [199, 200, 57] |
p02717 | u266294380 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["n, m = map(int, input().split())\na = sorted(list(map(int, input().split())))\nsum_a = sum(a)\nif a[n-m] >= sum_a/(4*m):\n print('Yes')\nelse:\n print('No')", 'a, b, c = map(int, input().split())\ntmp = b\nb = a\na = tmp\ntmp = c\nc = a\na = tmp\nprint(a, b, c)\n'] | ['Runtime Error', 'Accepted'] | ['s767406433', 's181634789'] | [2940.0, 3316.0] | [17.0, 27.0] | [156, 95] |
p02717 | u267466261 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['n,k = map(int, input().split())\nprint(abs(n-k) % k)\n\n\n# print(0)\n# exit()\n\n# min = 10**18\n\n# while True:\n# n = abs(n-k)\n# if min > n:\n# min = n\n# else:\n# break\n\n# print(min)\n\n\n\n\n', 'a, b, c = map(int, input().split())\n\nd = c\nc = b \nb = d\nd = a\n \nprint(a,b,c)', 'a = input().int()\nb = input().int()\nc = input().int()\n\nd = c\nc = b \nb = d\nd = a\n\nprint(a)\nprint(b)\nprint(c)', 'a, b, c = map(int, input().split())\n\nd = c\nc = b \nb = a\na = d\n \nprint(a,b,c)'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s148739004', 's206107650', 's773245519', 's003469586'] | [2940.0, 2940.0, 2940.0, 2940.0] | [16.0, 17.0, 17.0, 17.0] | [212, 76, 107, 76] |
p02717 | u273186459 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a,b,c=map(int,input().split())\nt=a;\na=b;\nb=a;\n\nt=c;\nc=b;\nb=t;\n\nprint(a, b, c)', 'a,b,c=map(int,input().split())\nt=a;\na=b;\nb=t;\n \nt=a;\na=c;\nc=t;\n \nprint(a, b, c)'] | ['Wrong Answer', 'Accepted'] | ['s727082734', 's694153016'] | [3060.0, 2940.0] | [17.0, 17.0] | [77, 79] |
p02717 | u273345915 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['N,K=map(int, input().split())\na=N%K\nprint(a,K-a)', 'X,Y,Z = map(int, input().split())\nprint(Z,X,Y)'] | ['Runtime Error', 'Accepted'] | ['s169997477', 's487290946'] | [2940.0, 2940.0] | [17.0, 18.0] | [48, 46] |
p02717 | u274183560 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a, b, c = map(int, split(input()))\nprint(c, a, b)', 'a, b, c = map(int, input().split())\nprint(c, a, b)'] | ['Runtime Error', 'Accepted'] | ['s532960373', 's319624585'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 50] |
p02717 | u275704180 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a,b,c = raw_input().split()\narr = [a,b,c]\n\nprint(arr[1],arr[2],arr[0])', 'a,b,c = raw_input().split()\na,b,c = c,a,b\n\nprint(a,b,c)', "a,b,c = input().split()\nres = str(c)+''+str(a)+''+str(b)\nprint(res)", 'a,b,c = input().split()\nprint(str(c)+" "+str(b)+" "+str(a))', 'a,b,c = map(int,input().split())\nprint(str(c),"",str(a),"",str(c))\n', 'a,b,c = mapt(int,input().split())\nres = str(c)+""+str(a)+""+str(b)\nprint(res)', 'a,b,c = raw_input().split()\n\narr = [a,b,c]\n\nprint(arr[2],arr[0],arr[1])', 'a,b,c = input().split()\nprint(str(c)+" "+str(a)+" "+str(b))'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s113208698', 's196934701', 's237501006', 's435125289', 's636979358', 's874816966', 's900890957', 's644022278'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [70, 55, 67, 59, 67, 77, 71, 59] |
p02717 | u277104886 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['import math\nn, k = map(int, input().split())\nx = math.ceil( n/k )\nif abs(n - k*x) < n:\n n = abs(n - k*x)\nprint(n)', 'l = list(map(int, input().split()))\nl = sorted(l, reverse=True)\nl[2], l[1] = l[1], l[2]\nprint(l)', 'x, y, z = map(int, input().split())\nx, y = y, x\nx, z = z, x\nprint(x, y, z)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s007959697', 's820830863', 's304343248'] | [9128.0, 9024.0, 9028.0] | [22.0, 23.0, 23.0] | [116, 96, 74] |
p02717 | u277312083 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = map(int, input())\nprint(z, x, y)\n', 'x, y, z = map(int, input().split())\nprint(z, x, y)\n'] | ['Runtime Error', 'Accepted'] | ['s498360594', 's556120509'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 51] |
p02717 | u277314812 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z=input().split()\nprint(y,z,x)', "X,Y,Z = input().split()\n\nprint('{0} {1} {2}'.format(Z, X, Y))"] | ['Wrong Answer', 'Accepted'] | ['s105349254', 's434900711'] | [2940.0, 2940.0] | [17.0, 17.0] | [36, 61] |
p02717 | u277920185 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['li = list(map(int,input().split()))\nli.sort()\nprint(li)\n', 'x,y,z=map(int,input().split())\na,b,c=y,x,z\nd,e,f=z,x,y\nprint(d,e,f)'] | ['Wrong Answer', 'Accepted'] | ['s343443082', 's516273898'] | [2940.0, 9040.0] | [17.0, 27.0] | [56, 67] |
p02717 | u280325247 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["n, m = map(int, input().split())\na = list(map(int, input().split()))\n\na.sort(reverse=True)\n\nthold = sum(a) // (4 * m)\n\nif a[m] <= thold:\n print('No')\nelse:\n print('Yes')\n\n", 'x, y, z = map(int, input().split())\n\nx, y = y, x\nx, z = z, x\n\nprint(x, y, z)\n'] | ['Runtime Error', 'Accepted'] | ['s397463726', 's793431532'] | [2940.0, 2940.0] | [17.0, 17.0] | [177, 77] |
p02717 | u281334626 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["N, M = map(int, input().split())\nA = list(map(int, input().split()))\n \nsum_A =0\nfor i in range(N):\n sum_A += A[i]\n\nans = 0\nfor i in range(N):\n if (4*M*A[i] < sum_A):\n ans+=1\n else:\n \tans+=0\n \t\nif (ans >= M):\n print('Yes')\nelse:\n print('No')\n", 'X, Y, Z = map(int, input().split())\n\n"""\ntemp = Y\nY = X\nX = temp\n\ntemp = Z\nZ = X\nX = temp\n"""\nprint(Z, Y, X)', 'X, Y, Z = map(int, input().split())\n\n"""\ntemp = Y\nY = X\nX = temp\n\ntemp = Z\nZ = X\nX = temp\n"""\n\nprint(Z, X, Y)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s369282575', 's492738302', 's250075030'] | [3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [269, 108, 109] |
p02717 | u282376189 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['box = list(map(int,input().split()))\nbox.reverse()\nprint("%d %d %d"%(box[0],box[1],box[2]))', 'box = list(map(int,input().split()))\nbox.reverse()\nfor x in box:\n print(x,end = " \\0")\nprint("\\n",end = "\\0"', 'box = list(map(int,input().split()))\nbox.reverse()\nprint(" ".join(map(str,box)))', 'box = list(map(int,input().split()))\nbox.reverse()\nfor x in box:\n print(x,end = " \\0")\nprint()\n', 'box = list(map(int,input().split()))\nbox.reverse()\nfor i in range(len(box)):\n print(box[i],end="\\0")\n if i != len(box)-1:\n print(" ",end = "\\0")\nprint()', 'box = list(map(int,input().split()))\nprint("%d %d %d"%(box[2],box[0],box[1]))'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s272206275', 's402568171', 's545267303', 's612760205', 's779854721', 's684371023'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0, 17.0] | [91, 111, 80, 98, 165, 77] |
p02717 | u282978698 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["nums = [int(e) for e in input().split]\na = nums[0]\nnums[0] = nums[2]\nnums[2] = a\nprint(str(nums[0]) + ' ' + str(nums[1]) + ' ' + str(nums[2]))", "nums = [int(e) for e in input().split()]\na = nums[0]\nnums[0] = nums[2]\nnums[2] = a\nprint(str(nums[0]) + ' ' + str(nums[1]) + ' ' + str(nums[2]))", "nums = [int(e) for e in input().split()]\na = nums[0]\nnums[0] = nums[1]\nnums[1] = a\na=nums[0]\nnums[0] = nums[2]\nnums[2] = a\nprint(str(nums[0]) + ' ' + str(nums[1]) + ' ' + str(nums[2]))\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s065412779', 's504160231', 's928500764'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [142, 144, 185] |
p02717 | u283751459 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z = map(int,input().split())\nprint(z x y)', 'x = list(map(int,input().split()))\n\nx[0],x[1] = x[1],x[0]\nx[0],x[2] = x[2],x[0]\n\nprint(str(x[0]) +" " + str(x[1]) + " "+ str(x[2]))'] | ['Runtime Error', 'Accepted'] | ['s411313073', 's036180230'] | [8972.0, 9004.0] | [25.0, 23.0] | [45, 132] |
p02717 | u284363684 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['# input\nA, B, C = map(int, input().split())\n\n# change box\ntmp = A\nA = B\nB = tmp\n\ntmp = A\nA = C\nC = tmp\n \n\n# output\nprint("{} {} {]".format(A, B, C))', '# input\nA, B, C = map(int, input().split())\n\n# output\nprint("{} {} {]".format(C, A, B))', '# input\nA, B, C = map(int, input().split())\n\n# change box\ntmp = A\nA = B\nB = tmp\n\ntmp = A\nA = C\nC = tmp\n\n\n# output\nprint("{} {} {}".format(A, B, C))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s522803350', 's998738136', 's116269565'] | [3060.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [151, 87, 147] |
p02717 | u286939768 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X = int(input())\nY = int(input())\nZ = int(input())\nA = X\nB = Y\nC = Z\ntemp = X\nA = Z\nC = Y\nB = temp\nprint(A, B, C);', 'X = int(input())\nY = int(input())\nZ = int(input())\nA = X\nB = Y\nC = Z\ntemp = A\nA = B\nB = temp\nprint(A, B, C);\ntemp = A\nA = C\nC = temp\n\nprint(A, B, C);', 'N, K = input().split()\nN = int(N)\nK = int(K)\ntemp = N\nwhile N>0:\n if temp > K:\n N = N-K\n if N <= 0:\n print(abs(N))\n else:\n print(abs(N))\n', 'x,y,z = int(input()), int(input()),int(input())\ntemp = x\nx = z\nz = y\ny = temp\nprint(x, y, z);', '\n\nX,Y,Z = int(input()), int(input()),int(input())\nA = X\nB = Y\nC = Z\ntemp = X\nA = Z\nC = Y\nB = temp\nprint(A, B, C);', 'X, Y, Z = int(input().split())\nA = X\nB = Y\nC = Z\ntemp = A\nA = B\nB = temp\ntemp = A\nA = C\nC = temp\n\nprint(A, B, C);', 'X = int(input())\nY = int(input())\nZ = int(input())\nA = X\nB = Y\nC = Z\ntemp = A\nA = B\nB = temp\nprint(A, B, C);\ntemp = A\nA = C\nC = temp\n\nprint(A, B, C);', 'X = int(input())\nY = int(input())\nZ = int(input())\nA = X\nB = Y\nC = Z\ntemp = A\nA = B\nB = temp\ntemp = A\nA = C\nC = temp\n\nprint(A, B, C);', 'X = int(input())\nY = int(input())\nZ = int(input())\nA = X\nB = Y\nC = Z\ntemp = A\nA = B\nB = temp\ntemp = A\nA = C\nC = temp\n\nprint(A, B, C);', 'x,y,z = int(input()), int(input()),int(input())\ntemp = x\nx = z\nz = y\ny = temp\nprint(x, y, z);', 'x = int(input())\ny = int(input())\nz = int(input())\ntemp = x\nx = z\nz = y\ny = temp\n\nprint(x,y,z)\n', 'X, Y, Z = input().split()\nA = X\nB = Y\nC = Z\ntemp = A\nA = B\nB = temp\ntemp = A\nA = C\nC = temp\n\nprint(A, B, C);'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s223469579', 's434930842', 's443006244', 's545194315', 's588444451', 's745422499', 's809077052', 's837305894', 's875190757', 's923939319', 's927160697', 's627197531'] | [3060.0, 3060.0, 2940.0, 2940.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 2940.0, 2940.0, 3060.0] | [17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [114, 149, 175, 93, 113, 113, 149, 133, 133, 93, 95, 108] |
p02717 | u287660527 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["a = input().split()\nprint(a[3] +' ' +a[1]+' ' + a[2])", "a = input().split()\nprint(a[1] +' ' +a[2]+' ' + a[0])", "a = input().split()\nprint(a[2] +' ' +a[0]+' ' + a[1])"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s212041175', 's758281820', 's537031523'] | [9052.0, 8964.0, 8952.0] | [22.0, 28.0, 27.0] | [53, 53, 53] |
p02717 | u287669475 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['i = input()\nlist1 = i.split()\ntmpA = list1[0]\nlist1[0] = list1[1]\nlist1[1] = tmpA\n\ntmpA = list1[0]\nlist1[0] = list1[2]\nlist1[2] = tmpA\n', 'i = input()\nlist1 = i.split()\ntmpA = list1[0]\nlist1[0] = list1[1]\nlist1[1] = tmpA\n\ntmpA = list1[0]\nlist1[0] = list1[2]\nlist1[2] = tmpA\nprint(list1[0] + " " + list1[1] + " " + list1[2]', 'i = input()\nlist1 = i.split()\ntmpA = list1[0]\nlist1[0] = list1[1]\nlist1[1] = tmpA\n\ntmpA = list1[0]\nlist1[0] = list1[2]\nlist1[2] = tmpA\nprint(list1[0] + " " + list1[1] + " " + list1[2])'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s501706497', 's937475236', 's092243750'] | [2940.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [135, 183, 184] |
p02717 | u290784570 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = map(int, input().split())\nprint(z, y, x)', 'x, y, z = map(int, input().split())\nprint(z, x, y)'] | ['Wrong Answer', 'Accepted'] | ['s633990045', 's686886595'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 50] |
p02717 | u291988695 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z=input().split()\nprint(z+" "+x+""+y)', 'x,y,z=input().split()\nprint(z+" "+x+" "+y)'] | ['Wrong Answer', 'Accepted'] | ['s186486096', 's692052413'] | [2940.0, 2940.0] | [17.0, 17.0] | [41, 42] |
p02717 | u294385082 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['n,k = map(int,input().split())\nm = n//k\na = n - (k*m)\n \nprint(min(a,abs(a-k)))', 'x,y,z = map(int,input().split())\n\nprint(z,x,y)'] | ['Runtime Error', 'Accepted'] | ['s441558532', 's921660444'] | [9156.0, 2940.0] | [21.0, 17.0] | [81, 46] |
p02717 | u296557772 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['def main():\n\ta,b,c = [int(x) for x in input().split()]\n a, b = b, a\n a, c = c, a\n \tprint(a, b, c)\n\nmain()', 'def main():\n\ta,b,c = [int(x) for x in input().split()]\n\ta, b = b, a\n\ta, c = c, a\n print(a, b, c)\n\nmain()', 'def main():\n\ta,b,c = [int(x) for x in input().split()]\n\ta, b = b, a\n\ta, c = c, a\n\tprint(a, b, c)\n \nmain()'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s412724471', 's846554339', 's080657129'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [112, 107, 108] |
p02717 | u301043830 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = [int(i) for i in input().split()]\nprint(y, z, x)', 'x, y, z = [int(i) for i in input().split()]\nprint(z, x, y)\n'] | ['Wrong Answer', 'Accepted'] | ['s133463057', 's982888136'] | [2940.0, 2940.0] | [18.0, 18.0] | [58, 59] |
p02717 | u303739137 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['n, r = map(int, input().split())\nif n >=10:\n print(r)\nelse:\n print(r + 100*(10-n))', 'a,b,c = input().split()\nprint(c,a,b)'] | ['Runtime Error', 'Accepted'] | ['s777212111', 's185276480'] | [2940.0, 2940.0] | [18.0, 17.0] | [88, 36] |
p02717 | u306718299 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['# -*- coding: utf-8 -*-\nimport numpy as np\n\nx, y, z = map(int, input().split())\n\na = y\nb = x\nc = z\na = c\nc = a\n\nprint(a, b, c)\n', '# -*- coding: utf-8 -*-\nimport numpy as np\n\nx, y, z = map(int, input().split())\n\na = y\nb = x\nc = z\nc = a\na = z\nprint(a, b, c)\n'] | ['Wrong Answer', 'Accepted'] | ['s279449613', 's107358230'] | [12396.0, 12816.0] | [150.0, 163.0] | [127, 126] |
p02717 | u309469516 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['input_line = input().split(" ")\nX=input_line[0]\nY=input_line[1]\nZ=input_line[2]\n\nram=X\nX=Y\nY=ram\n\nram=X\nX=Z\nZ=ram\n\nprint(input_line)', 'input_line = input().split(" ")\nX=input_line[0]\nY=input_line[1]\nZ=input_line[2]\n\nram=X\nX=Y\nY=ram\n\nram=X\nX=Z\nZ=ram\n\n\ninput_line=\' \'.join(input_line)\nprint(input_line)', 'input_line = input().split(" ")\nX=input_line[0]\nY=input_line[1]\nZ=input_line[2]\n\nram=X\nX=Y\nY=ram\n\nram=X\nX=Z\nZ=ram\n\n\n\ninput_line[0]=X\ninput_line[1]=Y\ninput_line[2]=Z\n\ninput_line=\' \'.join(input_line)\nprint(input_line)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s299412894', 's540369588', 's751721961'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [132, 165, 215] |
p02717 | u313291636 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['n,m = map(int, input().split())\na = list(map(int, input().split()))\na.sort(reverse=True)\n\nhantei = sum(a) / (4 * m)\nif a[m-1] > hantei:\n print("Yes")\nelse:\n print("No")\n', 'x,y,z = map(int, input().split())\nprint(z,x,y)\n'] | ['Runtime Error', 'Accepted'] | ['s107874788', 's132419620'] | [2940.0, 2940.0] | [17.0, 17.0] | [175, 47] |
p02717 | u316649390 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['X = int(input())\nY = int(input())\nZ = int(input())\n\nA = Z\nB = X\nC = Y\n\nprint(f"{A} {B} {C}")', 'X = input()\nY = input()\nZ = input()\n\nA = Z\nB = X\nC = Y\n\nprint(f"{A} {B} {C}")', 'from sys import argv\nX, Y, Z = argv\n\nA = Z\nB = X\nC = Y\n\nprint(f"{A} {B} {C}")', 'X,Y,Z = map(int,input().split())\nprint(Z ,X ,Y)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s140887353', 's314059961', 's686833895', 's478081091'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [92, 77, 77, 47] |
p02717 | u317779196 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z = map(int, input().split())\nprint(y,z,x)', 'x,y,z = map(int, input().split())\nprint(z,x,y)'] | ['Wrong Answer', 'Accepted'] | ['s022587803', 's348146534'] | [9148.0, 9084.0] | [25.0, 27.0] | [46, 46] |
p02717 | u318127926 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = map(int, input().split())\nprint(z, y, y)', 'x, y, z = map(int, input().split())\nprint(z, x, y)\n'] | ['Wrong Answer', 'Accepted'] | ['s599524951', 's831142260'] | [2940.0, 2940.0] | [17.0, 18.0] | [50, 51] |
p02717 | u318182140 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = list(map(int, input().split()))\nprint(z, y, x)\n', 'x, y, z = map(int, input().split())\nprint(z, y, x)', 'x, y, z = list(map(int, input().split()))\nprint(z, x, y)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s397807922', 's463798782', 's966893128'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [57, 50, 56] |
p02717 | u321096814 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['# -*- coding: utf-8 -*-\nN, M = map(int, input().split())\nimport math\ndef combinations_count(n, r):\n return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))\nif N != 0:\n if N != 1:\n N_sum = combinations_count(N, 2)\n else:\n N_sum = 0\nelse:\n N_sum = 0\nif M != 0:\n if M != 1:\n M_sum = combinations_count(M, 2)\n else:\n M_sum = 0\nelse:\n M_sum = 0\nprint(N_sum + M_sum)', '# -*- coding: utf-8 -*-\nX, Y, Z = map(int, input().split())\nprint(Z, X, Y)'] | ['Runtime Error', 'Accepted'] | ['s335514632', 's249911835'] | [3060.0, 2940.0] | [17.0, 17.0] | [397, 74] |
p02717 | u321492259 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = input().split()\nprint(z + " " + y + " " + x)', 'x, y, z = input().split()\nprint(z + " " + x + " " + y)'] | ['Wrong Answer', 'Accepted'] | ['s696792894', 's961446929'] | [2940.0, 2940.0] | [17.0, 18.0] | [54, 54] |
p02717 | u322187839 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x,y,z=map(int,input().split())\n\nprint(z,y,x)', 'x,y,z=map(int,input().split())\n\nprint(z,x,y)'] | ['Wrong Answer', 'Accepted'] | ['s389341545', 's493501734'] | [9144.0, 9140.0] | [26.0, 28.0] | [44, 44] |
p02717 | u322297639 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['x, y, z = map(int, input().split())\nprint(c, a, b)', 'x, y, z = map(int, input().split())\nprint(z, x, y)'] | ['Runtime Error', 'Accepted'] | ['s489933558', 's691215535'] | [3316.0, 2940.0] | [19.0, 17.0] | [50, 50] |
p02717 | u323532272 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['n, k = map(int, input().split())\nm = n\nwhile m > 0:\n n = min(abs(n - k), n)\n if m > n:\n m = n\n else:\n print(n)\n break', 'n, k = map(int, input().split())\nm = n\nwhile m > 0:\n n = min(abs(n - k), n)\n if m > n:\n m = n\n else:\n print(m)\n break', 'n, k = map(int, input().split())\nm = n\nwhile m > 0:\n n = min(abs(n - k), m)\n if m > n:\n m = n\n else:\n print(n)\n break', 'a, b, c = map(int, input().split())\nprint(c, a, b)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s143279993', 's167845506', 's304134271', 's628268854'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [135, 135, 135, 50] |
p02717 | u325270534 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['N, K = map(int, input().split())\nN = abs(N - K)\nif N // 10 == 0:\n while N > 100:\n N = N / 100\nwhile N > 0:\n N = (N - K) \nprint(abs(N))', 'a, b, c = map(int, input().split())\nprint(c, a, b)'] | ['Runtime Error', 'Accepted'] | ['s861234473', 's339783521'] | [2940.0, 2940.0] | [17.0, 18.0] | [147, 50] |
p02717 | u330201623 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['l=list(map(int,input().split()))\nl.reverse()\nprint(*l)', 'a,b,c=list(map(int,input().split()))\nl=[c,a,b]\nprint(*l)'] | ['Wrong Answer', 'Accepted'] | ['s281367283', 's205066615'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 56] |
p02717 | u333546629 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a,b,c=input()\n\nprint(c,a,b)', 'a,b,c=input().split()\n\nprint(c,a,b)'] | ['Runtime Error', 'Accepted'] | ['s525959364', 's243311106'] | [2940.0, 2940.0] | [17.0, 17.0] | [27, 35] |
p02717 | u334242570 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['a,b,c=int(input().split())\nt=a\nb=t\na=b\nt2=a\nc=t2\na=c\nprint(a,b,c)', 'a,b,c=map(int,input().split())\nt1=0\nt2=0\nt3=0\nt4=0\nt1=t1+a\nt2=t2+b\nb=t1\na=t2\n\nt3=t3+a\nt4=t4+c\na=t4\nc=t3\nprint(a,b,c)'] | ['Runtime Error', 'Accepted'] | ['s423749743', 's074179475'] | [3060.0, 3060.0] | [17.0, 17.0] | [65, 116] |
p02717 | u334617936 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ["import sys\nargs = sys.argv\n\na, b, c = int(args[1]), int(args[2]), int(args[3])\nprint('{} {} {}'.format(c, a, b))", 'import numpy as np\n\ndef main():\n args1, args2 = input().rstrip().split(\' \'), input().rstrip().split(\' \')\n N, M = int(args1[0]), int(args1[1])\n items = np.array([int(val) for val in args2])\n items = np.sort(items)[::-1]\n items_sum = np.sum(items)\n bottom = items_sum / 4. / M\n \n if(items[M-1] >= bottom):\n print(\'Yes\')\n else:\n print(\'No\')\n \nif __name__ == "__main__":\n main()', 'def main():\n args = input().rstrip().split(\' \')\n a, b, c = int(args[0]), int(args[1]), int(args[2])\n print(\'{} {} {}\'.format(c, a, b))\n \nif __name__ == "__main__":\n main()'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s758113875', 's955908841', 's472314359'] | [2940.0, 12504.0, 2940.0] | [17.0, 150.0, 17.0] | [112, 421, 186] |
p02717 | u341563363 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['A = list(map(int, input().split()))\nprint(A[2],A[0],A[1])\nprint(A)\n', 'A = list(map(int, input().split()))\nprint(A[2],A[0],A[1])\n'] | ['Wrong Answer', 'Accepted'] | ['s588642191', 's880555348'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 58] |
p02717 | u341736906 | 2,000 | 1,048,576 | We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C | ['N,K=map(int,input().split())\nif N%K==0:\n print(0)\n exit()\nif N<K:\n print(N)\n exit()\nans=N%K\nif ans>=abs(ans-K):\n print(abs(ans-K))\nelse:\n print(ans)', "X,Y,Z=map(str,input().split())\nprint(Z+' '+X+' '+Y)"] | ['Runtime Error', 'Accepted'] | ['s398184750', 's843307064'] | [3060.0, 2940.0] | [17.0, 17.0] | [166, 51] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.