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
|
u680139653
| 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
|
['from sys import stdin\na,b,c = map(int,input().split())\nprint("{} {} {}".format(c,b,a))', 'from sys import stdin\na,b,c = map(int,input().split())\nprint("{} {} {}".format(c,b,a)', 'from sys import stdin\nN,M = map(int,input().split())\nA= [int(x) for x in stdin.readline().rstrip().split()]\nm = max(A)\ns = sum(A)\nif ( s / (4 * M) < m :\n print("no")\nelse: \n print("yes")', 'from sys import stdin\nmain\na,b,c = map(int,input().split())\nprint("{} {} {}".format(c,b,a))', 'from sys import stdin\na,b,c = map(int,input().split())\nprint("{} {} {}".format(c,a,b))']
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s172125654', 's731985456', 's732107450', 's761374116', 's100940111']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 18.0]
|
[86, 85, 190, 91, 86]
|
p02717
|
u684305751
| 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)\n', 'x,y,z=map(int,input().split())\nprint(z,x,y)']
|
['Wrong Answer', 'Accepted']
|
['s147762920', 's307778745']
|
[2940.0, 2940.0]
|
[17.0, 16.0]
|
[44, 43]
|
p02717
|
u685244071
| 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('{}{}{}'.format(C,A,B))", "A,B,C = map(int, input().split())\nprint('{} {} {}'.format(C,A,B))"]
|
['Wrong Answer', 'Accepted']
|
['s334060352', 's492515959']
|
[9048.0, 9080.0]
|
[25.0, 22.0]
|
[63, 65]
|
p02717
|
u685641906
| 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_list = input()\n\ntemp = num_list[1] # temporarily save B\nnum_list[1] = num_list[0] # put A in B\nnum_list[0] = temp # put B in A\n\ntemp = num_list[0] # temporarily save A\nnum_list[0] = num_list[2] # put C in A\nnum_list[2] = temp # put A in C\n\nprint(num_list)', "num_list = input()\nnum_list = num_list.split(' ')\n\ntemp = num_list[1] # temporarily save B\nnum_list[1] = num_list[0] # put A in B\nnum_list[0] = temp # put B in A\n \ntemp = num_list[0] # temporarily save A\nnum_list[0] = num_list[2] # put C in A\nnum_list[2] = temp # put A in C\n \nprint(' '.join(num_list))"]
|
['Runtime Error', 'Accepted']
|
['s140733394', 's658103658']
|
[2940.0, 3064.0]
|
[18.0, 17.0]
|
[259, 302]
|
p02717
|
u686390526
| 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("{} {} {}".format(z,x,y))', 'x,y,z=map(int, input().split())\nprint("{} {} {}".format(z,x,y))']
|
['Runtime Error', 'Accepted']
|
['s751071224', 's697559902']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[61, 63]
|
p02717
|
u687164502
| 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().sprit())\nprint('{} {} {}'.format(c, a, b))", "a, b, c = map(int, input().sprit())\nprint('{} {} {}'.format(c, a, b))", "a, b, c = map(int, input().split())\nprint('{} {} {}'.format(c, a, b))"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s049256163', 's751520369', 's356524078']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[69, 69, 69]
|
p02717
|
u687416863
| 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(str(Z)+' '+str(X)+' '+str(Y))", "X,Y,Z=map(int,input().split())\n\nprint(str(Z)+' '+str(X)+' '+str(Y))"]
|
['Runtime Error', 'Accepted']
|
['s254769145', 's303257712']
|
[9048.0, 9080.0]
|
[23.0, 25.0]
|
[58, 67]
|
p02717
|
u689890477
| 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("{}{}{}".format(c,a,b)', 'a,b,c = map(int,input().split())\n\nprint(c,a,b)']
|
['Runtime Error', 'Accepted']
|
['s978603398', 's175956536']
|
[2940.0, 3060.0]
|
[17.0, 19.0]
|
[61, 46]
|
p02717
|
u692311686
| 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())\nA=[Z,Y,X]\nprint(*A)', 'X,Y,Z=map(int,input().split())\nA=[Z,X,Y]\nprint(*A)']
|
['Wrong Answer', 'Accepted']
|
['s016676238', 's290934984']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[50, 50]
|
p02717
|
u693134887
| 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']
|
['s473276938', 's754703314']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[50, 48]
|
p02717
|
u693173434
| 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()\nA = X\nB = Y\nC = Z\n\nB2 = A\nA2 = B\n\nA3 = C\nC3 = A2\n\nprint(A3, B2, C3)', 'X, Y, Z =(map(int,input().split()))\nA = X\nB = Y\nC = Z\n\nB2 = A\nA2 = B\n\nA3 = C\nC3 = A2\n\nprint(A3, B2, C3)']
|
['Runtime Error', 'Accepted']
|
['s920953603', 's241040985']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[85, 103]
|
p02717
|
u697422981
| 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()))\nprint(c+" "+a+" "+b)', 'A = list(map(int,input().split()))\nprint(A[2]+" "+A[0]+" "+A[1])', 'A = list(map(int,input().split()))\nprint(str(A[2])+" "+str(A[0])+" "+str(A[1]))\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s103532926', 's607384704', 's357383577']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[59, 64, 80]
|
p02717
|
u698977701
| 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
|
['arr = map(int, input().split())\nprint(arr[2], arr[0], arr[1])', 'arr = map(int, input().split())\nprint(arr[2], arr[0], arr[1])', 'arr = list(map(int, input().split()))\nprint(arr[2], arr[0], arr[1])\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s086543275', 's453921409', 's414417180']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 19.0]
|
[61, 61, 68]
|
p02717
|
u698988260
| 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()))\nx = sum(A)/(4*m)\ncount = 0\nfor a in A:\n if a >= x:\n count += 1\nif count >= m:\n print("Yes")\nelse:\n print("No")\n', 'A = list(map(int, input().split()))\nprint(A[2], A[0], A[1])']
|
['Runtime Error', 'Accepted']
|
['s097351544', 's100260467']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[194, 59]
|
p02717
|
u702018889
| 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=int(input())\nK=int(input())\nl=abs(N//K)\np=K*l\nfor i in range(1,10000):\n\tif abs(N-(K*(l+1)))<abs(N-p):\n\t\tp=p+1\nprint(abs(N-p))', 'N,K=map(int,input().split())\nl=abs(N//K)\np=K*l\nfor i in range(1,10000):\n\tif abs(N-(K*(l+i)))<abs(N-p):\n\t\tp=p+i\nprint(abs(N-p))', "#!/usr/bin/env python3\nimport sys\n\n\ndef solve(X: int, Y: int, Z: int):\n print(Z,X,Y)\n return\n\n\n# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n X = int(next(tokens)) # type: int\n Y = int(next(tokens)) # type: int\n Z = int(next(tokens)) # type: int\n solve(X, Y, Z)\n\nif __name__ == '__main__':\n main()\n"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s419513945', 's688062451', 's316861349']
|
[3060.0, 3060.0, 3316.0]
|
[17.0, 17.0, 20.0]
|
[127, 126, 606]
|
p02717
|
u703155207
| 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(input())\nb = int(input())\nc = int(input())\nprint(a,b,c)\n\ntemp = a\na = c\nc = b\nb = temp \n\nprint(a,b,c)', 'def swapThree(a, b, c): \n a = a + b + c \n \n b = a - (b+c) \n \n c = a - (b+c) \n \n a = a - (b+c) \n \n print("After swapping a =",a,", b =",b,", c =",c) \n \nif __name__ == \'__main__\': \n a = int(input())\n b = int(input())\n c = int(input())\n \n print("Before swapping a =",a,", b =",b,", c =",c) \n \n swapThree(a, b, c)', 'a = int(input())\nb = int(input())\nc = int(input())\n \nprint(a,b,c)\n\na = a + b + c \nb = a - (b+c) \nc = a - (b+c) \na = a - (b+c) \nprint(a,b,c)', 'a,b,c = map(int, input().split())\nprint(c,a,b)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s001997000', 's333805148', 's788411020', 's180657323']
|
[2940.0, 3064.0, 3060.0, 2940.0]
|
[17.0, 18.0, 17.0, 17.0]
|
[109, 355, 146, 46]
|
p02717
|
u703556602
| 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()))\n\nprint(c,b,a)\n', 'a,b,c = list(map(int,input().split()))\n\nprint(c,a,b)']
|
['Wrong Answer', 'Accepted']
|
['s902949286', 's334140512']
|
[9080.0, 9144.0]
|
[25.0, 26.0]
|
[53, 52]
|
p02717
|
u704287489
| 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\ndef swap(a,b):\n temp = a\n a = b\n b = temp\n return(a,b)\n\nx,y = swap(x,y)\nx,z = swap(x,z)\nprint(x,y,z)', 'x,y,z = list(map(int,input().split()))\n \ndef swap(a,b):\n temp = a\n a = b\n b = temp\n return (a,b)\n \nx,y = swap(x,y)\nx,z = swap(x,z)\nprint(x,y,z)']
|
['Runtime Error', 'Accepted']
|
['s443321480', 's751803527']
|
[3060.0, 3060.0]
|
[18.0, 19.0]
|
[156, 155]
|
p02717
|
u711754037
| 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 = input()\nprint(usr[2], usr[0], usr[1])', 'a, b, c = map(int, input().split())\nprint(c, a, b)']
|
['Wrong Answer', 'Accepted']
|
['s151097187', 's939787706']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[43, 50]
|
p02717
|
u713492631
| 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()))\nborderline = sum(A) / (4 * m)\n\nprint('Yes' if sorted(A, reverse=True)[m-1] >= borderline else 'No')\n", 'x, y, z = map(int, input().split())\n\nprint(z, x, y)']
|
['Runtime Error', 'Accepted']
|
['s314751057', 's577775007']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[169, 51]
|
p02717
|
u717162155
| 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()\nb = input()\nc = input()\n\nd = a\na = b\nb = d\n\nd = a\na = c\nc = d\n\nprint(a, b, c)', 'a ,b ,c = map(int,input().split())\n\nd = a\na = b\nb = d\n\nd = a\na = c\nc = d\n\nprint(a, b, c)']
|
['Runtime Error', 'Accepted']
|
['s371074843', 's624411518']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[89, 88]
|
p02717
|
u720636500
| 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())\nlis = [x, y, z]\nprint("".join(lis))', 'a, b, c = map(int, input().split())\nlis = [c, a, b]\nprint(" ".join(lis))', 'x, y, z = input().split()\nlis = [z, x, y]\nprint(" ".join(lis))']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s013035897', 's250681227', 's470310802']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[71, 72, 62]
|
p02717
|
u721403425
| 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()\nprint(z,y,x)', 'x,y,z = input().split()\nprint(z,x,y)']
|
['Runtime Error', 'Accepted']
|
['s283989149', 's290327277']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[28, 36]
|
p02717
|
u723792785
| 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(list(map(str,input().split()))))', 'print(" ".join([map(str,input().split())]))', 'a,b,c=map(int,input().split())\nprint(c,a,b)']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s103120582', 's976504807', 's692961293']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[47, 43, 43]
|
p02717
|
u726154863
| 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=map(input().split())\nprint(z,y,x)', 'x,y,z=input().split()\nprint(z,x,y)']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s037759128', 's393431519', 's378661922']
|
[8968.0, 8960.0, 8964.0]
|
[22.0, 22.0, 21.0]
|
[34, 39, 34]
|
p02717
|
u727021494
| 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())\nif a >= 1 and a <= 100:\n if b >= 1 and b <= 100:\n if c >= 1 and c <= 100:\n a, b = b, a\n a, c = c, a\nprint(a, b, c)', 'a = int(input())\nb = int(input())\nc = int(input())\nif a >= 1 and a <= 100:\n if b >= 1 and b <= 100:\n if c >= 1 and c <= 100:\n a, b = b, a\n a, c = c, a\nprint(a, b, c)', 'int a, b, c\na, b, c = c, a, b\nprint(a, b, c)\n', 'a, b, c = map(int, input().split())\nprint(c, a, b)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s148468637', 's556108930', 's789088114', 's881152232']
|
[3060.0, 3060.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0, 17.0]
|
[177, 197, 45, 50]
|
p02717
|
u727051308
| 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(),input(),input())\nx,y=y,x\nx,z=z,x\nprint(str(x) + " " + str(y) + " " + str(z) )', 'x, y, z = map(int, input().split())\n\nprint ( str(z) + " " + str(x) + " " + str(y) )']
|
['Runtime Error', 'Accepted']
|
['s436836490', 's315151731']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[97, 83]
|
p02717
|
u727072969
| 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("X=?")\nB = input("Y=?")\nC = input("Z=?")\nx = A\nA = B\nB = x\nx = A\nA = C\nC = x\nprint(str(A)+" "+str(B)+" "+str(C))', 'A = input("X=?")\nB = input("Y=?")\nC = input("Z=?")\nx = A\nA = B\nB = x\nx = A\nA = C\nC = x\nprint(%d %d %d %(A,B,C))', "A, B, C = map(int, input().split())\nx = A\nA = B\nB = x\nx = A\nA = C\nC = x\n\nprint(' '.join(map(str, [A,B,C])))"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s155345673', 's383500025', 's328140279']
|
[3060.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[122, 111, 107]
|
p02717
|
u728473456
| 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\nsys.setrecursionlimit(10**6)\nMOD = 1000000007\n\nk = int(input())\nnumber = 9\n\nans = 0\nfor i in range(10,10**6):\n check = 'OK'\n l = len(str(i))\n keta = list(str(i))\n for j in range(l-1):\n if abs(int(keta[j]) - int(keta[j+1])) <= 1:\n pass\n else:\n check = 'NG'\n if check == 'OK':\n number += 1\n if number == k:\n ans = i%MOD\n break\nif k <= 9:\n print(k)\nelse:\n print(ans%MOD)\n", 'x,y,z = map(int,input().split())\nprint(z,x,y)\n']
|
['Runtime Error', 'Accepted']
|
['s886900033', 's203994846']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[472, 46]
|
p02717
|
u729836751
| 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())\n\n\nif N < K:\n print(N)\nelse:\n N = abs(N - (N // K + 1) * K)\n if abs(N-K) <= N:\n print(abs(N-K))\n else:\n print(N)', 'A, B, C = map(int, input().split())\n\nA, B = B, A\nA, C = C, A\n\nprint(A,B,C)']
|
['Runtime Error', 'Accepted']
|
['s963014851', 's386185564']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[170, 74]
|
p02717
|
u731467249
| 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(' ')\nb = input().split(' ')\na = [int(a) for a in a]\nb = [int(b) for b in b]\n\nb.sort(reverse=True)\nv = sum(b)\n\nans = 'Yes'\n\nif b[a[1]-1] / v < 1 /( 4 * a[1]):\n ans = 'No'\n \nprint(ans)", "X, Y, Z = [int(i) for i in input().split(' ')]\nprint(Z, X, Y)"]
|
['Runtime Error', 'Accepted']
|
['s887325860', 's619396497']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[214, 61]
|
p02717
|
u732743460
| 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()))\ns = sum(l)\nr=s/(4*m)\ncnt=0\nfor i in l:\n \n if i>=r:\n cnt=cnt+1\n\nif cnt>=m:\n print("Yes")\nelse:\n print("No")\n ', 'a,b,c= map(int,input().split())\nprint(c,a,b)']
|
['Runtime Error', 'Accepted']
|
['s456874173', 's462980837']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[203, 44]
|
p02717
|
u733132703
| 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\nans = 0\n\nfor i in range(N):\n if A[i] >= 1/4*M:\n ans += 1\n else:\n pass\n \n \n \n\nif ans >= M:\n print('Yes')\n \nelse:\n print('No')\n \n \n", 'X,Y,Z= map(int,input().split())\n\nprint(Z,X,Y)']
|
['Runtime Error', 'Accepted']
|
['s955389113', 's846340319']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[212, 45]
|
p02717
|
u733597102
| 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']
|
['s435074103', 's857107959']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[43, 43]
|
p02717
|
u733996720
| 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 = input().split()\nA = 0.25\nB = (0.25 / int(M))\n\nC = map(int, input().split())\nD = B * sum(C)\n\n\n\nE = sum(x > int(D) for x in C)\nprint(E)', '# -*- coding: utf-8 -*-\n\nX, Y, Z = input().split()\n\n\n\n\n\nprint("{} {} {}".format(Z, X, Y))']
|
['Runtime Error', 'Accepted']
|
['s567619844', 's826001931']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[140, 176]
|
p02717
|
u735335967
| 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())\nans = n - k\nif k == 1 or n == 1:\n print(1)\n quit()\nif n % k == 0:\n print(0)\n quit()\nif n < k:\n print(n)\n quit()\n\nprint(min(ans, k - n%k))\n', 'n, k = map(int, input().split())\nans = n - k\nif k == 1 or n == 1:\n print(1)\n quit()\nif n % k == 0:\n print(0)\n quit()\nif n < k:\n print(n)\n quit()\n\nprint(min(ans, k - n%k))\n', 'x, y, z = map(int, input().split())\nprint("{} {} {}".format(z,x,y))\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s852862349', 's912073623', 's326204458']
|
[3060.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[189, 189, 68]
|
p02717
|
u735996463
| 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(min(n%k,abs(k-n%k)))', 'import math\nn,k = map(int,input().split())\nprint(min(n%k,k-n%k))', 'import math\nn,k = map(int,input().split())\nx = n//k\nif(n<k):\n x = k//n\n print(min(abs(k*x-n),abs(k*(x+1)-n)))\nelse:\n print(min(abs(k*x-n),abs(k*(x+1)-n)))', 'import math\nn,k = map(int,input().split())\nx = math.ceil(n/k)\nif(n<k):\n x = math.ceil(n/k)\n print(min(n,abs(k*x-n)))\nelse:\n print(abs(k*x-n))', '#ab,ac\na,b,c = map(int,input().split())\na,b = b,a\na,c = c,a\nprint(a,b,c)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s213357795', 's587728058', 's676743852', 's795995942', 's305213472']
|
[2940.0, 2940.0, 3060.0, 3060.0, 3316.0]
|
[17.0, 17.0, 17.0, 17.0, 21.0]
|
[57, 64, 163, 150, 72]
|
p02717
|
u736443076
| 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\nsys.setrecursionlimit(10 ** 7)\nrl = sys.stdin.readline\n\n\ndef solve():\n x, y, z = map(int, rl().sprit())\n print(z, x, y)\n \n\nif __name__ == '__main__':\n solve()\n", "import sys\n\nsys.setrecursionlimit(10 ** 7)\nrl = sys.stdin.readline\n\n\ndef solve():\n a = input()\n if a[2] == a[3] and a[4] == a[5]:\n print('Yes')\n else:\n print('No')\n\n\nif __name__ == '__main__':\n solve()\n", "def solve():\n x, y, z = map(int,input().split())\n print(z, x, y)\n\n\nif __name__ == '__main__':\n solve()\n"]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s330621133', 's555527304', 's838106275']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[183, 228, 112]
|
p02717
|
u738898077
| 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
|
['w', 'a,b,c = map(int,input().split())\nprint(c,a,b)']
|
['Runtime Error', 'Accepted']
|
['s412924216', 's268177545']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[1, 45]
|
p02717
|
u740267532
| 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 K == 1 or N == 0 or N == K:\n print(0)\n exit()\nelif K == 0:\n print(N)\n exit()\nelif N == 1:\n print(1)\n exit()\nelse:\n l = []\n ans = N\n for i in range(max(N,K)):\n ans = abs(ans - K)\n l.append(ans)\n if i >= 1:\n if ans in l:\n print(min(l))\n exit()\n print(min(l))', 'N, K = map(int,input().split())\nif K == 1 or N == 0 or N == K:\n print(0)\n exit()\nelif K == 0:\n print(N)\n exit()\nelif N == 1:\n print(1)\n exit()\nelse:\n l = []\n ans = N\n for i in range(max(N,K)):\n ans = abs(ans - K)\n l.append(ans)\n print(min(l))', 'N, K = map(int,input().split())\nif K == 1 or N == 0 or N == K or N%K==0:\n print(0)\n exit()\nelif K == 0 or K > N:\n print(N)\n exit()\nelif N == 1 or N == K-1 or K == N-1:\n print(1)\n exit()\nelif N > K:\n ans = (N//K) + 1\n res = abs(N - (K*ans))\n print(res)\n exit()', 'x, y, z = map(int, input().split())\nprint(z,x,y)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s271629876', 's431390717', 's572386914', 's706003366']
|
[3064.0, 3064.0, 3064.0, 3316.0]
|
[17.0, 18.0, 18.0, 19.0]
|
[383, 286, 289, 48]
|
p02717
|
u745687363
| 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())\nA=[z, x, y]\nprint(' '.join(i) for i in A)\n", "x, y, z =map(int, input().split())\nA=[z, x, y]\nprint(' '.join(A))\n", "x, y, z =map(int, input().split())\nA=[z, x, y]\nprint(' '.join(map(str, A)))"]
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s116341618', 's563525149', 's176877006']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[77, 66, 75]
|
p02717
|
u746543599
| 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()))\n\nprint(li[2] + " " + li[0] + " " + li[1])', 'x, y, z = map(str, input().split())\nprint(y + " " + z + " " + x)', '1 2 3\n\nli = input().split()\n\nprint(li[3] + " " + li[2] + " " + li[1])', 'X, Y, Z = map(str, input().split())\nprint(Y+" "+Z+" "+X)', 'X, Y, Z = map(str, input().split())\n\nprint(Z + " " + X + " " + Y)']
|
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s145865816', 's354114333', 's447597227', 's488057616', 's691749334']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[80, 64, 69, 56, 65]
|
p02717
|
u749614185
| 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(Z, X, Y)', 'X,Y,Z=input().split()\nprint(Z,X,Y)']
|
['Runtime Error', 'Accepted']
|
['s006185495', 's015185563']
|
[9044.0, 8916.0]
|
[20.0, 28.0]
|
[59, 34]
|
p02717
|
u750945716
| 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(str,input().split())\nprint(c+" "+b+" "+a)', 'a,b,c=map(str,input().split())\nprint(c+" "+a+" "+b)']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s609873311', 's748532057', 's482020738']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[51, 51, 51]
|
p02717
|
u752236842
| 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()))\na.reverse()\nprint(*a)', 'a = list(map(int,input().split()))\na[0],a[1]=a[1],a[0]\na[0],a[2]=a[2],a[0]\nprint(*a)']
|
['Wrong Answer', 'Accepted']
|
['s838024877', 's626989161']
|
[9080.0, 9116.0]
|
[23.0, 21.0]
|
[56, 84]
|
p02717
|
u757030836
| 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)\n\n']
|
['Wrong Answer', 'Accepted']
|
['s080372546', 's888538082']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[44, 46]
|
p02717
|
u759465878
| 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(input())\nB = int(input())\nC = int(input())\n\nA_b = B\nB_a = A\n\nA_c = C\nC_a = A_b\nprint(A_c,B_a,C_a)', 'A = int(input())\nB = int(input())\nC = int(input())\n\nA,B = B,C\nA,C = C,A\n\nprint(A,B,C)', 'A,B,C = map(int,input().split())\nA,B = B,A\n\nA,C = C,A\nprint(A,B,C)\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s040566916', 's448099160', 's775015243']
|
[2940.0, 2940.0, 2940.0]
|
[16.0, 17.0, 17.0]
|
[105, 85, 67]
|
p02717
|
u762755436
| 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(Z)\nprint(X)\nprint(Y)', 'X=int(input())\nY=int(input())\nZ=int(input())\nprint(Z,X,Y)', 'X,Y,Z = map(int, input().split())\nprint(Z,X,Y)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s324369397', 's340236621', 's116998870']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[71, 57, 46]
|
p02717
|
u763383823
| 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 = int(input().split())\nlist = []\nlist.append(li[2])\nlist.append(li[0])\nlist.append(li[1])\nprint(list)', 'li = input().split()\nlist = []\nlist.append(li[2])\nlist.append(li[0])\nlist.append(li[1])\nprint(list)', 'x,y,z = map(int,input().split())\nprint(z, x, y)']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s421984833', 's743040940', 's810142757']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[104, 99, 47]
|
p02717
|
u765699396
| 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=input().split()\na=int(a)\nb=int(b)\ny=[10**18]\nf=0\nfor i in range (10**18):\n x=a-b\n if x<0:\n y.append(x*(-1))\n a=x*(-1)\n else :\n y.append(x)\n a=x\n if y[i]<=y[i+1]:\n f=y[i]\n break\n\nprint(f)', 'a,b,c=input().split()\nprint(c+" "+a+" "+b)']
|
['Runtime Error', 'Accepted']
|
['s598469047', 's951953214']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[244, 42]
|
p02717
|
u768752804
| 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 = []\nbox = input().split()\nbox[0], box[1] = box[1], box[0]\nbox[0], box[2] = box[2], box[0]\nprint(box[0] box[1] box[2])', 'box = []\nbox = input().rstrip()\nprint(box[2] box[0] box[1])', 'a, b, c = input().split()\na, b = b, a\na, c = c, a\nprint(a, b, c)\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s378656155', 's852958842', 's849518797']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[122, 59, 65]
|
p02717
|
u770199020
| 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("{} {} {}".format(Z, Y, X))', 'X, Y, Z = [int(i) for i in input().split()]\nprint("{} {} {}".format(Z, X, Y))']
|
['Wrong Answer', 'Accepted']
|
['s189071494', 's451386627']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[77, 77]
|
p02717
|
u773440446
| 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 = [map(int,input().split())]\nfor i in range(2):\n n.pop(i)\n n.append(n[i])\n \nfor i in range(3):\n print(n[i],end='')", "n = list(map(int,input().split()))\nm = []\nfor i in range(2):\n m.append(n[i])\n n.pop(i)\n n.append(m[i])\n \nfor i in range(3):\n print(n[i],'',end='')", 'n = list(map(int,input().split()))\nm = []\nfor i in range(2):\n m.append(n[i])\n n.pop(i)\n n.append(m[i])\n \nprint(*n)', " = list(map(int,input().split()))\nm = []\nfor i in range(2):\n m.append(n[i])\n n.pop(i)\n n.append(m[i])\n \nfor i in range(3):\n print(str(n[i]) + ' ',end='')", "n = list(map(int,input().split()))\nm = []\nfor i in range(2):\n m.append(n[i])\n n.pop(i)\n \nn.append(m[0])\nn.append(m[1])\n \nfor i in range(3):\n print(n[i],'',end='')", 'n = list(map(int,input().split()))\nm = []\nfor i in range(2):\n m.append(n[0])\n n.pop(0)\n \nn.append(m[0])\nn.append(m[1])\n \nprint(*n)']
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s080635570', 's109488754', 's144883117', 's208871852', 's592824547', 's314963631']
|
[9008.0, 9164.0, 8928.0, 8936.0, 9116.0, 9176.0]
|
[21.0, 21.0, 20.0, 22.0, 21.0, 26.0]
|
[120, 157, 124, 164, 173, 140]
|
p02717
|
u773686010
| 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_List = list(map(int,input().split()))\nN_List.append(N_List.pop(0))\nprint(" ".join(map(str,N_List)))', 'N_List = list(map(int,input().split()))\nN_List.insert(0,N_List.pop(2))\nprint(" ".join(map(str,N_List)))']
|
['Wrong Answer', 'Accepted']
|
['s222425752', 's579876417']
|
[9008.0, 9100.0]
|
[25.0, 31.0]
|
[101, 103]
|
p02717
|
u781027071
| 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()\nprint(Z, X, Y)', 'X, Y, Z = input().split()\nprint(Z, X, Y)']
|
['Runtime Error', 'Accepted']
|
['s829775430', 's689082373']
|
[2940.0, 2940.0]
|
[17.0, 19.0]
|
[32, 40]
|
p02717
|
u783273444
| 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 -*-\n\nN,M = map(int,input().split())\nA = list(map(int,input().split()))\n\ncutoff = sum(A)/(4*M)\ncount_pop = sum(i >= cutoff for i in A)\n\n\nif count_pop<M :\n print("No")\nelse:\n print("Yes")', '# -*- coding: utf-8 -*-\nX,Y,Z = map(int,input().split())\nprint("{} {} {}".format(Z,X,Y))']
|
['Runtime Error', 'Accepted']
|
['s463020604', 's656616645']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[233, 88]
|
p02717
|
u789199177
| 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
|
['1 2 3', "a = list(map(int, input().split()))\nprint(str(a[2])+' '+str(a[0])+' '+str(a[1]))"]
|
['Runtime Error', 'Accepted']
|
['s205353391', 's355150342']
|
[3068.0, 2940.0]
|
[17.0, 18.0]
|
[5, 80]
|
p02717
|
u789565565
| 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)']
|
['Runtime Error', 'Accepted']
|
['s743006376', 's690711927']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[36, 36]
|
p02717
|
u791070772
| 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\ntmp = a\na = b\nb = tmp\n\ntmp = a\na = c\nc = a\n\nprint("{} {} {}".format(a,b,c))', 'a,b,c = map(int, input().split())\n\ntmp = a\na = b\nb = tmp\n\ntmp = a\na = c\nc = tmp\n\nprint("{} {} {}".format(a,b,c))']
|
['Wrong Answer', 'Accepted']
|
['s850446119', 's754099583']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[110, 112]
|
p02717
|
u791110052
| 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 = list(map(int, input().split()))\n\nx, y = (n[1], n[0])\nn[0], n[1] = (x, y)\n\nx, z = (n[2], n[0])\nn[0], n[2] = (x, z)\n\nprint(n)', 'n = list(map(int, input().split()))\n \nx, y = (n[1], n[0])\nn[0], n[1] = (x, y)\n \nx, z = (n[2], n[0])\nn[0], n[2] = (x, z)\n \nprint(" ".join(list(map(str, n))))']
|
['Wrong Answer', 'Accepted']
|
['s913091058', 's898878160']
|
[9144.0, 9140.0]
|
[23.0, 20.0]
|
[127, 168]
|
p02717
|
u791312217
| 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\nimport os\nimport bisect, collections, copy, itertools, math, string\ndef I(): return int(input())\ndef S(): return input()\ndef LI(): return list(map(int, input().split()))\ndef LS(): return list(input().split())\n\n\n\ndef solve():\n\tABC = LI()\n \n def swap(i, j):\n tmp = ABC[i]\n ABC[i] = ABC[j]\n ABC[j] = tmp\n \n swap(0, 1)\n swap(0, 2)\n print(ABC[0], ABC[1], ABC[2])\n \n \n\t\nif __name__ == '__main__':\n\tsolve()\n", "import sys\nimport os\nimport bisect, collections, copy, itertools, math, string\ndef I(): return int(input())\ndef S(): return input()\ndef LI(): return list(map(int, input().split()))\ndef LS(): return list(input().split())\n\ndef solve():\n\tABC = LI()\n\n\tdef swap(i, j):\n\t\ttmp = ABC[i]\n\t\tABC[i] = ABC[j]\n\t\tABC[j] = tmp\n\n\tswap(0, 1)\n\tswap(0, 2)\n\n\tprint(ABC[0], ABC[1], ABC[2])\n\t\nif __name__ == '__main__':\n\tsolve()\n"]
|
['Runtime Error', 'Accepted']
|
['s871156824', 's161696017']
|
[2940.0, 4016.0]
|
[17.0, 30.0]
|
[452, 407]
|
p02717
|
u796044734
| 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
|
['line = input().split\n\nX = line[0]\nY = line[1]\nZ = line[2]\n\nprint( str(Y) + " " + str(X) + " " + str(Z) )\n', 'line = input().split\n\nX = line[0]\nY = line[1]\nZ = line[2]\n\nprint( Z + " " + X + " " + Y )\n', 'line = input().split\n\nX = line[0]\nY = line[1]\nZ = line[2]\n\nprint( Y + " " + X + " " + Z )', 'line = input().split\n\nX = line[0]\nY = line[1]\nZ = line[2]\n\nprint( str(Y) + " " + str(X) + " " + str(Z) )\n', 'X,Y,Z = map(int,input().split())\n\nprint(str(Z) + " " + str(X) + " " + str(Y))\n']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s222659271', 's297109357', 's640219793', 's854275659', 's839368659']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0, 17.0, 18.0]
|
[105, 90, 89, 105, 78]
|
p02717
|
u798260206
| 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 = intput().split()\n\nprint(Z,X,Y)', 'X,Y,Z=map(int,input().split()))\n\nprint(Z, X, Y)\n\n\n\n\n', 'X = input()\nY = input()\nZ = input()\n\nprint(Z, X ,Y)\n\n\n\n\n', 'X = int(input())\nY = int(input())\nZ = int(input())\n\nprint(Z, X, Y)\n\n\n\n\n', 'X,Y,Z = map(str,intput().split())\n\nprint(Z,X,Y)', 'x, y, z = map(int, input().split())\nprint(z, x, y)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s174932620', 's254300163', 's419962358', 's546720624', 's614860830', 's083015797']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
|
[38, 52, 56, 71, 47, 50]
|
p02717
|
u798675549
| 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(S[4]+' '+S[:2])", 'S=input().split()\nprint(S[2],S[0],S[1])']
|
['Wrong Answer', 'Accepted']
|
['s242198563', 's741646949']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[31, 39]
|
p02717
|
u798818115
| 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
|
['%%time\nimport scipy.stats\nfrom sklearn.datasets import load_breast_cancer\nfrom sklearn.svm import LinearSVC\nfrom sklearn.model_selection import GridSearchCV\nfrom sklearn.model_selection import RandomizedSearchCV\nfrom sklearn.model_selection import train_test_split\nfrom sklearn.metrics import f1_score\n\nimport pandas as pd\n\n\ndf=pd.read_csv("ダミーデータ.csv",index_col=0)\nX=df.iloc[:, 1:].values.tolist()\ny=df["y"].values\n\nprint(X)\n\n\nmax_score = 0\nSearchMethod = 0\nLSVC_grid = {LinearSVC(): {"C": [10 ** i for i in range(-5, 6)],\n "multi_class": ["ovr", "crammer_singer"],\n "class_weight": ["balanced"],\n "random_state": [i for i in range(0, 101)]}}\nLSVC_random = {LinearSVC(): {"C": scipy.stats.uniform(0.00001, 1000),\n "multi_class": ["ovr", "crammer_singer"],\n "class_weight": ["balanced"],\n "random_state": scipy.stats.randint(0, 100)}}\n\n\ntrain_X, test_X, train_y, test_y = train_test_split(X, y, test_size=0.2, random_state=0)\n\n\nfor model, param in LSVC_grid.items():\n clf = GridSearchCV(model, param)\n clf.fit(train_X, train_y)\n pred_y = clf.predict(test_X)\n score = f1_score(test_y, pred_y, average="micro")\n\n if max_score < score:\n max_score = score\n best_param = clf.best_params_\n best_model = model.__class__.__name__\n\n\nfor model, param in LSVC_random.items():\n clf =RandomizedSearchCV(model, param)\n clf.fit(train_X, train_y)\n pred_y = clf.predict(test_X)\n score = f1_score(test_y, pred_y, average="micro")\n\n if max_score < score:\n SearchMethod = 1\n max_score = score\n best_param = clf.best_params_\n best_model = model.__class__.__name__\n\nif SearchMethod == 0:\n print("サーチ方法:グリッドサーチ")\nelse:\n print("サーチ方法:ランダムサーチ")\nprint("ベストスコア:{}".format(max_score))\nprint("モデル:{}".format(best_model))\nprint("パラメーター:{}".format(best_param))\n\n\nmodel = LinearSVC()\nmodel.fit(train_X, train_y)\nscore = model.score(test_X, test_y)\nprint("")\nprint("デフォルトスコア:", score)', '# coding: utf-8\n# Your code here!\n\nx,y,z=input().split()\n\nprint(z,x,y)\n']
|
['Runtime Error', 'Accepted']
|
['s959009342', 's853987618']
|
[2940.0, 9016.0]
|
[17.0, 24.0]
|
[2414, 71]
|
p02717
|
u799428010
| 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(str(Z)+str(X)+str(Y))', ' a, b,c = map(int, input().split())\n print(a,b,c)', "a,b,c= map(int, input().split())\nprint(a+' '+b+' '+c)", "X,Y,Z=list(map(int, input().split()))\nprint(str(Z)+' '+str(X)+' '+str(Y))"]
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s310490145', 's326151319', 's509787791', 's904582333']
|
[9160.0, 2940.0, 2940.0, 9096.0]
|
[31.0, 17.0, 17.0, 27.0]
|
[65, 50, 53, 73]
|
p02717
|
u801047230
| 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())\nif (A > 100) | (B > 100) | (C > 100):\n print("invalid")\nelif (A < 1) | (B < 1) | (C < 1):\n print("invalid")\nelif (B == A+1)&(C == B+1):\n print(C,B,A)\nelse:\n print(C,A,B)', 'A,B,C = map(int,input().split())\nif (B == A+1)&(C == B+1):\n print(C,B,A)\nelse:\n print(C,A,B)', 'A,B,C = map(int,input().split())\nprint(C,B,A)', 'A,B,C = map(int,input().split())\nif (B == A+1)&(C == B+1):\n print(C,B,A)\nelif (A,B,C > 100):\n print("invalid")\nelif(A, B,C) < 1:\n print("invalid")\nelse:\n print(C,A,B)', 'A,B,C = map(int,input().split())\nprint(C,A,B)']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s269273631', 's604657117', 's786551575', 's972040626', 's816984775']
|
[3060.0, 2940.0, 2940.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[214, 98, 45, 178, 45]
|
p02717
|
u803684095
| 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
|
['#include <bits/stdc++.h>\n\nusing namespace std;\ntypedef long long ll;\n\n#define INF (long long)(1e9+7)\n\n\n\nint main(void)\n{\n int a,b,c;\n cin >>a >> b >> c;\n swap(a, b);\n swap(a, c);\n cout << a << " " << b << " " << c << endl;\n}\n', 'a,b,c=map(int,input().split())\nprint(c,a,b)\n']
|
['Runtime Error', 'Accepted']
|
['s674716248', 's631121134']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[316, 44]
|
p02717
|
u804180276
| 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
|
['\nlist = input().split()\n\n\nlist[0], list[1] = list[1], list[0]\n\n\nlist[0], list[2] = list[2], list[0]\n\nprint(list)', "\nN,M = map(int, input().split())\n\nhyou = list(map(int, input().split()))\n\n\ntotal_hyou = 0\nfor i in hyou:\n total_hyou += i\n\n基準クリア数\ncount = 0\nfor j in hyou:\n if j >= 1/4*M:\n count += 1\n \n\nif count >= M:\n print('Yes')\nelse:\n print('No')", '\nlist = input().split()\n\n\nlist[0], list[1] = list[1], list[0]\n\n\nlist[0], list[2] = list[2], list[0]\n\nprint(list)\n', '\nN,M = map(int, input().split())\n\nhyou = list(map(int, input().split()))\n\n\ntotal_hyou = sum(hyou)\n\n基準クリア数\ncount = 0\nborder = int(total_hyou/(4*M))\nfor j in hyou:\n if j >= border:\n count += 1\n \n\nif count >= M:\n print("Yes")\nelse:\n print("No")', "\nN,M = map(int, input().split())\n\nhyou = list(map(int, input().split()))\n\n\ntotal_hyou = 0\nfor i in hyou:\n total_hyou += i\n\n基準クリア数\ncount = 0\nborder = int(total_hyou*(1/4*M))\nfor j in hyou:\n if j >= border:\n count += 1\n \n\nif count >= M:\n print('Yes')\nelse:\n print('No')", "\nN,M = map(int, input().split())\n\nhyou = list(map(int, input().split()))\n\n\ntotal_hyou = 0\nfor i in hyou:\n total_hyou += i\n\n基準クリア数\ncount = 0\nborder = int(total_hyou/(4*M))\nfor j in hyou:\n if j >= border:\n count += 1\n \n\nif count >= M:\n print('Yes')\nelse:\n print('No')", "\nN,M = map(int, input().split())\n\nhyou = list(map(int, input().split()))\n\n\ntotal_hyou = 0\nfor i in hyou:\n total_hyou += i\n\n基準クリア数\ncount = 0\nfor i in hyou:\n if i >= 1/4*M:\n count += 1\n \n\nif count >= M:\n print('Yes')\nelse:\n print('No')", "\nlist = input().split()\n \n\nlist[0], list[1] = list[1], list[0]\n \n\nlist[0], list[2] = list[2], list[0] \n \nprint(' '.join(list))"]
|
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s236437571', 's260755954', 's314631031', 's464357906', 's685303045', 's922361033', 's991036952', 's050456969']
|
[9032.0, 9188.0, 8972.0, 9172.0, 9176.0, 9132.0, 9176.0, 9000.0]
|
[20.0, 22.0, 23.0, 22.0, 23.0, 20.0, 23.0, 20.0]
|
[182, 373, 183, 380, 407, 405, 373, 212]
|
p02717
|
u804885478
| 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(cell):\n\n n=cell[0]\n k=cell[1]\n risk=int(abs(n/k))\n n=n-k*(risk-2)\n pren=n\n while 2>0:\n n=abs(n-k)\n if n >pren:\n break\n else:\n pren=n\n\n return pren\n \n\n\ncell=list(map(int,input().split()))\npren=main(cell)\nprint(pren)', 'def main(cell):\n\n n=cell[0]\n k=cell[1]\n pren=n\n while 2>0:\n n=abs(n-k)\n if n >pren:\n break\n else:\n pren=n\n\n return pren\n \n\n\ncell=list(map(int,input().split()))\npren=main(cell)\nprint(pren)', 'n=list(map(int,input().split()))\nn[0],n[1]=n[1],n[0]\nn[0],n[2]=n[2],n[0]\n\nprint(n[0],n[1],n[2])']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s691383633', 's901026538', 's983027084']
|
[3064.0, 3060.0, 3060.0]
|
[2104.0, 2103.0, 17.0]
|
[290, 248, 95]
|
p02717
|
u806976856
| 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()\nf="No"\nif s[2]==s[3] and s[4]==s[5]:\n f="Yes"\nif len(s)!=6:\n f="No"\nprint(f)', 'a,b,c=input().split()\nprint(c,a,b)']
|
['Wrong Answer', 'Accepted']
|
['s450862028', 's938110569']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[92, 34]
|
p02717
|
u809108154
| 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)v', 'a,b,c = map(int, input().split())\nprint(c,a,b)']
|
['Runtime Error', 'Accepted']
|
['s749830879', 's037827994']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[47, 46]
|
p02717
|
u809371093
| 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())\nr = X\nX = Y\nY = r\nr = X\nX = Z\nZ = r\nprint(X,Y,Z)', 'a,b,c = input().split()\nprint(c,a,b)']
|
['Runtime Error', 'Accepted']
|
['s506713521', 's487032874']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[99, 36]
|
p02717
|
u815304751
| 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(),splut()))\n\nprint(z,x,y)', 'x,y,z=list(map(int,input(),split()))\n\nprint(z,x,y)\n', 'x,y,z=list(map(int,input().split()))\n\nprint(z,x,y)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s678753846', 's887699996', 's996939719']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 17.0]
|
[50, 51, 50]
|
p02717
|
u815468655
| 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 = 41, 59, 31\na, b, c = b, c, a\nprint(b,c,a)', 'a, b, c = 41, 59, 31\na, b, c = c, a, b\nprint(a,b,c)', 'a,b,c = input().split()\nprint(c,a,b)']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s268943149', 's298006177', 's874519026']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[51, 51, 36]
|
p02717
|
u816265237
| 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
|
['#abc 161c\nimport math\nn,k = map(int, input().split())\ni = int(n/k)\nilow = i\niup = i+1\nprint(min(n,abs(n-k*iup),n-k*ilow))', "#abc 161a\na,b,c = map(int, input().split())\n# abc -> bac -> cab\nprint(str(c)+' '+str(a)+' '+str(b))"]
|
['Runtime Error', 'Accepted']
|
['s125574453', 's207115325']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[121, 99]
|
p02717
|
u821823292
| 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().split()\ntemp=A\nA=B\nB=temp\ntemp=A\nA=C\nC=temp', 'A,B,C=input().split()\ntemp=A\nA=B\nB=temp\ntemp=A\nA=C\nC=temp\nprint(A,B,C)']
|
['Wrong Answer', 'Accepted']
|
['s739247509', 's172229992']
|
[2940.0, 3060.0]
|
[17.0, 18.0]
|
[57, 70]
|
p02717
|
u824537226
| 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(c,b,a)\n', 'a, b, c = map(int,input().split())\n\nprint(b,a,c)\nprint(c,b,a)\n', 'a, b, c = map(int,input().split())\n\na, b, c = b, a, c\na, b, c = c, a, b\n\nprint(a, b, c)\n', 'a, b, c = map(int,input().split())\n\na, b, c = b, a, c\na, b, c = c, b, a\n\nprint(a, b, c)\n']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s506641233', 's903709938', 's973864809', 's762372922']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[49, 62, 88, 88]
|
p02717
|
u826785572
| 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\ntotal = sum(a)\n\ncount = 0\n\nvalid = total / (4 * m)\n\nfor i in a:\n if i > valid:\n count += 1\n\nif count >= m:\n print('Yes')\nelse:\n print('No')\n", 'x, y, z = map(int, input().split())\n\nx, y = y, x\nx, z = z, x\n\nprint(x, y, z)\n\n']
|
['Runtime Error', 'Accepted']
|
['s916346148', 's453580704']
|
[3060.0, 3064.0]
|
[17.0, 18.0]
|
[226, 78]
|
p02717
|
u827554201
| 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
|
['k = int(input())\n \nlunlun = []\n \nend = False\nwhile True:\n val = 0\n while True:\n val += 1\n val_list = [int(x) for x in list(str(val))]\n is_lun = True \n for x in range(len(val_list) - 1):\n if abs(val_list[x] - val_list[x + 1]) <= 1:\n continue\n else:\n is_lun = False\n if is_lun:\n lunlun.append(val)\n else:\n continue\n if len(lunlun) == k:\n end = True\n break\n if end:\n break\n \nprint(lunlun[k - 1])', 'a, b, c = map(int, open(0).read().split())\nprint("{} {} {}".format(c, a, b))\n']
|
['Runtime Error', 'Accepted']
|
['s779437808', 's065405021']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[553, 77]
|
p02717
|
u828139046
| 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 = map(int,input().split())\n\nprint(nums[2],nums[0],nums[1])', "nums = input().split()\nprint(nums[2],nums[0],nums[1],sep = ' ')"]
|
['Runtime Error', 'Accepted']
|
['s999762874', 's454345921']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[63, 63]
|
p02717
|
u830162518
| 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())\nprint(z,x,y)\n']
|
['Runtime Error', 'Accepted']
|
['s475982639', 's253946890']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[43, 44]
|
p02717
|
u837286475
| 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("{} {} {}".format(c,b,a))', 'a,b,c = map(int,input().split())\n\nprint("{} {} {}".format(c,a,b))']
|
['Wrong Answer', 'Accepted']
|
['s916867906', 's537225905']
|
[9136.0, 9124.0]
|
[27.0, 28.0]
|
[65, 65]
|
p02717
|
u837673618
| 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())\nprint(Z, X, Y)']
|
['Runtime Error', 'Accepted']
|
['s005037023', 's434953182']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[48, 50]
|
p02717
|
u842673022
| 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']
|
['s261486146', 's281289989']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[46, 48]
|
p02717
|
u845650912
| 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']
|
['s260038672', 's335656950']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[51, 51]
|
p02717
|
u846385882
| 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
|
['\na,b,c=input().split()\n\nprint([b,c,a])\n', '\na,b,c=input().split()\n\nprint([c,a,b])\n', '\na,b,c=input().split()\n\nprint(c,a,b)\n']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s321289785', 's332335931', 's988072507']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[39, 39, 37]
|
p02717
|
u847033024
| 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)', 'a, b, c = map(int, input().split())\nprint(c, a, b)\n']
|
['Runtime Error', 'Accepted']
|
['s687162081', 's905999181']
|
[8960.0, 9012.0]
|
[22.0, 24.0]
|
[47, 51]
|
p02717
|
u847727454
| 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 = [input(),input(),input()]\nX,Y,Z = box\nprint(Y,Z,X)', 'box = [input(),input(),input()]\nX,Y,Z = box\nprint(Y,Z,X)', 'X,Y,Z = list(map(int,input().split()))\nprint(Y,Z,X)', 'X,Y,Z = list(map(int,input().split()))\nprint(Z,X,Y)']
|
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s470270554', 's678731752', 's799783882', 's152322078']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 17.0, 17.0]
|
[56, 56, 51, 51]
|
p02717
|
u849151695
| 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\nN, K = map(int,input().split())\nN = fractions.gcd(N,K)\nmin = N\nfor i in range(10**8):\n N = abs(N-K)\n if min > N:\n min = N\n if N == 0:\n min = 0\n break\nprint(min)', 'from bisect import bisect_left\n\nN, M = map(int,input().split())\nA = list(map(int,input().split()))\n\n#print(M)\nA.sort()\n#print(A)\n\nlimit = sum(A)/(4*M)\n#print(limit)\n\nn = bisect_left(A, limit)\n#print(N-n-1)\nif N-n-1 >= M:\n print("Yes")\nelse:\n print("No")\n', '#imput\na,b,c = map(int,input().split())\n\na, b = b, a\na, c = c, a\n\nprint(a,b,c)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s180883379', 's873768872', 's002522787']
|
[5560.0, 3060.0, 2940.0]
|
[45.0, 18.0, 17.0]
|
[207, 260, 78]
|
p02717
|
u852790844
| 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)']
|
['Runtime Error', 'Accepted']
|
['s875522184', 's571461892']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[41, 49]
|
p02717
|
u853728588
| 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\na = b, b = a\na = c, c = a\nprint(a b c)\n', 'x, y, z = map(int, input().split())\n\nprint(z, x, y)']
|
['Runtime Error', 'Accepted']
|
['s301658927', 's526039434']
|
[8852.0, 8948.0]
|
[24.0, 21.0]
|
[76, 51]
|
p02717
|
u856877562
| 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(x) for x in input().split())\na,b = b,a\na,c = c,a\nprint(a+b+c)', 'x,y,z=input().split()\nprint(z,x,y)\n']
|
['Wrong Answer', 'Accepted']
|
['s780380284', 's911916708']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[72, 35]
|
p02717
|
u859059120
| 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(b,a,c)', 'a,b,c=map(int,input().split())\nprint(c,a,b)']
|
['Wrong Answer', 'Accepted']
|
['s010857093', 's010391472']
|
[2940.0, 2940.0]
|
[17.0, 19.0]
|
[43, 43]
|
p02717
|
u860002137
| 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().split()\nprint("{} {} {}".format(c, b, a))', 'x, y, z = map(int, input().split())\nprint(z, x, y)']
|
['Wrong Answer', 'Accepted']
|
['s961582546', 's037321944']
|
[2940.0, 9012.0]
|
[17.0, 26.0]
|
[59, 50]
|
p02717
|
u860234244
| 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\ntmp = x\nx = z\nz = tmp", "x,y,z = list(map(int,input().split(' ')))\ntmp = x\nx = y\ny = tmp\ntmp = x\nx = z\nz = tmp", "x,y,z = map(int,input().split(' '))\ntmp = x\nx = y\ny = tmp\ntmp = x\nx = z\nz = tmp\nprint(x,y,z)"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s466909755', 's927640701', 's906797572']
|
[2940.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[79, 85, 92]
|
p02717
|
u861063312
| 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())\ntemp=a\na=b\nb=temp\ntamp=a\na=c\nc=tamp\n', 'a,b,c=map(int,input().split())\ntemp=a\na=b\nb=temp\ntamp=a\na=c\nc=tamp\nprint(a,b,c)\n']
|
['Wrong Answer', 'Accepted']
|
['s649249972', 's864021684']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[67, 80]
|
p02717
|
u863093690
| 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()))\nA=L[0]\nB=L[1]\nC=L[2]\n\nL[0]=B\nL[1]=A\nA=L[0]\nB=L[1]\n\nL[0]=C\nL[2]=A\nA=L[0]\nC=L[2]\n\nprint(L)', "L=list(map(int, input().split()))\nA=L[0]\nB=L[1]\nC=L[2]\n\nL[0]=B\nL[1]=A\nA=L[0]\nB=L[1]\n\nL[0]=C\nL[2]=A\nA=L[0]\nC=L[2]\n\nprint(' '.join(map(str, L)))"]
|
['Wrong Answer', 'Accepted']
|
['s135505770', 's706079254']
|
[3060.0, 3064.0]
|
[17.0, 17.0]
|
[122, 142]
|
p02717
|
u870518235
| 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 = str(input())\nprint(Z + " " + X + " " + Y)', 'X, Y, Z = map(str, input().split())\nprint(Z + " " + X + " " + Y)']
|
['Runtime Error', 'Accepted']
|
['s431049605', 's891291844']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[51, 64]
|
p02717
|
u873736356
| 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().split()\nprint(s)\nprint(s[2],s[0],s[1])\n', 'X,Y,Z = map(int,input().split())\nprint(Z,X,Y)\n']
|
['Wrong Answer', 'Accepted']
|
['s677909555', 's160320431']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[51, 46]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.