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
u342057298
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 = input()\n abc.split(" ")\n print(abc[2] + " " + abc[0] + " " + abc[1])', 'abc = input()\ns = abc.split(" ")\nprint(s[2] + " " + s[0] + " " + s[1])']
['Runtime Error', 'Accepted']
['s339910359', 's452314917']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 70]
p02717
u343523553
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)\n']
['Wrong Answer', 'Accepted']
['s251985112', 's686719586']
[2940.0, 2940.0]
[17.0, 18.0]
[45, 46]
p02717
u345389118
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(Y, Z, X))", "X, Y, Z = map(int, input().split())\nprint('{} {} {}'.format(Z, X, Y))"]
['Wrong Answer', 'Accepted']
['s590315023', 's401810130']
[2940.0, 2940.0]
[17.0, 17.0]
[69, 69]
p02717
u347920118
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 = []\nvote = []\nnum = list(map(int,input().split()))\nvote = list(map(int,input().split()))\nN = num[0]\nM = num[1]\nj = (sum(vote)/(4*M)\n#print(j)\n\ncnt = 0\nfor i in vote:\n if i>=j:\n cnt += 1\n else:\n pass\n#print(cnt)\nif M<=cnt:\n print("Yes")\nelse:\n print("No")\n', 's = input().split()\nprint(s[2],s[0],s[1])']
['Runtime Error', 'Accepted']
['s635709642', 's864984861']
[2940.0, 2940.0]
[16.0, 17.0]
[287, 41]
p02717
u350412774
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("{} {} {}".format(c, a, b))', 'a, b, c = map(int, input().split())\n \nprint("{} {} {}".format(c, a, b))']
['Runtime Error', 'Accepted']
['s300922386', 's763051791']
[2940.0, 3060.0]
[18.0, 20.0]
[62, 71]
p02717
u357120030
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
['ri = lambda S: [int(v) for v in S.split()]\nX, Y, Z = ri(input())\n\nif X > Y:\n X, Y = Y, X\nif Y > Z:\n Y, Z = Z, Y\nif X > Y:\n X, Y = Y, X\n\nprint(X, Y, Z, sep=" ")', 'ri = lambda S: [int(v) for v in S.split()]\nX, Y, Z = ri(input())\n\nX, Y = Y, X\nX, Z = Z, X\n\nprint(X, Y, Z, sep=" ")']
['Wrong Answer', 'Accepted']
['s100268869', 's844624236']
[9136.0, 9064.0]
[29.0, 24.0]
[168, 114]
p02717
u357751375
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
['a1,b1,c1 = input().split()\na2 = b1\nb2 = a1\na3 = c1\nc3 = a2\nprint(a3 + b2 + c3)', 'a,b,c = input().split()\nb,a = a,b\nc,a = a,c\nprint(a + b + c)', "a,b,c = input().split()\nb,a = a,b\nc,a = a,c\nprint(a + ' ' + b + ' ' + c)"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s161432552', 's418498790', 's574523129']
[8924.0, 8824.0, 8988.0]
[23.0, 23.0, 19.0]
[78, 60, 72]
p02717
u363836311
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)\n']
['Wrong Answer', 'Accepted']
['s969653804', 's267595626']
[3316.0, 2940.0]
[19.0, 17.0]
[44, 45]
p02717
u364555831
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']
['s623686087', 's878952600']
[8964.0, 9040.0]
[19.0, 27.0]
[43, 51]
p02717
u364774090
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\nA, B = B, A\nA, C = C, A\nprint(A, B, C)A, B, C = list(map(int, input().split()))\n\nA, B = B, A\nA, C = C, A\nprint(A, B, C)', 'A, B, C = list(map(int, input().split()))\n\nA, B = B, A\nA, C = C, A\nprint(A, B, C)']
['Runtime Error', 'Accepted']
['s189145481', 's788838452']
[8920.0, 9080.0]
[22.0, 28.0]
[162, 81]
p02717
u365243017
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[3],L[1],L[2])\n', 'L=list(map(int,input().split()));print(L[3],L[1],L[2])', 'L=list(map(int,input().split()))\nprint(L[2],L[0],L[1])\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s338021381', 's576379572', 's594733882']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[55, 54, 55]
p02717
u365770301
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+""+x+""+y)', 'x,y,z= map(int, input().split())\n\nprint(z x y)', 'x, y, z = map(int, input().split())\n \nprint(z+""+x+""+y)', 'x=input()\ny=input()\nz=input()\n\nprint(z x y)', 'X, Y, Z = map(int, input().split())\n \nprint(Z+" "+X+" "+Y)', 'x, y, z = map(int, input().split())\n \nprint(z+" "+x+" "+y)', 'x=input()\ny= input()\nz= input()\n\nprint(z x y)', 'x, y, z = map(int, input().split())\n\nprint(z+""+x+""+y)\n\n', 'x=int(input())\ny=int(input())\nz=int(input())\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', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s272293294', 's311498300', 's318128149', 's420501316', 's432256053', 's500901742', 's595460522', 's620110103', 's685529311', 's251577391']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[52, 46, 56, 43, 58, 58, 45, 57, 58, 43]
p02717
u369630760
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(c + a + b)', 'a,b,c = input().split()\nprint(c + a + b)', 'a,b,c = input().split()\nprint(c + " " + a + " " + b)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s752708571', 's862742945', 's481631916']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[40, 40, 52]
p02717
u372501464
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']
['s417773805', 's186863206']
[2940.0, 2940.0]
[17.0, 17.0]
[38, 40]
p02717
u374082254
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\nsumA = sum(A)\n\nfilteredA = list(filter(lambda x: x < (sumA / (4*M)), A))\n\nif M <= len(filteredA):\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']
['Runtime Error', 'Accepted']
['s849287950', 's194267131']
[2940.0, 2940.0]
[17.0, 17.0]
[207, 77]
p02717
u383309665
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))"]
['Runtime Error', 'Accepted']
['s144581074', 's815683075']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 69]
p02717
u385649291
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_num = input()\nline = line_num.split(" ")\na = line[0]\nb = line[1]\nc = line[2]\nprint(a+" "+c+ " "+b)', 'line_num = input()\nline = line_num.split(" ")\na = line[0]\nb = line[1]\nc = line[2]\nprint(c+" "+a+ " "+b)']
['Wrong Answer', 'Accepted']
['s827652493', 's503708336']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 103]
p02717
u386439695
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(input().split())\n\nprint(z,x,y)', 'x,y,z = map(int,input().split())\n\nprint(z,x,y)']
['Runtime Error', 'Accepted']
['s660870378', 's267062931']
[2940.0, 2940.0]
[17.0, 17.0]
[42, 46]
p02717
u388458865
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,c,a)', 'a,b,c = map(int,input().split())\nprint(c,a,b)']
['Wrong Answer', 'Accepted']
['s104083736', 's289258316']
[3064.0, 2940.0]
[17.0, 17.0]
[45, 45]
p02717
u391491303
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, b, a))', 'a, b, c = map(int, input().split())\ntmp = a\na = b\nb = tmp\ntmp = c\nc = a\na = tmp', 'a, b, c = map(int, input().split())\ntmp = a\na = b\nb = tmp\ntmp = c\nc = a\na = tmp\nprint("{} {} {}".format(a, b, c))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s249966799', 's973786365', 's505209109']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[69, 79, 113]
p02717
u391579539
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 = ""\nb = ""\nc = ""\n\na = input("")\nb = input("")\nc = input("")\n\nreturn [b, c, a]', '# Sample Input:\n# 4 1\n# 5 4 2 1\n\n# 1/4M * 12 = 1/4 * 12 = 3, can\'t select item < 3\n\nfirst_input = input("").split(" ")\nN, M = map(int, first_input)\nitems = input("")\n\nitems = items.split(" ")\ntotal_votes = list(map(float, items))\n\ntotal_votes = sum(total_votes)\n\nmin_N = total_votes * ( 1.0 / (4.0 * M) )\n\nif(N < min_N):\n print("No")\nelse:\n print("Yes")', '\n\ninput_arr = input("")\ninput_arr = input_arr.split(" ")\n\na = input_arr[0]\nb = input_arr[1]\nc = input_arr[2]\n\nprint([b, c, a])', 'a = input("")\nb = input("")\nc = input("")\n\nreturn [a, b ,c]', '# a b c\n# b a c\n# b c a\n\n\nfunction abcSwap(arr):\n arr[0], arr[1] = arr[1], arr[0]\n arr[1], arr[2] = arr[2], arr[1]\n return arr\n\n', 'input_arr = input("").split(" ")\na, b, c = map(str, input_arr)\n\nprint(c + " " + a + " " + b)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s047911856', 's486077481', 's638711382', 's711255704', 's838330294', 's544498220']
[2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 18.0]
[82, 377, 126, 59, 131, 92]
p02717
u394731058
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 = mpa(int, input().split())\nprint("{} {} {}".format(z,x,y))\n', 'x,y,z = map(int, input().split())\nprint("{} {} {}".format(z,x,y))\n']
['Runtime Error', 'Accepted']
['s182063808', 's179925746']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 66]
p02717
u395944336
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())\nt = n%k\nprint(min(t,abs(k-t)))', 'n, k = map(int, input().split())\n\nt = n%k\nif t > k-t:\n print(k-t)\nelse:\n print(t)', 'n, k = map(int, input().split())\nprint(min(n%k, k-(n%k)))', 'a, b, c = map(int, input().split())\nhoge = a \na = b\nb = hoge\nhoge = a\na = c\nc = hoge\n\nprint(a,b,c)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s507123121', 's631573585', 's983509852', 's133366194']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 16.0, 18.0]
[63, 83, 57, 98]
p02717
u396460578
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())\na,b = b,a\na,c = c,a\nprint(a," ",b,"', 'a,b,c = map(int,input().split())\na,b = b,a\na,c = c,a\nprint(a," ",b,"', 'a,b,c = list(map(int,input().split()))\na,b = b,a\na,c = c,a\nprint(a,b,c)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s220656950', 's534317158', 's628883492']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[68, 68, 71]
p02717
u396553339
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(str, input().split())\n\nprint(C+' '+B+' '+A)", "A, B, C = map(str, input().split())\n\nprint(C+' '+A+' '+B)"]
['Wrong Answer', 'Accepted']
['s977031262', 's149356820']
[8952.0, 8992.0]
[26.0, 26.0]
[57, 57]
p02717
u399298563
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())\nnum = list(range(1, 10))\nfor i in range(K):\n a = num[i]\n b = 10 * a + a % 10\n if a % 10 != 0:\n num.append(b - 1)\n num.append(b)\n if a % 10 != 9:\n num.append(b + 1)\nprint(num[K - 1])', 'A, B, C = map(int, input().split()) \nprint(C, A, B)']
['Runtime Error', 'Accepted']
['s071505979', 's786950422']
[3060.0, 2940.0]
[17.0, 17.0]
[209, 51]
p02717
u402077280
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().split()\nnew = []\nnew.append(str[2])\nnew.append(str[1])\nnew.append(str[0])\nprint(new[0] + " " + new[1] + " " + new[2])', 'str = input().split()\nnew = []\nnew.append(str[2])\nnew.append(str[0])\nnew.append(str[1])\nprint(new[0] + " " + new[1] + " " + new[2])\n']
['Wrong Answer', 'Accepted']
['s701956498', 's275773037']
[2940.0, 2940.0]
[17.0, 17.0]
[131, 132]
p02717
u402342597
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().split()\nlist = [1,1,1]\n\nlist[0] = num[2]\nlist[1] = num[0]\nlist[2] = num[1]\n\nprint(list)', 'num = input().split()\n\nprint(num[2] + " " + num[0] + " " + num[1])']
['Wrong Answer', 'Accepted']
['s117781201', 's664646801']
[2940.0, 2940.0]
[17.0, 17.0]
[101, 66]
p02717
u402467563
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, X = map(str, input().split())\nprint(Z, X, Y)', 'X, Y, Z = map(str, input().split())\nprint(Z, X, Y)']
['Runtime Error', 'Accepted']
['s263310041', 's022605986']
[2940.0, 2940.0]
[18.0, 17.0]
[50, 50]
p02717
u403436880
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']
['s709261411', 's767007734']
[9064.0, 9048.0]
[33.0, 29.0]
[47, 48]
p02717
u404213156
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)', 'A,B,C = map(int,input(),split())\nprint(C,A,B)', 'x, y, z = map(int, input().split())\nprint(z, y, x)', 'print ("X Z Y")', 'a, x, z = map(int, input().split())\nprint(z, x, a)', 'X,Y,Z = map(int, input().split())\n\nprint(Z,Y,X)', "x = 5\ny = 10\ntemp = x\nx = y\ny = temp\nprint('The value of x after swapping: {}'.format(x))\nprint('The value of y after swapping: {}'.format(y))", 'x, y, z = map(int, input().split())\nprint(z, y, x)', 'x,y,z = = map(int, input(),split())\nprint(X,Z,Y)', 'x,y,z = map(int, input().split())\nx,y,z >= 1 && <= 100 \nprint(z,y,x)', 'x, y, z = map(int, input().split())\nprint(z, y, x)', 'd,e,f = map(int,input().split())\nprint(f,e,d)', 'a,b,c = map(int, input().split())\nx,y,z = map(int, input().split())\nprint(c,a,b)\nprint(z,y,x)', 'a,b,c = map(int,input(),split())\nx,y,z = map(int,input(),split())\nprint(c,a,b)\nprint(z,y,x)', 'user_input = input(" ")\nuser_input = "a","b","c" && user_input = "x,y,z"\n"a","b","c" = [1,2,3]\n"x","y","z" = [1,2,3]\nprint(\'The value of x after swapping: {}\'.format(x))\nprint(\'The value of y after swapping: {}\'.format(y))', 'xa, yb, zc = map(int, input().split())\nprint(zc, yb, xa)', 'a,b,c = map(int,input().splite())\nprint(c,a,b)\n', '"x,y,z" = map(int,input(),split())\nprint(z,y,x)', 'a,b,c = map(int,input().splite())\nx,y,z = map(int,input().split())\nprint(c,a,b)\nprint(z,y,x)\n', 'a, b, c = map(int, input().split())\nprint(c, a, b)']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s038638758', 's072161621', 's114302405', 's161030622', 's219004404', 's324795631', 's361637913', 's385221722', 's394266464', 's397927251', 's428620332', 's430614276', 's497142358', 's587536829', 's641781705', 's906362962', 's907690327', 's919740092', 's960892164', 's596607216']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.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, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 20.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 17.0]
[50, 45, 50, 15, 50, 47, 142, 50, 48, 68, 50, 45, 93, 91, 222, 56, 47, 47, 93, 50]
p02717
u407513296
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 = 0;\n\ntmp = X\nX = Y\nY = Z\nZ = tmp\n\nprint(X, Y, Z)\n', 'X, Y, Z = map(int, input().split())\ntmp = 0;\n\ntmp = X\nX = Z\nZ = Y\nY = tmp\n\nprint(X, Y, Z)\n']
['Wrong Answer', 'Accepted']
['s603172330', 's017176346']
[2940.0, 2940.0]
[17.0, 17.0]
[90, 90]
p02717
u409306788
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#import clipboard\n\n\n#\tinput = clipboard.get()\n#else: \n\tinput = input()\n\narr = input.split()\n\nX, Y, Z = arr\nprint(Z, X, Y)\n\n\t', "import sys\nimport clipboard\n\nif sys.platform == 'ios':\n\tinput = clipboard.get()\nelse:\n\tinput = input()\n\narr = input.split()\n\nX, Y, Z = arr\nprint(Z, X, Y)\n\n\t", 'x, y, z = input().split()\nprint(z, x, y)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s043255766', 's395976501', 's851019230']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[161, 156, 41]
p02717
u412197640
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 *\na,b,c = map(int,input.split())\nprint(c, a, b)\n', 'from sys import *\na,b,c = map(int,input().split())\nprint(c, a, b)\n']
['Runtime Error', 'Accepted']
['s971069560', 's412224098']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 66]
p02717
u414137637
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 = map(int, input().split())\nprint(Z, X, Y)\n']
['Runtime Error', 'Accepted']
['s748105930', 's796347146']
[9012.0, 9076.0]
[21.0, 29.0]
[32, 51]
p02717
u419914612
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(c, b, a)', 'a = int(input())\nb = int(input())\nc = int(input())\nprint(c, a, b)', 'lst = list(map(int, input().split()))\nprint(lst[2], lst[0], lst[1])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s108684573', 's851173361', 's130875504']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[65, 65, 67]
p02717
u423520901
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 = input().split()\nfor i in range(len(l)-1, -1, -1):\n print(l[i], end = " ")', 'l = input().split()\nprint(l[1], l[2], l[0])', 'l = input().split()\nprint(l[2], l[0], l[1])']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s379600733', 's856759766', 's294233726']
[2940.0, 3060.0, 2940.0]
[17.0, 19.0, 17.0]
[78, 43, 43]
p02717
u425762225
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())\nl = []\n\nl[0] = z\nl[1] = x\nl[2] = y\n\nprint(l)\n', 'x,y,z = list(map(int,input().split()))\nl = []\n\nl[0] = z\nl[1] = x\nl[2] = y\n\nprint(l)\n', 'x,y,z = map(int,input().split())\nl = []\n\nl.append(z)\nl.append(x)\nl.append(y)\n\nprint(l)\n', 'x,y,z = map(int,input().split())\nl = []\n\nl.append(z)\nl.append(x)\nl.append(y)\n\nprint(*l)\n']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s095884002', 's110733097', 's161321568', 's191217868']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[78, 84, 87, 88]
p02717
u426677121
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().strip().split()))\n print(str(l[3]+ " " +l[1]+" "+l[2]))', 'a = list(map(int,input().strip().split()))\nprint (a[2],a[0],a[1])']
['Runtime Error', 'Accepted']
['s095001374', 's525861358']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 65]
p02717
u428199834
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())\na=[z,x,y]\nprint(' '.join(a))"]
['Runtime Error', 'Accepted']
['s281773254', 's020398738']
[9156.0, 8968.0]
[24.0, 20.0]
[51, 59]
p02717
u428532299
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#swapping a and b\ntemp = a\na = b\nb = temp\n\n#swapping a and c\ntemp = a\na = c\nc = temp\n\nprint(str(a)+"␣"+str(b)+"␣"+str(c))', 'numbers = input().split()\nnumbers = list(map(int, numbers))\na = numbers[0]\nb = numbers[1]\nc = numbers[2]\n\ntemp = a\na = b\nb = temp\n\ntemp = a\na = c\nc = temp\n\nprint(str(a) + " " + str(b) + " " + str(c))']
['Runtime Error', 'Accepted']
['s884805147', 's998165399']
[3060.0, 3060.0]
[17.0, 17.0]
[176, 199]
p02717
u432754124
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 collections import deque\n\nk = int(input())\nq = deque(range(1, 10))\n\nfor i in range(k-1):\n \n x = q.popleft()\n y = int(str(x)[-1])\n if y-1 >= 0:\n print(int(str(x)+str(y-1)))\n q.append(int(str(x)+str(y-1)))\n q.append(int(str(x)+str(x)[-1]))\n if y+1 < 10:\n q.append(int(str(x)+str(y+1)))\n\nprint(q[0])\n\n\n', 'a, b, c = list(map(int, input().split()))\nprint(c,a,b)']
['Runtime Error', 'Accepted']
['s243356111', 's386545961']
[9464.0, 9076.0]
[23.0, 20.0]
[363, 54]
p02717
u433371341
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
["in = input().split()\n\nprint('%s %s %s' % (in[2],in[0],in[1]))\n", "in = input()\n\nprint('%s %s %s' % (in[2],in[0],in[1]))", "x = input().split()\n\nprint('%s %s %s' % (x[2],x[0],x[1]))\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s222244003', 's943969767', 's837432110']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[62, 53, 58]
p02717
u435835715
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 = y\nc = x\n\nprint("%i %i %i" %(a,b,c))', 'x = int(input())\ny = int(input())\nz = int(input())\n\na = z\nb = x\nc = y\n\nprint(str(a)+" "+str(b)+" "+str(c))', 'x = int(input())\ny = int(input())\nz = int(input())\n\na = z\nb = y\nc = x\n\nprint("%i %i %i" %(a,b,c))\n\n', 'x,y,z = input().split()\n\na = z\nb = x\nc = y\n\nprint(str(a)+" "+str(b)+" "+str(c))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s652005802', 's658744565', 's797577045', 's241861340']
[3060.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 17.0]
[97, 106, 99, 79]
p02717
u437351386
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(" ")))\nn=a[0]\nm=a[1]\ntouhyou=list(map(int,input().split(" ")))\ns=flaot(sum(touhyou)/4/m)\nlist=[]\nfor i in touhyou:\n if i>=s:\n list.append(i)\nif len(list)>=m:\n print("Yes")\nelse:\n print("No" )', 'a=list(input().split(" "))\nprint(a[2]+" "+a[0]+" "+a[1] )\n']
['Runtime Error', 'Accepted']
['s014381135', 's741220962']
[3064.0, 2940.0]
[17.0, 18.0]
[226, 58]
p02717
u437727817
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 fractions import gcd\nn,k = map(int,input().split())\n\ndef process(a,b):\n\tflag = True\n\twhile flag:\n\t\ta,b = max(a,b),min(a,b)\n\t\ta = a%b\n\t\tif a == 0:\n\t\t\tflag = False\n\n\tfor i in range(1000):\n\t\ta = min(a,abs(a-b))\n\treturn a\nif n == 0:\n\tprint(0)\nelif k == 1 or n == 1:\n\tprint(0)\nelse:\n\tprint(process(n,k))\n\n\n', 'x,y,z = map(int,input().split())\n\nx,y = y,z\nx,z = z,x\nprint(x,y,z)\n', 'x,y,z = map(int,input().split())\n\na,b = b,a\na,c = c,a\nprint(a,b,c)', 'x,y,z = map(int,input().split())\n\nx,y = y,x\nx,z = z,x\nprint(x,y,z)\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s195420629', 's403744011', 's849645409', 's997945776']
[5048.0, 2940.0, 2940.0, 2940.0]
[37.0, 17.0, 17.0, 17.0]
[306, 67, 66, 67]
p02717
u439063038
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()))\nx, y = y, x\nx, z = z, x\nprint(x, y, z)', 'x, y, z = list(map(int, input().split()))\nx, y = y, x\nx, z = z, x\nprint(x, y, z)']
['Runtime Error', 'Accepted']
['s027900877', 's434355485']
[9152.0, 9140.0]
[26.0, 30.0]
[72, 80]
p02717
u440113208
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']
['s711210251', 's632175593']
[2940.0, 2940.0]
[17.0, 17.0]
[60, 62]
p02717
u440864397
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(" ")]\ntemp=B\nB=A\nA=C\nC=temp\nprint(A , B , c)\n', 'A,B,C=[int(x) for x in input().split(" ")]\nA,B=B,A\nA,C=C,A\nprint(A , B , C)\n']
['Runtime Error', 'Accepted']
['s457307627', 's854719870']
[3060.0, 2940.0]
[18.0, 17.0]
[82, 76]
p02717
u443854804
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()))\nmod=1/(4*m)\nch=sum(a)*mod\nr=0\nfor i in range(n):\n if a[i]>=ch:\n r+=1\n if r==m:\n print('Yes')\n break\nelse:\n print('No')\n ", "n,m=map(int,input().split())\na=list(map(int,input().split()))\nmod=1/(4*m)\nch=sum(a)*mod\nr=0\nfor i in range(n):\n if a[i]>=ch:\n r+=1\n if r==m:\n print('Yes')\n break\nelse:\n print('No')\n \n", 'X,Y,Z= int(input())\nprint(Z,X,Y)', "a,b,c=map(int,input().split())\nprint(c,a,b,sep=' ')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s836107670', 's922002198', 's939958089', 's000230621']
[3060.0, 3060.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[197, 198, 32, 51]
p02717
u444722572
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())\n\n\nA=list(map(int,input().split()))\nSum=sum(A)\npop=[]\nl=Sum/(4*M)\nfor i in range(N):\n if(A[i]>l):\n pop.append(A[i])\n \nprint("Yes" if len(pop)=M else "No")', 'A,B,C=map(int,input().split())\nprint(C,A,B)']
['Runtime Error', 'Accepted']
['s265254372', 's638878797']
[2940.0, 2940.0]
[17.0, 18.0]
[199, 43]
p02717
u449473917
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())\n\nprint(a[1])', 'l=list(map(int,input().split()))\n#[a,b,c]==>[c,a,b]\na=l[0]\nb=l[1]\nc=l[2]\n\nl[0]=c\nl[1]=a\nl[2]=b\n\nprint(*l)']
['Runtime Error', 'Accepted']
['s648741811', 's490863841']
[2940.0, 3060.0]
[17.0, 17.0]
[27, 105]
p02717
u452157159
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)\n']
['Wrong Answer', 'Accepted']
['s334681400', 's983887432']
[9144.0, 9104.0]
[25.0, 26.0]
[50, 51]
p02717
u453306058
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())\nx,y = y,x\nx,z = z,x\nprint("{} {} {}",x,y,z)', 'x,y,z = map(int,input().split())\nx,y = y,x\nx,z = z,x\nprint("{} {} {}".format(x,y,z))']
['Wrong Answer', 'Accepted']
['s696952743', 's134707907']
[2940.0, 2940.0]
[17.0, 18.0]
[77, 84]
p02717
u455957433
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 N = [int(_) for _ in input().split()]\n tmpA = N[0]\n tmpB = N[0]\n tmpC = N[0]\n print(N[2], N[1], N[0]) \n\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n N = [int(_) for _ in input().split()]\n A = N[0]\n B = N[1]\n C = N[2]\n\n tmp = B\n B = A\n A = tmp\n\n tmp = C\n C = A\n A = tmp\n\n print(A, B ,C)\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Accepted']
['s369497870', 's472457076']
[2940.0, 3060.0]
[17.0, 17.0]
[172, 222]
p02717
u459689470
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 = [0]*3\nfor i in range(len(n)):\n n[i] = input()\n\ntmp = n[0]\nn[0] = n[1]\nn[1] = tmp\n\ntmp = n[0]\nn[0] = n[2]\nn[2] = tmp\n\nfor i in range(len(n)):\n print(n[i])\n', 'a = int(input())\nb = int(input())\nc = int(input())\n\na,b = b,a\na,c = c,a\n\nprint(a, b, c)', 'n = [0]*3\nfor i in range(len(n)):\n while n[i]<1 or 100<n[i]:\n n[i] = int(input())\n\nn[0], n[1] = n[1], n[0]\nn[0], n[2] = n[2], n[0]\n\nprint(n[0], n[1], n[2])', 'n = [0]*3\nfor i in range(len(n)):\n n[i] = input()\n\nn[0], n[1] = n[1], n[0]\nn[0], n[2] = n[2], n[0]\n\nprint(n[0], n[1], n[2])', 'a = input()\nb = input()\nc = input()\n\na, b = b, a\na, c = c, a\n\nprint(a, b, c)\n', 'n = [0,0,0]\nfor i in range(len(n)):\n n[i] = input()\n \ntmp = n[0]\nn[0] = n[1]\nn[1] = tmp\n\ntmp = n[0]\nn[0] = n[2]\nn[2] = tmp\n\nfor i in range(len(n)):\n print(n[i])', 'n = [0]*3\nfor i in range(len(n)):\n while n[i]<1 or 100<n[i]:\n n[i] = int(input())\n\nn[0], n[1] = n[1], n[0]\nn[0], n[2] = n[2], n[0]\n\nprint(n[0], n[1], n[2])', 'a = input()\nb = input()\nc = input()\n\ntmp = a\na = b\nb = tmp\n\ntmp = a\na = c\nc = tmp\n\nprint(a, b, c)\n', 'n = [0,0,0]\n \ntmp = n[0]\nn[0] = n[1]\nn[1] = tmp\n\ntmp = n[0]\nn[0] = n[2]\nn[2] = tmp\n\nfor i in range(len(n)):\n print(n[i])\n', "m,n = (int(x) for x in input().split())\nlist = (input().split())\nfor i in range(len(list)):\n list[i] = int(list[i])\n \nla = sorted(list, reverse=True)\n\nsum = 0\nfor i in range(len(list)):\n sum += int(list[i])\nif int(la[n-1])<sum/(4*m):\n print('No')\nelse:\n print('Yes')", 'n = [0,0,0]\nfor i in range(len(n)):\n n[i] = input()\n \ntmp = n[0]\nn[0] = n[1]\nn[1] = tmp\n\ntmp = n[0]\nn[0] = n[2]\nn[2] = tmp\n\nfor i in range(len(n)):\n print(n[i])', 'a,b,c=(int(x) for x in input().split())\n\na,b = b,a\na,c = c,a\n\nprint(a, b, c)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s058681653', 's212225670', 's229169518', 's233396369', 's268219715', 's270297932', 's362120544', 's420902929', 's442901934', 's480000377', 's874224012', 's261276004']
[3060.0, 2940.0, 3064.0, 3060.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 3064.0, 3060.0, 3064.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 18.0, 19.0, 17.0]
[160, 87, 159, 124, 77, 163, 159, 98, 123, 271, 163, 76]
p02717
u459798349
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=[i for i in input().split()]\nprint(L[1],L[2],L[0])', 'L=[i for i in input().split()]\nprint(L[2],L[0],L[1])']
['Wrong Answer', 'Accepted']
['s850964320', 's677286477']
[2940.0, 2940.0]
[17.0, 18.0]
[52, 52]
p02717
u460375306
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']
['s622645275', 's028143877']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 50]
p02717
u462976050
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
['41 59 31', 'X, Y, Z = map(int, input().split())\nprint(Z, X, Y)']
['Runtime Error', 'Accepted']
['s222511572', 's118747675']
[2940.0, 2940.0]
[17.0, 18.0]
[8, 50]
p02717
u463602788
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 = map(int, input().split())\nprint(x[2],x[0],x[1])\n', 'x = [int(x) for x in input().split()]\nprint(x[2],x[0],x[1])\n']
['Runtime Error', 'Accepted']
['s861414496', 's183365386']
[8888.0, 9168.0]
[22.0, 28.0]
[52, 60]
p02717
u469936642
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()\nk = int(input())\nn, m, h = map(int, input().split())\n\n\n\nprint(h, n, m)', 'n, m, h = map(int, input().split())\n\nprint(h, n, m)']
['Runtime Error', 'Accepted']
['s760668116', 's318812984']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 51]
p02717
u470392120
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:\n print(n)\nelif n==k:\n print('0')\nelse:\n a=n-k*(n//k)\n print(min(a,abs(a-k)))", "x,y,z=map(int,input().split())\n\np=x\nx=y\ny=p\n\np=x\nx=z\nz=p\n\nprint('%s %s %s' %(x,y,z))"]
['Runtime Error', 'Accepted']
['s195422442', 's894695470']
[9056.0, 9124.0]
[23.0, 23.0]
[125, 84]
p02717
u470735879
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(y, z, x)\n', 'x, y, z = map(int, input().split())\nprint(z, x, y)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s072739201', 's317637068', 's127247303']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[51, 51, 51]
p02717
u471196901
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(c,b,a)', 'a,b,c=input().split()\nprint(c,a,b)']
['Wrong Answer', 'Accepted']
['s177362875', 's402740642']
[2940.0, 2940.0]
[17.0, 17.0]
[34, 34]
p02717
u471539833
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(str(Y)+" "+str(Z)+" "+str(X))', 'X,Y,Z=map(int,input().split())\nprint(str(Z)+" "+str(X)+" "+str(Y))']
['Wrong Answer', 'Accepted']
['s322509221', 's641863608']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 66]
p02717
u472696272
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,C = C,A\n\nprint(A,B,C)', 'N,K = map(int, input().split())\n\nmin = 10**18+1\nflag = True\n\nwhile flag==True:\n N = abs(N-K)\n if N < min: min = N\n else: flag = False\n \nreturn min\n', 'n,k = map(int, input().split())\n\nprint(min(n%k, abs(n%k-k)))\n', 'a,b,c = map(int,input().split())\na,c = c,a\nb,c = c,b\nprint(a,b,c)\n\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s130226116', 's245073602', 's608789141', 's410642710']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[58, 153, 61, 67]
p02717
u475189661
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,end=' ')\nprint(y,end=' ')\nprint(x)", "x,y,z = map(int,input().split())\nprint(y,end=' ')\nprint(x,end=' ')\nprint(z)", "x,y,z = map(int,input().split())\nprint(z,y,x,end=' ')", "x,y,z = map(int,input().split())\nprint(z,end=' ')\nprint(x,end=' ')\nprint(y)"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s541675916', 's949624473', 's979636034', 's646379526']
[9044.0, 9044.0, 9084.0, 9028.0]
[26.0, 25.0, 25.0, 25.0]
[75, 75, 53, 75]
p02717
u476225888
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=mdata()\nprint(c,a,b)', "from bisect import bisect_left as bl, bisect_right as br, insort\nimport sys\nimport heapq\nfrom math import *\nfrom collections import defaultdict as dd, deque\ndef data(): return sys.stdin.readline().strip()\ndef mdata(): return map(int, data().split())\n#def print(x): return sys.stdout.write(str(x)+'\\n')\n\nmod=int(1e9+7)\n\na,b,c=mdata()\nprint(c,a,b)"]
['Runtime Error', 'Accepted']
['s533158994', 's463054905']
[2940.0, 3444.0]
[17.0, 93.0]
[26, 375]
p02717
u477319617
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())\ndef sa(x):\n if x < 0:\n return abs(x)\n return abs(sa(x-k)-k)\nprint(sa(n))', 'x,y,z = map(str, input().split())\nprint( z + " " + x + " " + y)']
['Runtime Error', 'Accepted']
['s343209239', 's222183974']
[9056.0, 8908.0]
[18.0, 22.0]
[117, 63]
p02717
u478132434
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(a, b, c)', 'x = int(input())\ny = int(input())\nz = int(input())\n\nprint(z, x, y)', 'x, y, z = map(int, input().split())\n\nprint(z, x, y)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s465334761', 's797043435', 's282506413']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[85, 66, 51]
p02717
u478646901
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 n, k, c = map(int, input().split())\n ss = list(input())\n \n wd = [i for i, e in enumerate(ss) if e == 'o']\n wd_flg = [True for _ in wd]\n \n used = [0]\n cur = wd[0]\n if k != 1:\n for i, e in enumerate(wd):\n if e > cur + c:\n used.append(i)\n cur = e\n if len(used) == k:\n break\n \n used_rev = [len(wd)-1]\n cur = wd[-1]\n if k != 1: \n for i, e in enumerate(wd[::-1]):\n if e < cur - c:\n used_rev.append(len(wd) - 1 - i)\n cur = e\n if len(used_rev) == k:\n break\n \n for i in used:\n if i not in used_rev:\n continue\n if used.index(i) + used_rev.index(i) >= k:\n continue\n else:\n print(wd[i]+1)\n \nif __name__ == '__main__':\n main()", 'a, b, c = input().split()\nprint(c, a, b)']
['Runtime Error', 'Accepted']
['s584180971', 's094459749']
[3064.0, 2940.0]
[18.0, 17.0]
[753, 40]
p02717
u479484272
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)\nA2 = sorted(A,reverse=True)\nJudge = 0\nfor i in range(N):\n if(A2[i]>(sum/(4*M))):\n Judge = Judge+1\nif Judge>=M:\n print("Yes")\nelse:\n print("No")', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\nsum = sum(A)\nA2 = sorted(A,reverse=True)\nJudge = 0\nfor i in range(N):\n if(A2[i]>(sum/(4*M))):\n Judge = Judge+1\nif Judge<M:\n print("No")\nelse:\n print("Yes")', 'X,Y,Z=input().split()\nprint(Z,X,Y)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s061324999', 's117408737', 's330373187']
[3064.0, 3064.0, 2940.0]
[19.0, 17.0, 17.0]
[241, 240, 34]
p02717
u481550011
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())\nprint(str(Z)+" "+str(X)+" " + str(Y))']
['Runtime Error', 'Accepted']
['s676995635', 's971900168']
[2940.0, 2940.0]
[18.0, 17.0]
[66, 68]
p02717
u482522932
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(),input(),input()]\nprint(s[2], s[0], s[1])', 's = input()\nt = input()\nu = inpuy()\nprint(t, u, s)', 's = input()\nt = input()\nu = input()\nprint(u, s, t)', 's = [input()]\nprint(s[2], s[0], s[1])', 's = input()\nt = input()\nu = input()\nprint(t u s)', 'a,b,c=map(int,input().split())\nprint(c, a, b)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s271442591', 's323327308', 's494203274', 's747296247', 's884166821', 's536110086']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 17.0, 17.0, 17.0]
[53, 50, 50, 37, 48, 45]
p02717
u483884608
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=Y\nb=X\nc=Z\nA=c\nB=b\nC=a\nprint(A" "B" "C)', 'print(int(input()) int(input()) int(input()))', 'a=Y\nb=X\nc=Z\nA=c\nB=b\nC=a\nprint(A B C)', 'print(int(input(Z)) int(input(X)) int(input(Y)))', 'X,Y,Z=input().split()\nprint(Z,X,Y)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s279159445', 's386750533', 's707079201', 's877807475', 's110805227']
[2940.0, 2940.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 27.0, 17.0, 17.0]
[40, 45, 36, 48, 34]
p02717
u484052148
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 = [i for i in input().split()]\nprint(a[2], a[1], a[0])', 'a = [i for i in input().split()]\nprint(a[2], a[0], a[1])']
['Wrong Answer', 'Accepted']
['s728291662', 's742821264']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 56]
p02717
u485716382
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 A, B, C = map(int, input().split(' '))\n A, B = B, A\n A, C = C, A\n pritn(A, B, C)\n \n \nmain()", "def main():\n A, B, C = map(int, input().split(' '))\n A, B = B, A\n A, C = C, A\n print(A, B, C)\n \n \nmain()"]
['Runtime Error', 'Accepted']
['s667519534', 's157564402']
[2940.0, 2940.0]
[17.0, 17.0]
[122, 122]
p02717
u486074261
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\nimport fractions\n\nn, m = [int(x) for x in stdin.readline().rstrip().split()]\na_list = [int(x) for x in stdin.readline().rstrip().split()]\n\npick = [ x for x in a_list if x >= sum(a_list) * fractions.Fraction(1, 4 * m )]\n\nprint("Yes" if len(pick) > m else "No")', "from sys import stdin\n\na, b, c = [int(x) for x in stdin.readline().rstrip().split()]\n\nprint('{} {} {}'.format(c, a, b))"]
['Runtime Error', 'Accepted']
['s675446435', 's433570082']
[5244.0, 2940.0]
[39.0, 17.0]
[281, 119]
p02717
u486209657
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=X,Y,Z=map(int,input().split())\n\nA = Y\nB = X\nA = Z\nC = X\n\nprint(str(A)+' '+str(B)+' '+str(C))", "X,Y,Z=map(int,input().split())\nA,B,C=X,Y,Z\n \nA = Y\nB = X\nA = Z\nC = Y\n \nprint(str(A)+' '+str(B)+' '+str(C))"]
['Runtime Error', 'Accepted']
['s568542485', 's939051572']
[9144.0, 9044.0]
[22.0, 25.0]
[98, 106]
p02717
u489153633
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()))\nl=[a[0]]\nif a[0]==1 or a[1]==1:\n print(0)\n exit()\ndef d(a,b):\n if a<b:\n if min(l)!=b-a:\n l.append(b-a)\n d(b-a,a)\n else:\n print(b-a)\n exit()\n elif b<a:\n if min(l)!=a-b:\n l.append(a-b)\n d(a-b,b)\n else:\n print(a-b)\n exit()\n else:\n print(0)\n exit()\nd(a[0],a[1])', 'l=input().split()\nprint(l[2],l[0],l[1])']
['Wrong Answer', 'Accepted']
['s903704146', 's463686772']
[3064.0, 3064.0]
[18.0, 17.0]
[436, 39]
p02717
u496184631
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()))\nn=a[0]\na[0]=a[2]\na[2]=a[1]\na[1]=n\nfor i in range (len(a)):\n print a[i],\n', 'a=list(map(int,input().split()))\nn=a[0]\na[0]=a[1]\na[1]=a[2]\na[2]=n\nprint (f"{a[0]} {a[1]} {a[2]}")', 'a=list(map(int,input().split()))\nn=a[1]\na[1]=a[0]\na[0]=a[2]\na[2]=n\nprint (a)', 'X,Y,Z = int(input().split())\nn = X\nX = Z\nZ = Y\nY = n\nprint(X, Y, Z)', '\nA = list(map(int,input().split()))\nn = A[0]\nA[0] = A[2]\nA[2] = A[1]\nA[1] = n\nprint(A[0], A[1], A[2])']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s089416102', 's395406677', 's886229047', 's937637376', 's629211583']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[107, 98, 76, 67, 101]
p02717
u497952650
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']
['s329426394', 's534294815']
[2940.0, 2940.0]
[17.0, 18.0]
[45, 45]
p02717
u500276166
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 = intpu().split()\nprint(c, a, b)', 'a, b, c = input().split()\nprint(c, a, b)']
['Runtime Error', 'Accepted']
['s298400183', 's678495427']
[2940.0, 2940.0]
[17.0, 17.0]
[40, 40]
p02717
u500376440
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)\n', 'X,Y,Z=input().split()\nprint(Z,X,Y)\n']
['Wrong Answer', 'Accepted']
['s562003129', 's674026385']
[9036.0, 9024.0]
[23.0, 19.0]
[35, 35]
p02717
u502841298
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())\nD = []\n\ndef FindOtvet(i, j, otv):\n if i == 0:\n return ''\n if j == 0:\n if (otv + D[i - 1][j]) < n:\n otv += D[i - 1][j]\n return str(j + 1) + FindOtvet(i - 1, j + 1, otv)\n else:\n return str(j) + FindOtvet(i - 1, j, otv)\n elif j == 9:\n if (otv + D[i - 1][j - 1]) < n:\n otv += D[i - 1][j - 1]\n return str(j) + FindOtvet(i - 1, j, otv)\n else:\n return str(j - 1) + FindOtvet(i - 1, j - 1, otv)\n else:\n if (otv + D[i - 1][j - 1]) < n:\n otv += D[i - 1][j - 1]\n if (otv + D[i - 1][j]) < n:\n otv += D[i - 1][j]\n return str(j + 1) + FindOtvet(i - 1, j + 1, otv)\n else:\n return str(j) + FindOtvet(i - 1, j, otv)\n else:\n return str(j - 1) + FindOtvet(i - 1, j - 1, otv)\n\narr = []\nfor i in range(10):\n arr.append(1)\nD.append(arr)\ntotalSum = 9\ni = 1\nrespI = 0\nrespJ = 0\nwhile respI == 0 and respJ == 0:\n arr = []\n for j in range(10):\n if j == 0:\n arr.append(D[i - 1][j] + D[i - 1][j + 1])\n elif j < 9:\n arr.append(D[i - 1][j - 1] + D[i - 1][j] + D[i - 1][j + 1])\n else:\n arr.append(D[i - 1][j - 1] + D[i - 1][j])\n if j > 0:\n if (totalSum + arr[j]) >= n:\n respI = i\n respJ = j\n break\n totalSum += arr[j]\n D.append(arr)\n i += 1\nrespStr = str(respJ)\nprint(respStr + FindOtvet(respI, respJ, totalSum))\n", 'a, b, c = map(int, input().split())\n\nab = a\na = b\nb = ab\n\nab = c\nc = a\na = ab\n\nprint(a, b, c)']
['Runtime Error', 'Accepted']
['s116135157', 's519919172']
[3192.0, 2940.0]
[18.0, 17.0]
[1558, 93]
p02717
u505843680
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(X,Y,Z)', 'x, y, z = map(int, input().split())\nprint("{0} {1} {2}".format(z, x, y))']
['Wrong Answer', 'Accepted']
['s888992530', 's432657973']
[9088.0, 9100.0]
[21.0, 23.0]
[46, 72]
p02717
u509405951
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\n \nN = int(input())\n \ncnt = 0\n \nif N == 2:\n print(1)\n exit()\n \ndef make_divisors(n):\n divisors = []\n for i in range(1, int(n**0.5)+1):\n if n % i == 0:\n divisors.append(i)\n if i != n // i:\n divisors.append(n//i)\n \n \n return divisors\nres1 = sorted(make_divisors(N))\nres1 = res1[1:math.ceil(len(res1)/2)]\n \nfor num in res1:\n kensa = N\n while True:\n if kensa % num == 0:\n kensa = kensa // num\n continue\n break\n if kensa % num == 1:\n cnt += 1\n \nres2 = sorted(make_divisors(N-1))\ncnt += len(res2[1:])+1\n \nprint(cnt)', 'X, Y, Z = map(int, input().split())\n\nprint(Z, X, Y)']
['Runtime Error', 'Accepted']
['s444106070', 's936170041']
[3064.0, 2940.0]
[17.0, 17.0]
[617, 51]
p02717
u509641826
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 = input().split()\nb = []\nb.append(a[1]) # B\nb.append(a[0]) # A\nb.append(a[2]) # C\nc = []\nc.append(b[2]) # C\nc.append(b[1])\nc.append(b[0]) # A\nprint(" ".join(c))']
['Wrong Answer', 'Accepted']
['s000110777', 's432189805']
[2940.0, 3060.0]
[17.0, 17.0]
[50, 162]
p02717
u513929200
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())\nT = X\nX = Y\nY = T\nprint(X,Y,Z)\nT1 = X\nX = Z\nZ = T1\nprint(X,Y,Z)', 'A = int(input())\nB = int(input())\nC = int(input())\nif A<B and B <C:\n T = A\n A = B\n B = T\n\tprint(A,B,C)\nelse:\n T1 = A\n A = C\n C = T1\n print(A,B,C)', 'A = int(input())\nB = int(input())\nC = int(input())\nif A<B and B <C:\n T = A\n A = B\n B = T\n print(A,B,C)\nelse:\n T1 = A\n A = C\n C = T1\n print(A,B,C)', 'A = int(input())\nB = int(input())\nC = int(input())\nif A<B and B <C:\n T = A\n A = B\n B = T\n print(A,B,C)\nelse:\n T1 = A\n A = C\n C = T1\n print(A,B,C)', 'A = int(input())\nB = int(input())\nC = int(input())\nT = A\nA = B\nB = T\nprint(A,B,C)\nT1 = A\nA = C\nC = T1\nprint(A,B,C)', 'a,b,c = map(int, input().split())\nprint(c,a,b)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s264385013', 's394063980', 's602365426', 's779732812', 's943390282', 's497685623']
[3060.0, 3064.0, 3060.0, 3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 18.0]
[114, 166, 169, 169, 114, 46]
p02717
u514206029
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
['\nls = list(map(int,input().split()))\n\ntemp = ls[0]\nls[0] = ls[1]\nls[1] = temp\n\ntemp = ls[0]\nls[0] = ls[2]\nls[2] = temp\n\nprint(ls)\n', "\nls = list(map(int,input().split()))\n\ntemp = ls[0]\nls[0] = ls[1]\nls[1] = temp\n\ntemp = ls[0]\nls[0] = ls[2]\nls[2] = temp\n\nprint(' '.join(map(str, ls)))\n"]
['Wrong Answer', 'Accepted']
['s120977180', 's630155262']
[2940.0, 3060.0]
[17.0, 17.0]
[130, 150]
p02717
u515916750
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()\nshe = 0\nshe = X\nX = Y\nY = she\nshe = Z\nZ = X\nX = she\nprint X, Y, Z', 'X, Y, Z = input()\nprint(Z, X, Y)', "N, M = input().split(' ')\nlis1 = input().split(' ')\nS = sum(lis1)\nthresh = S / (4 * M)\nlis2 = sorted(lis1)\nif lis2[M - 1] < thresh:\n print 'No'\nelse:\n print 'Yes'", "X, Y, Z = input().split(' ')\nprint(Z, X, Y)"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s137333807', 's251734612', 's454436674', 's533353933', 's102187538']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[29, 81, 32, 164, 43]
p02717
u516494592
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().slice()))\n\nprint(C,A,B)', 'A,B,C = map(int(input().slice()))\n\nprint(C,A,B)', 'A,B,C = map(int, input().split())\n\nprint(C,A,B)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s429803200', 's559283110', 's013480974']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[47, 47, 47]
p02717
u517099533
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(z, x, y)', 'x, y, z = list(map(int, input().split()))\nprint(z, x, y)']
['Runtime Error', 'Accepted']
['s440984744', 's117349207']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 56]
p02717
u518711529
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[0], a[1] = a[1], a[0]\na[0], a[2] = a[2], a[0]\n \nprint(a)', 'a = list(map(int,input().split()))\na[0], a[1] = a[1], a[0]\na[0], a[2] = a[2], a[0]\n \nprint(a[0]+" "+a[1]+" "+a[2])', 'a = list(map(int,input().split()))\na[0], a[1] = a[1], a[0]\na[0], a[2] = a[2], a[0]\n\nprint(a)', 'l = input().split()\n\nl[0], l[1] = l[1], 1[0]\nl[0], l[2] = l[2], 1[0]\n\nprint(l)', 'n = int(input())\nnum_list = [list(map(int, input().split())) for i in range(n)]\n\nnum_list[1].sort(reverse=True)\nv = 1 / (4 * num_list[0][1]) * sum(num_list[1])\n\nc = 1\n\nfor i in range(num_list[0][1]):\n if num_list[1][i] < v:\n c = 0\n \nif c==1:\n print("Yes")\nelse:\n print("No")', 'l = input().split()\n \nl[0], l[1] = l[1], 1[0]\nl[0], l[2] = l[2], 1[0]\n \nprint(l[0]+" "+l[1]+" "+l[2])', 'from sys import stdin\n\na = stdin.readline().rstrip()\nl = list(map(int, a.split()))\n\nl[0], l[1] = l[1], 1[0]\nl[0], l[2] = l[2], 1[0]\n\nprint(l)', 'a = list(map(int,input().split()))\na[0], a[1] = a[1], a[0]\na[0], a[2] = a[2], a[0]\n \nprint(a[0], a[1], a[2])']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s162036895', 's230859334', 's289184734', 's303761278', 's442676565', 's784736356', 's861393749', 's681976682']
[2940.0, 3060.0, 2940.0, 2940.0, 3064.0, 3060.0, 2940.0, 3060.0]
[17.0, 18.0, 18.0, 17.0, 18.0, 17.0, 18.0, 17.0]
[93, 114, 92, 78, 283, 101, 141, 108]
p02717
u518929058
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(str, input().split(' ')))\nprint(z + '' + x + '' + y)", "x, y, z = list(map(str, input().split(' ')))\nprint(z + ' ' + x + ' ' + y)"]
['Wrong Answer', 'Accepted']
['s996921802', 's632336893']
[8968.0, 8988.0]
[26.0, 25.0]
[71, 73]
p02717
u519721530
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\nA, B, C = map(int,input().split())\nprint(C, B, A)', '# A\nA, B, C = map(int,input().split())\nprint(C+" "+B+" "+A)', '# A\nA, B, C = map(int,input().split())\nprint(C, A, B)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s096309422', 's970169292', 's271722090']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[53, 59, 53]
p02717
u520331522
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())\naa = b\nbb = a\ncc = aa\naaa = c\nprint(aaa, bb, cc)', 'a,b,c = int(input().split())\na,b,c = c,a,b\nprint(a,b,c)', 'a,b,c = map(int, input().split())\na,b,c = c,a,b\nprint(a,b,c)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s050856071', 's229404088', 's102508419']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[77, 55, 60]
p02717
u520843951
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\ntmp = z\ny = x\nz = y\nx = tmp\n\nprint(x, y, z)\n', 'x, y, z = map(int, input().split())\n\ntmp = x\nx = z\nz = y\ny = tmp\n\nprint(x, y, z)']
['Wrong Answer', 'Accepted']
['s404726788', 's212436858']
[2940.0, 2940.0]
[18.0, 18.0]
[81, 80]
p02717
u524534026
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 copy\nabc = list(map(int, input().split()))\nABC = copy.copy(abc)\nABC[0] = abc[2]\nABC[1] = abc[0]\nABC[2] = abc[1]\nprint(ABC)\n', 'x, y, z = map(int,input().split())\nprint(z,x,y)']
['Wrong Answer', 'Accepted']
['s642974493', 's172278391']
[3444.0, 2940.0]
[22.0, 17.0]
[130, 47]
p02717
u525882286
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 = input()\ny = input()\nz = input()\ntemp = y\ny = x\nx = z\nz = temp\nprint(x,y,z)', 'x,y,z = map(int, input().split())\ntemp = y\ny = x\nx = z\nz = temp\nprint(x,y,z)']
['Runtime Error', 'Accepted']
['s907052807', 's020785536']
[2940.0, 2940.0]
[17.0, 17.0]
[78, 76]