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
u526780498
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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,c=[int(x) for x in input().split()]\ns=list(input())\n\nL=[]\nR=[]\n\ni=0\nwhile i < n: \n if s[i]=="o":\n L.append(i)\n i+=c\n i+=1\n\ni=0\nwhile i < n:\n if s[n-i-1]=="o":\n R.append(n-i-1)\n i+=c\n i+=1\n\ndays=[]\nfor i in range(k):\n if L[i]==R[i]:\n days.append(L[i])\n\n\nfor i in range(len(days)):\n print(days[i]+1)', 'n,k,c=[int(x) for x in input().split()]\ns=list(input())\n\nL=[]\nR=[]\n\ni=0\nwhile i < n: \n if s[i]=="o":\n L.append(i)\n i+=2\n i+=1\n\ni=0\nwhile i < n:\n if s[n-i-1]=="o":\n R.append(n-i-1)\n i+=2\n i+=1\n\ndays=[]\nfor i in range(k):\n if L[i]==R[i]:\n days.append(L[i])\n\n\nfor i in range(len(days)):\n print(days[i]+1)', 'X,Y,Z=[int(x) for x in input().split()]\n(X,Y)=(Y,X)\n(X,Z)=(Z,X)\nprint(X,Y,Z)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s132347263', 's517870256', 's046872060']
[3064.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[355, 355, 76]
p02717
u526803885
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 swapper(X,Y,Z):\n X, Y, Z = Z, X, Y\n return X,Y,Z', 'def swapper(X,Y,Z):\n X=int(X)\n Y=int(Y)\n Z=int(Z)\n b=X\n X=Z\n Z=b\n c=Z\n Z=Y\n Y=c\n return X, Y, Z', 'X=int(input())\nY=int(input())\nZ=int(input())\nX ^= Z\nZ ^= X\nX ^= Z\n\nY ^= Z\nZ ^= Y\nY ^= Z\nprint(X,Y,Z)\n ', 'def swapper(X,Y,Z):\n X=int(X)\n Y=int(Y)\n Z=int(Z)\n b=X\n X=Z\n Z=b\n return X, Y, Z', 'X=int(input())\nY=int(input())\nZ=int(input())\nX, Y, Z = Z, X, Y\nprint(X,Y,Z)', 'X=int(input())\nY=int(input())\nZ=int(input())\nb=X\nX=Z\nZ=b\nc=Z\nZ=Y\nY=c\nprint(X,Y,Z)', 'A,B,C=map(int,input().split())\nprint(C,A,B)']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s038014769', 's436586847', 's488918517', 's561257517', 's698573170', 's805372464', 's288599470']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[62, 145, 107, 115, 75, 81, 43]
p02717
u527616458
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['a = list(map(int, input().split()))\nprint("{0} {1} {2}".format(a[2], a[0], [1]))', 'a = list(map(int, input().split()))\nprint("{0} {1} {2}".format(a[2], a[0], a[1]))']
['Wrong Answer', 'Accepted']
['s498709544', 's590829824']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 81]
p02717
u529106146
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)', 'X, Y, Z = map(int, input().split())\nprint(Z,X,Y)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s070535800', 's411795099', 's058636544']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[49, 49, 48]
p02717
u530100465
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['i = input().split()\n\nn = int(i[0])\nm = int(i[1])\na = [int(i2) for i2 in i[2::]]\nm2 = sum(a) // (4 * m)\nc = sum([1 if i >= m2 else 0 for i in a])\n\nif c>=m:\n print("Yes")\nelse:\n print("No")', 'print("Yes")', 'i = input().split()\n\nn = int(i[0])\nm = int(i[1])\na = [int(i2) for i2 in i[2::]]\nm2 = sum(a) // (4 * m)\nc = sum([1 if i3 >= m2 else 0 for i3 in a])\nprint("Yes" if c >= m else "No", end=\'\')', 'i = [int(x) for x in input().split()]\nn = i[0]\nk = i[1]\n\nif n % k == 0:\n print(0)\n exit()\n\nn = n % k\nif k % n != 0:\n n = k - n\nprint(n)', 'i = input().split()\nx = int(i[0])\ny = int(i[1])\nz = int(i[2])\n\nprint("%d %d %d" % (z, x, y))']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s160595935', 's458629764', 's515358372', 's570972344', 's261947101']
[3064.0, 2940.0, 3060.0, 2940.0, 2940.0]
[20.0, 18.0, 17.0, 17.0, 17.0]
[193, 12, 187, 144, 92]
p02717
u530606147
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\n\nif '7' in str(n):\n print('Yes')\nelse:\n print('NO')\n", 'x,y,z=list(map(int,input().split()))\n\nx,y=y,x\nx,z=z,x\n\nprint(x,y,z)']
['Runtime Error', 'Accepted']
['s068211164', 's780562936']
[2940.0, 9092.0]
[17.0, 29.0]
[71, 67]
p02717
u531220228
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nif K < 10:\n print(K)\nelse:\n count = 9\n\nqueue = [1,2,3,4,5,6,7,8,9]\n\nwhile count != K:\n for x in queue:\n if x%10 != 0:\n queue.append(10*x + (x%10) - 1)\n count += 1\n if count == K:\n break\n\n queue.append(10*x + (x%10))\n count += 1\n if count == K:\n break\n\n if x%10 != 9:\n queue.append(10*x + (x%10) + 1)\n count += 1\n if count == K:\n break\n\nprint(queue[-1])\n', 'from copy import copy\n\nA,B,C = map(int, input().split())\n\n# A <--> B\ntemp = copy(A)\nA = copy(B)\nB = copy(temp)\n\n# A <--> C\ntemp = copy(A)\nA = copy(C)\nC = copy(temp)\n\nprint("%d %d %d" %(A,B,C))\n']
['Runtime Error', 'Accepted']
['s188545751', 's688398227']
[3064.0, 3444.0]
[17.0, 22.0]
[438, 193]
p02717
u532031128
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s754382106', 's664280942']
[2940.0, 2940.0]
[18.0, 17.0]
[50, 50]
p02717
u533328562
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 \ndef swap(a,b):\n temp = a\n a = b\n b = tmp\n return (a,b)\n \nx,y = swap(x,y)\nx, z = swap(x, z)\nprint(x,y,z)', 'x,y,z = list(map(int,input().split()))\n \ndef swap(a,b):\n tmp = a\n a = b\n b = tmp\n return (a,b)\nx,y = swap(x,y)\nx,z = swap(x, z)\nprint(x,y,z)']
['Runtime Error', 'Accepted']
['s006030139', 's381336407']
[3060.0, 3060.0]
[18.0, 17.0]
[156, 152]
p02717
u536600145
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 popularity(votes, N, M):\n \n total_votes = sum(votes)\n coef = 1.0 / (4.0 * M)\n limit = coef * total_votes\n \n cnt = 0\n for vote in votes:\n if vote > limit:\n cnt += 1\n if cnt >= M:\n return "Yes"\n \n return "No"\n \nN, M = [int (x) for x in input().split()]\nvotes = [int (x) for x in input().split()]\nprint(popularity(votes, N, M))\n', "def swap(x,y,z):\n x, y = y, x\n x, z = z, x\n \n print('%d %d %d' % (x,y,z))\n \n (x, y, z) = input()\n swap(x,y,z)", 'def popularity(votes, N, M):\n \n total_votes = sum(votes)\n coef = 1.0 / (4.0 * M)\n limit = coef * total_votes\n \n cnt = 0\n for vote in votes:\n if vote > limit:\n cnt += 1\n \n if cnt >= M:\n \treturn "Yes"\n \n return "No"\n \nN, M = [int (x) for x in input().split()]\nvotes = [int (x) for x in input().split()]\nprint(popularity(votes, N, M))\n', "def swap(x,y,z):\n x, y = y, x\n x, z = z, x\n \n print('%d %d %d' % (x,y,z))\n \nval = list(input().split(' '))\nx, y, z = [ int(x) for x in val ]\nswap(x,y,z)"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s954130727', 's991954168', 's992998531', 's903686620']
[3060.0, 2940.0, 3060.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[393, 114, 387, 157]
p02717
u538537141
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nlist_A=input().split()\nfor i in range(len(list_A)):\n list_A[i]=int(list_A[i])\nA =int(sum(list_A)/(4*M))\nif M<len([i for i in list_A if i> A]):\n print("Yes")\nelse:\n print("No")', 'X,Y,Z=map(int,input().split())\nprint(Z,X,Y)']
['Runtime Error', 'Accepted']
['s108967338', 's113075775']
[3060.0, 2940.0]
[17.0, 17.0]
[213, 43]
p02717
u542190960
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nvote = list(map(int, input().split()))\n\nvote.sort(reverse=True)\npopular = vote[0:m]\nsum = sum(vote)\n\nyes = True\nprint('sum=', sum, sum/(4*m))\nprint('list=', popular)\n\nfor win in popular:\n if win < sum / (4*m):\n print('No')\n yes = False\n break\n\nprint(yes)\n\nif yes:\n print('Yes')", 'x,y,z = map(int, input().split())\n\nx1, y1, z1 = y, x, z\nx2, y2, z2 = z1, y1, x1\n\nprint(x2, y2, z2)']
['Runtime Error', 'Accepted']
['s038907604', 's531769952']
[3064.0, 2940.0]
[17.0, 17.0]
[337, 98]
p02717
u546853743
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['\nx,y,z=map(int,input().split())\nprint(z,y,x)', '\nx,y,z=map(int,input().split())\nprint(z,x,y)']
['Wrong Answer', 'Accepted']
['s995394318', 's905676637']
[9156.0, 9156.0]
[24.0, 28.0]
[44, 44]
p02717
u548492494
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s878832679', 's955839895']
[2940.0, 2940.0]
[17.0, 17.0]
[63, 70]
p02717
u549502601
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nb2 = a\nc2 = b\na2 = c\nprint(a2, b2, c2)\n', 'import sys\na, b, c = map(int, sys.argv[1:])\nb2 = a\nc2 = b\na2 = c\nprint(a2, b2, c2)\n', 'in_ = input()\na, b, c = map(int, in_.split())\nb2 = a\nc2 = b\na2 = c\nprint(a2, b2, c2)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s233457478', 's419762460', 's856525755']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[55, 83, 85]
p02717
u550061714
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\n\n\ndef make_divisors(n):\n for i in range(1, int(n ** 0.5) + 1):\n if n % i == 0:\n yield i\n if i != n // i:\n yield n // i\n\n\nans = len(tuple(make_divisors(N - 1))) - 1\n\nit = make_divisors(N)\nnext(it)\n\nfor k in it:\n tmp = N\n while not tmp % k:\n tmp //= k\n if tmp % k == 1:\n ans += 1\nprint(ans)\n', 'X, Y, Z = map(int, input().split())\nprint(Z, X, Y)\n']
['Runtime Error', 'Accepted']
['s066687723', 's440744447']
[3064.0, 3316.0]
[17.0, 21.0]
[376, 51]
p02717
u550633907
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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]\na[0] = a[2]\nprint(a[0],a[1],a[2], sep=' ')", "a = list(map(int, input().split()))\nk = a[0]\na[0] = a[1]\na[1] = k\nk = a[0]\na[0] = a[2]\na[2] = k\nprint(a[0], a[1], a[2], sep=' ')\n"]
['Wrong Answer', 'Accepted']
['s774655998', 's968048233']
[2940.0, 3060.0]
[17.0, 17.0]
[90, 129]
p02717
u551109821
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 = list(map(int,input().split()))\ncopy = x[0]\nx[0] = x[1]\nx[1] = copy\nprint(x)\n\ncopy = x[0]\nx[0] = x[2]\nx[2] = copy\n\nprint(" ".join([str(i) for i in x]))', 'x = list(map(int,input().split()))\ncopy = x[0]\nx[0] = x[1]\nx[1] = copy\n\ncopy = x[0]\nx[0] = x[2]\nx[2] = copy\n\nprint(" ".join([str(i) for i in x]))']
['Wrong Answer', 'Accepted']
['s324222799', 's388020343']
[3064.0, 3060.0]
[17.0, 17.0]
[154, 145]
p02717
u551786761
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['num1 = int(input()) \nnum2 = int(input())\nnum3=int(input())\nprint(num3 + " "+ num1 + " "+ num2)', 'arvud = input()\n\narvu=arvud.split(" ")\narv1=arvu[0]\narv2=arvu[1]\narv3=arvu[2]\n\nprint(arv3+ " "+ arv1+ " "+ arv2)']
['Runtime Error', 'Accepted']
['s331223029', 's473378600']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 112]
p02717
u552201227
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s819431826', 's335548787']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 45]
p02717
u552533086
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 = list(map(int, input().split()))\na_list.sort(reverse = True)\na_total = sum(a_list)\ncount = 0\nfor voted in a_list[:M]:\n if voted < (1/(4*M))*a_total:\n print("No")\n break\nelse:\n print("Yes")', 'a, b, c = map(int, input().split())\n#n=int(input())\n\ntemp = a\na = b\nb = temp\ntemp = a\na = c\nc = temp\n\nprint(a,b,c)']
['Runtime Error', 'Accepted']
['s868659926', 's213957717']
[3060.0, 3060.0]
[17.0, 17.0]
[238, 150]
p02717
u553308611
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)\n', 'a, b, c = map(int, input().split())\nprint(c, a, b)\n']
['Wrong Answer', 'Accepted']
['s322932701', 's355645668']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 51]
p02717
u555178877
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s661752010', 's950410769']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 44]
p02717
u555688810
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 = map(int,input().split())\n\nprint(l[2],l[0],l[1])', 'l = list(map(int,input().split()))\n\nprint(l[2],l[0],l[1])']
['Runtime Error', 'Accepted']
['s807743765', 's231827768']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 57]
p02717
u556594202
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['ans = list(map(int,input().split()))\nprint(ans[1],ans[2],ans[0])\n', 'ans = list(map(int,input().split()))\nprint(ans[2],ans[1],ans[0])\n', 'ans = list(map(int,input().split()))\nprint(ans[2],ans[0],ans[1])\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s455893906', 's588068348', 's411357015']
[9156.0, 8768.0, 9152.0]
[25.0, 27.0, 27.0]
[65, 65, 65]
p02717
u556610039
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)\n', 'x, y, z = map(str, input().split())\nprint(z + " " + x + " " + y)\n']
['Runtime Error', 'Accepted']
['s693185745', 's592172997']
[2940.0, 2940.0]
[18.0, 17.0]
[65, 65]
p02717
u559346857
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nb,c=c,b\n\nprint(a,b,c)', 'a,b,c=map(int,input().split())\na,b=b,a\na,c=c,a\nprint(a,b,c)']
['Wrong Answer', 'Accepted']
['s926349187', 's813953557']
[9088.0, 9052.0]
[25.0, 22.0]
[61, 59]
p02717
u562015767
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 = x = [int(i) for i in input().split()]\nl_sum = sum(l)\ncnt = 0\n \nfor i in range(N):\n if l[i] > (1//(4*M))*l_sum:\n cnt += 1\n \nif cnt >= M:\n print("Yes")\nelse:\n print("No") ', 'x,y,z = map(int,input().split())\nprint(z,x,y)']
['Runtime Error', 'Accepted']
['s260779476', 's396859397']
[3060.0, 2940.0]
[18.0, 17.0]
[220, 45]
p02717
u563992898
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()]\nx, y = y, x\nx, z = z, x\nprint(f'{x} {y} {z}'", 'x, y, z = map(int, input().split())\nx, y = y, x\nx, z = z, x\nprint(x, y, z)']
['Runtime Error', 'Accepted']
['s593623582', 's273266753']
[2940.0, 3064.0]
[17.0, 17.0]
[88, 74]
p02717
u564770050
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(str(c)+str(a)+str(b))', "a,b,c = map(int,input().split())\nprint(str(c)+' '+str(a)+' '+str(b))"]
['Wrong Answer', 'Accepted']
['s039351311', 's332554845']
[2940.0, 2940.0]
[17.0, 17.0]
[60, 68]
p02717
u565448206
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 nums= list(map(int,input().split(" ")))\n print("%d %d %d"%(nums[2], nums[0], nums[1]))', 'if __name__ == \'__main__\':\n\tnums= list(map(int,input().split(" ")))\n\tprint("%d %d %d"%(nums[2], nums[0], nums[1]))']
['Wrong Answer', 'Accepted']
['s453930672', 's157347759']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 114]
p02717
u566317458
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()\nprint(num[2,num[0],num[1])', 'x=input()\ny=input()\nz=input()\n\nprint(z,x,y)', 'num=input().split()\nprint(num[2],num[0],num[1])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s478246521', 's927236326', 's365104352']
[8788.0, 8940.0, 8992.0]
[22.0, 20.0, 31.0]
[46, 43, 47]
p02717
u566321790
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(b,c,a)', 'a, b, c = map(int, input().split())\n \nprint(c,a,b)']
['Wrong Answer', 'Accepted']
['s849549474', 's058966052']
[2940.0, 2940.0]
[17.0, 17.0]
[49, 50]
p02717
u568711768
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(str, input(),split()))\nprint(a[2],a[0],a[1])', '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,b,c = list(map(int, input().split()))\nprint(c,a,b)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s063109727', 's275748379', 's869650387', 's482593953']
[3064.0, 2940.0, 2940.0, 2940.0]
[18.0, 19.0, 17.0, 17.0]
[57, 52, 57, 53]
p02717
u569776981
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['xyz = list(map(int,input().split()))\nxyz[0] ,xyz[1] = xyz[1],xyz[0]\nxyz[0], xyz[2] = xyz[2], xyz[0]\nprint(xyz)', 'xyz = list(map(int,input().split()))\nxyz[0] ,xyz[1] = xyz[1],xyz[0]\nxyz[0], xyz[2] = xyz[2], xyz[0]\nprint(*xyz)']
['Wrong Answer', 'Accepted']
['s969530343', 's100148777']
[9176.0, 9172.0]
[33.0, 28.0]
[110, 111]
p02717
u570562351
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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() y = input() z = input()\nprint(z) print(x) print(y)', 'x,y,z = map(int,input().split())\n\nprint(z,x,y)']
['Runtime Error', 'Accepted']
['s918140950', 's943694319']
[2940.0, 2940.0]
[17.0, 17.0]
[62, 46]
p02717
u571028152
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()))\ns=sum(A)\nc=0\nfor a in A:\n if a >= s/(4*m):\n c=c+1\n\nif c>=m:\n print(\'Yes\')\nelse:\n print("No")', 'x,y,z=map(int,input().split())\nprint("{} {} {}".format(z,x,y))']
['Runtime Error', 'Accepted']
['s675391873', 's288331917']
[3060.0, 2940.0]
[17.0, 17.0]
[173, 62]
p02717
u571537830
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\na = z\n\nz = y\ny = x\nx = a\n\nprint(x y z)\n', 'x, y, z = map(int, input().split())\n\na = z\nb = x\nc = y\n\nprint(a, b, c)']
['Runtime Error', 'Accepted']
['s322813521', 's595807931']
[8940.0, 9048.0]
[31.0, 29.0]
[76, 70]
p02717
u572138437
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['cur = []\n\ndef recur(n):\n if n > 10 ** 18:\n return\n cur.append(n)\n for i in range(10):\n if abs(n % 10 - i) <= 1:\n recur(10 * n + i)\n\nfor i in range(1, 10):\n recur(i)\ncur.sort()\nn = int(input())\nprint((cur[n - 1]))', 'cur = list(map(int, input().split()))\n\nprint(cur[2], cur[0], cur[1])']
['Time Limit Exceeded', 'Accepted']
['s231342159', 's881775877']
[53640.0, 2940.0]
[2107.0, 17.0]
[249, 68]
p02717
u572439791
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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, a, b)', 'n, k = map(int, input().split())\nwhile n > abs(n - k):\n n = abs(n - k)\nprint(n)', 'a, b, c = map(int, input().split(" "))\nprint("{} {} {}".format(c, a, b)', 'a, b, c = input().sprit(" ")\ntemp = a\na = b\nb = temp\ntemp = a\na = c\nc = temp\nprint("{} {} {}".format(a, b, c)\n', 'a, b, c = map(int, input().split(" "))\nprint(c, a, b)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s004361487', 's166476477', 's276373073', 's889237566', 's744335938']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[61, 82, 71, 110, 53]
p02717
u573234244
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['x,y,z = map(int, input().split())\n\nprint(y,z,x)', 'x,y,z = map(int, input().split())\n\nprint(z,x,y)']
['Wrong Answer', 'Accepted']
['s366087521', 's894446840']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 47]
p02717
u577170763
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['x, y, z = input().split()\n\nprint(x, y, z)\n\n\nc = x\nx = y\ny = c\n\nc = x\nx = z\nz = c\n\n\n# print("result")\nprint(x, y, z)\n\n', 'x, y, z = input().split()\n\nprint(z, x, y)']
['Wrong Answer', 'Accepted']
['s814662421', 's855365322']
[9012.0, 9068.0]
[20.0, 25.0]
[193, 41]
p02717
u578970900
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 + ' '", "a, b, c = input().split()\nprint(c + ' ' + a + ' ' + b)"]
['Runtime Error', 'Accepted']
['s874113474', 's115665382']
[2940.0, 2940.0]
[18.0, 17.0]
[49, 54]
p02717
u581187895
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 resolve():\n a, b, c = map(int, input().split())\n a, b = b, a\n a, c = c, a\n return print(a, b, c)\n\n\nif __name__ == "__main__":\n resolve', '\ndef resolve():\n a, b, c = map(int, input().split())\n a, b = b, a\n a, c = c, a\n return print(a, b, c)\n\n\nif __name__ == "__main__":\n resolve()']
['Wrong Answer', 'Accepted']
['s456615336', 's519906208']
[2940.0, 2940.0]
[18.0, 17.0]
[153, 156]
p02717
u585963734
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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.sort()\n\nprint(A)', "A = list(map(int, input().split()))\nA.sort()\nprint(' '.join(map(str, A)))", "A = list(map(int, input().split()))\nA[0],A[1] =A[1],A[0]\nA[0],A[2] =A[2],A[0]\nprint(' '.join(map(str, A)))"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s133025527', 's942603091', 's766663163']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[54, 73, 106]
p02717
u586055623
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 solution(X, Y, Z):\n return Z, X, Y', 'X, Y, Z = map(int, input().split())\nprint(Z, X, Y)']
['Wrong Answer', 'Accepted']
['s634234035', 's053970602']
[2940.0, 2940.0]
[17.0, 17.0]
[39, 50]
p02717
u586857375
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['X = int(input())\nY = int(input())\nZ = int(input())\nA,B,C = X,Y,Z\nA,B,C = C,A,B\nprint(A,B,C)', 'X = int(input())\nY = int(input())\nZ = int(input())\nX,Y,Z = Z,X,Y', 'X,Y,Z = map(int,input().split)\nX,Y = Y,X\nX,Z = Z,X\nprint(X,Y,Z)', 'X = int(input())\nY = int(input())\nZ = int(input())\nM = X\nX = Y\nY = M\nM = X\nX = Z\nZ = M\nprint(X,Y,Z)\n', 'X = int(input())\nY = int(input())\nZ = int(input())\nX,Y = Y,X\nX,Z = Z,X\nprint(X,Y,Z)', 'X = int(input())\nY = int(input())\nZ = int(input())\nX,Y,Z = Z,X,Y', 'X,Y,Z = map(int,input().split)\nX,Y,Z = Z,X,Y\nprint(X,Y,Z)', 'X,Y,Z = map(int,input().split())\nX,Y = Y,X\nX,Z = Z,X\nprint(X,Y,Z)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s129917451', 's142420886', 's523896822', 's672346850', 's721560790', 's768345848', 's771623236', 's142213023']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0, 18.0]
[91, 64, 63, 100, 83, 64, 57, 65]
p02717
u588048170
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(f'{c},{a},{b}')", 'a, b, c = input().split()\nprint(c, a, b)\n']
['Runtime Error', 'Accepted']
['s223201936', 's247645265']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 41]
p02717
u589913372
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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,c = map(int, input().split())\ns = str(input())\nt = [0 for i in range(n)]\nu = [0 for i in range(n)]\ni,x,y = 0,0,0\nj = n-1\nwhile i < n and x <= k:\n if s[i] == "o":\n t[i] = 1\n x += 1\n i += c\n i += 1\n\nwhile j >= 0 and y <= k:\n if s[j] == "o":\n u[j] = 1\n y += 1\n j += -c\n j += -1\n\nfor i in range(0,n):\n if t[i] == 1 and u[i] == 1:\n print(i+1)', 'a,b,c = map(int, input().split())\nprint(c,a,b)']
['Runtime Error', 'Accepted']
['s475253229', 's099075938']
[3064.0, 2940.0]
[17.0, 17.0]
[405, 46]
p02717
u595353654
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 -*-\nfrom sys import stdin\nfrom operator import itemgetter\nimport math\n\n\ndef keta(kazu):\n kazu_str = str(kazu)\n kazu_list = [int(kazu_str[i]) for i in range(0, len(kazu_str))]\n return kazu_list\n\nK = int(stdin.readline().rstrip())\na = list(range(1,10))\nb = []\nattack = 100000\nwhile attack > 0:\n go = a.pop(0)\n ue = go*10\n shimo = go%10\n b.append(go)\n if shimo == 0:\n a.append(ue)\n a.append(ue+1)\n elif shimo == 9:\n a.append(ue+shimo-1)\n a.append(ue+shimo)\n else:\n a.append(ue+shimo-1)\n a.append(ue+shimo)\n a.append(ue+shimo+1)\n attack -= 1\n\nprint(b[K-1])', '# -*- coding: utf-8 -*-\nfrom sys import stdin\nfrom operator import itemgetter\nimport math\n\n\na, b, c = [int(x) for x in stdin.readline().rstrip().split()]\n\nprint(c,a,b)']
['Runtime Error', 'Accepted']
['s382282801', 's077918676']
[3188.0, 3060.0]
[22.0, 18.0]
[682, 195]
p02717
u595542086
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s759301332', 's169329630']
[2940.0, 2940.0]
[17.0, 17.0]
[41, 43]
p02717
u595786324
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nswap(x,z)\nswap(x,y)\nprint(x,y,z)', 'x,y,z = map(int,input().split())\nx,y = y,x\nx,z = z,x\nprint(x,y,z)']
['Runtime Error', 'Accepted']
['s123766091', 's580475432']
[2940.0, 3064.0]
[17.0, 17.0]
[65, 65]
p02717
u597626771
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
["i = input().split()\ni_int = [int(n) for n in i]\na = input().split()\nA = [int(m) for m in a]\nN = i_int[0]\nM = i_int[1]\n\nthreshhold = int(sum(A)/(4 * M))\n\n##print(threshhold)\n\nc = 0\nfor val in A:\n if val > threshhold:\n ##print(val)\n c += 1\n\nif M > c:\n print('No')\nelse:\n print('Yes')\n", "i = input()\nl = i.split()\nprint(l)\nprint(l[2] + ' ' + l[0] + ' ' + l[1])", 'l = input().split()\nl_int = [int(a) for a in l]\nN = l_int[0]\nK = l_int[1]\n \nprint(min(N%K, abs(K - (N%K)))', "i = input().split()\ni_int = [int(n) for n in i]\na = input().split()\nA = [int(m) for m in a]\nN = i_int[0]\nM = i_int[1]\n\nthreshhold = int(sum(A)/(4 * M))\n\n##print(threshhold)\n\nc = 0\nfor val in A:\n if val > threshhold:\n ##print(val)\n c += 1\n\nif M > c:\n print('No')\nelse:\n print('Yes')\n", "i = input().split()\ni_int = [int(n) for n in i]\na = input().split()\nA = [int(m) for m in a]\nN = i_int[0]\nM = i_int[1]\n\nthreshhold = int(sum(A)/(4 * M))\n\n##print(threshhold)\n\nc = 0\nfor val in A:\n if val > threshhold:\n ##print(val)\n c += 1\n\nif M > c:\n print('No')\nelse:\n print('Yes')\n", "i = input().split()\ni_int = [int(n) for n in i]\na = input().split()\nA = [int(m) for m in a]\nN = i_int[0]\nM = i_int[1]\n\nth = sum(A)/(4 * M)\n\n##print(threshhold)\n\nc = 0\nfor val in A:\n if val >= th:\n ##print(val)\n c += 1\n\nif M >= c:\n print('No')\nelse:\n print('Yes')\n", "i = input().split()\ni_int = [int(n) for n in i]\na = input().split()\nA = [int(m) for m in a]\nN = i_int[0]\nM = i_int[1]\n\nthreshhold = int(sum(A)/(4 * M))\n\n##print(threshhold)\n\nc = 0\nfor val in A:\n if val > threshhold:\n ##print(val)\n c += 1\n\nif M > c:\n print('No')\nelse:\n print('Yes')", "i = input().split()\ni_int = [int(n) for n in i]\na = input().split()\nA = [int(m) for m in a]\nN = i_int[0]\nM = i_int[1]\n\nth = int(sum(A)/(4 * M))\n\n##print(threshhold)\n\nc = 0\nfor val in A:\n if val >= th:\n ##print(val)\n c += 1\n\nif M > c:\n print('No')\nelse:\n print('Yes')\n", "i = input().split()\ni_int = [int(n) for n in i]\na = input().split()\nA = [int(m) for m in a]\nN = i_int[0]\nM = i_int[1]\n\nthreshhold = int(sum(A)/(4 * M))\n\n##print(threshhold)\n\nc = 0\nfor val in A:\n if val > threshhold:\n ##print(val)\n c += 1\n\nif M > c:\n print('No')\nelse:\n print('Yes')", "i = input()\nl = i.split()\nprint(l[2] + ' ' + l[0] + ' ' + l[1])"]
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s138143855', 's170624195', 's266524954', 's319035083', 's381937393', 's472503118', 's750259377', 's909463537', 's963940613', 's889129445']
[2940.0, 2940.0, 2940.0, 3060.0, 3060.0, 3060.0, 3064.0, 3060.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0, 18.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[297, 72, 106, 297, 301, 282, 290, 286, 290, 63]
p02717
u604953624
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(a, b, c)\n', 'a, b, c = map(int, input().split())\n \nprint(a, b, c)\n', "original = input()\nordered = original.split()\nprint(original[2] + ' ' + original[0] + ' ' + original[1] + ' ')\n", 'x, y, z = map(int, input().split())\n \nprint(z, x, y)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s253162741', 's484905379', 's582719540', 's607005902']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[53, 53, 111, 52]
p02717
u605151360
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['\ninputs = input_line.split(\' \')\na, b, c = [int(s) for s in inputs]\nprint("{} {} {}".format(c, a, b))\n', '# -*- coding: utf-8 -*-\ninput_line = input()\n\ninputs = input_line.split(\' \')\na, b, c = [int(s) for s in inputs]\nprint("{} {} {}".format(c, a, b))\n']
['Runtime Error', 'Accepted']
['s847317440', 's012530873']
[2940.0, 2940.0]
[17.0, 17.0]
[101, 146]
p02717
u607729897
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()))\ns = sum(A)\nmin = s / (4 * M)\ncnt = 0\nfor a in A:\n if a >= min:\n cnt += 1\nif M <= cnt:\n print('Yes')\nelse:\n print('No')\n\n\n", 'XYZ = map(int, input().split())\nprint(XYZ[2], XYZ[1], XYZ[0])\n', 'XYZ = input().split()\nprint(XYZ[2], XYZ[0], XYZ[1])\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s173832641', 's285964975', 's296655456']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 18.0]
[196, 62, 52]
p02717
u609176437
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s096291790', 's883668825']
[9056.0, 9044.0]
[31.0, 23.0]
[43, 43]
p02717
u609814378
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nN,M = map(int, input().split())\nA = list(map(int, input().split()))\nsorted_A = sorted(A, reverse=True) \nall_A = sum(A)\n\nrule = (1/(4*M))\n\nans = 0\n\nfor i in A:\n if (i / all_A) > rule:\n ans = ans + 1\n else:\n pass\n\nif ans >= M:\n print("Yes")\nelse:\n print("No")\n', 'X,Y,Z = map(int, input().split())\n\nprint(str(Z) + " " + str(X) + " " + str(Y))']
['Runtime Error', 'Accepted']
['s477333439', 's570192662']
[3060.0, 3064.0]
[17.0, 17.0]
[295, 78]
p02717
u610326327
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(b, c, a))\n", "a, b, c = map(int, input().split(' '))\na, b = b, a\na, c = c, a\nprint(a, b, c)\n"]
['Wrong Answer', 'Accepted']
['s840918598', 's413371653']
[2940.0, 3064.0]
[17.0, 17.0]
[73, 78]
p02717
u610916981
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s619591200', 's942816874']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 45]
p02717
u611239490
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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=map(int,input().split())\n\nprint(b,a)', 'X,Y,Z=map(int,input().split())\nX,Y=Y,X\nX,Z=Z,X\nprint(X,Y,Z)']
['Runtime Error', 'Accepted']
['s787447318', 's800488209']
[9124.0, 9176.0]
[26.0, 24.0]
[40, 59]
p02717
u614964888
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\n \nprint(Z, X, Y)', 'X,Y,Z=int(input().split())\n\nprint(Z,X,Y)', 'X,Y,Z=map(int, input().split())\n\nprint(Z,X,Y)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s368103277', 's941660495', 's893356995']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[45, 40, 45]
p02717
u617225232
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(string,input().split())\nprint(c+' '+a+' '+b)\n", "a,b,c = map(int,input().split())\nprint(c+' '+a+' '+b)\n", "a,b,c = map(str,input().split())\nprint(c+' '+a+' '+b)\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s176477871', 's334380194', 's358684202', 's836553555']
[8992.0, 9000.0, 9148.0, 8956.0]
[24.0, 21.0, 23.0, 22.0]
[45, 57, 54, 54]
p02717
u617779302
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['input_list = input().split()\na = int(input_list[2])\nb = int(input_list[0])\nc = int(input_list[1])\nprint("{} {} {}".format(a, b, c)', 'input_list = input().split()\na = int(input_list[2])\nb = int(input_list[0])\nc = int(input_list[1])\nprint("{} {} {}".format(a, b, c))\n']
['Runtime Error', 'Accepted']
['s431851290', 's837159637']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 132]
p02717
u620464724
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s457486880', 's718746381']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 62]
p02717
u620549327
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 resolve():\n a, b, c = map(int, input().split())\n \n temp_a = a\n temp_b = b\n a = temp_b\n b = temp_a\n temp_c = c\n temp_a = a\n c = temp_a\n a = temp_c\n print(a, b, c)', 'a, b, c = map(int, input().split())\n \n temp_a = a\n temp_b = b\n a = temp_b\n b = temp_a\n temp_c = c\n temp_a = a\n c = temp_a\n a = temp_c\n print(a, b, c)', 'n = list(map(int,input().split()))\nprint(n[2],n[0],n[1])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s678589377', 's953984869', 's514113430']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[193, 176, 56]
p02717
u621345513
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nm_1 = n % k\nm_2 = k - m_1\nprint(min(m_1, m_2))', 'x, y, z = map(int, input().split())\nprint(z, x, y)']
['Runtime Error', 'Accepted']
['s646466729', 's984139136']
[2940.0, 2940.0]
[18.0, 17.0]
[80, 50]
p02717
u623245758
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['x,y,z = input().split()\nprint(y,z,x)', 'x,y,z = input().split()\nprint(z,x,y)']
['Wrong Answer', 'Accepted']
['s767021649', 's363767549']
[9024.0, 9088.0]
[20.0, 20.0]
[36, 36]
p02717
u625255205
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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', 'print(31 41 59)', '#n = int(input())\n#a,b = map(int,input().split())\n#a_L = list(map(int,input().split()))\n\n#n = int(input())\n#a,b = map(int,input().split())\n#a_L = list(map(int,input().split()))\n\nx,y,z = map(int,input().split())\n\na = z\nb = x\nc = y\n\nprint("{} {} {}".format(a,b,c))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s047962740', 's224709873', 's625953556']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[1, 15, 262]
p02717
u625920333
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 math\n\nn, k = map(int, input().split())\n\npre=n-math.floor(n/k)*k\n\nwhile 1:\n if pre <= abs(pre-k):\n print(pre)\n sys.exit()\n pre = abs(pre - k)', '\na, b, c = map(int, input().split())\nprint(c,a,b)']
['Runtime Error', 'Accepted']
['s348641087', 's854205949']
[2940.0, 3060.0]
[17.0, 62.0]
[178, 49]
p02717
u626228246
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nreadllne = sys.stdin.readllne\nA,B,C = map(int,readllne().split())\nprint(C,A,B)\n', 'X,Y,Z = map(int,input().sp;split())\nprint(Z,X,Y)', 'import sys\nreadllne = sys.stdin.readllne()\nA,B,C = map(int,readllne().split())\nprint(C,A,B)', 'import sys\nreadline = sys.stdin.readline()\nA,B,C = map(int,readline().split())\nprint(C,A,B)', 'X,Y,Z = map(int,input().split())\nprint(Z,X,Y)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s460897917', 's553579017', 's778582102', 's979162444', 's210534344']
[8960.0, 8876.0, 8968.0, 8996.0, 9096.0]
[19.0, 21.0, 20.0, 20.0, 22.0]
[90, 48, 91, 91, 45]
p02717
u628285938
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)', '# -*- coding: utf-8 -*-\n"""\nCreated on Sat Apr 4 20:51:41 2020\n\n@author: liang\n"""\n\na, b, c = map(int, input().split())\nprint(c,a,b)']
['Wrong Answer', 'Accepted']
['s724028501', 's298874494']
[2940.0, 2940.0]
[18.0, 18.0]
[49, 134]
p02717
u629186149
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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]\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[0], a[1], a[2])']
['Wrong Answer', 'Accepted']
['s418349395', 's157169147']
[2940.0, 3060.0]
[17.0, 17.0]
[91, 106]
p02717
u629607744
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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,z=y,x,z\nprint(x,y,z)', 'x,y,z=map(int,input().split())\nx,y,z=z,x,y\nprint(x,y,z)']
['Wrong Answer', 'Accepted']
['s768532918', 's752586249']
[2940.0, 2940.0]
[17.0, 18.0]
[55, 55]
p02717
u631579948
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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=c\nb=a\nc=b\nprint(a,b,c)', 'a,b,c=map(int,input().split())\nswap=c\nswap1=b\nswap2=a\na=swap\nb=swap2\nc=swap1\nprint(a,b,c)\n\n']
['Wrong Answer', 'Accepted']
['s977619694', 's227629100']
[2940.0, 2940.0]
[18.0, 17.0]
[55, 91]
p02717
u634046173
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['li = list(map(int,input().split()))\ns = li[0]\nli[0] = li[2]\nli[2] = s\nprint(li[0],li[1],li[2])', 'A, B, C = map(int, input().split())\nA, B = B, A\nA, C = C, A\nprint(A, B, C)']
['Wrong Answer', 'Accepted']
['s244493913', 's469370529']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 74]
p02717
u634934338
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nvote_result_list = sorted(list(map(int,input().split())))[::-1]\nborder = sum(vote_result_list)/(4*M)\nprint("Yes" if vote_result_list[M-1] >= border else "No")', 'a,b,c = map(int,input().split())\na,b = b,a\na,c = c,a\nprint(a,b,c)']
['Runtime Error', 'Accepted']
['s044889177', 's017595056']
[2940.0, 2940.0]
[18.0, 17.0]
[191, 65]
p02717
u639512008
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\n\nif __name__ == \'__main__\':\n print(f"{sys.argv[-1]} {sys.argv[1]} {sys.argv[2]}")\n', 'if __name__ == \'__main__\':\n n, m = map(int, input().split())\n a = [int(i) for i in input().split()]\n s = sum(a)\n a = sorted(a)[::-1]\n if a[m-1] >= (s / (4 * m)):\n print("Yes")\n else:\n print("No")\n', "import sys\n\n\nif __name__ == '__main__':\n print(sys.argv[-1:] + sys.argv[1:-1])\n", "import sys\n\n\nif __name__ == '__main__':\n a, b, c = map(int, input().split())\n print(c, a, b)\n"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s097242719', 's428633902', 's718501143', 's450301498']
[9080.0, 9052.0, 9084.0, 9144.0]
[21.0, 20.0, 25.0, 20.0]
[97, 228, 82, 99]
p02717
u640296846
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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("Enter a number for X: "))\nb = int(input("Enter a number for Y: "))\nc = int(input("Enter a number for Z: "))\n\nprint(f"{c} {a} {b}")\n', 'def generator(A, B, C):\n return f"{C} {A} {B}"\n', 'x, y, z = map(int, input().split())\nprint("{} {} {}".format(z, x, y))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s571570513', 's973683413', 's972131713']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[146, 50, 69]
p02717
u641393644
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()\nm = input()\nz = l.split(\' \')\nM = int(z[1])\nN = int(z[0])\nC = (1/(4*M))*N\nF = m.split(\' \')\nX = []\nprint("No")\n\nfor item in F:\n\tvotes = int(item)\n\tX.append(votes)\nX.sort(reverse = True)\nfor i in range(M):\n\tif X[i]<C:\n\t\tprint("No")\n\t\treturn\nprint("Yes")\n', 'l = input()\nm = input()\nz = l.split(\' \')\nM = int(z[1])\nN = int(z[0])\nF = m.split(\' \')\nX = []\n\nfor item in F:\n votes = int(item)\n X.append(votes)\nprint("Yes")\n', "l = input().split(' ')\n\nprint(str(l[2])+str(l[0])+str(l[1]))", "l = input().split(' ')\n\nprint(str(l[2])+' '+str(l[0])+' '+str(l[1]))\n"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s711020128', 's929224743', 's989171630', 's472829666']
[3064.0, 2940.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[263, 160, 60, 69]
p02717
u642528832
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(b,c,a)', 'l = list(map(int,input().split()))\nl = l[1],l[2],l[0]\nprint(l)', 'a,b,c =input().split()\nprint(c,a,b)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s168249418', 's648945198', 's972437699']
[9012.0, 9148.0, 9016.0]
[25.0, 24.0, 23.0]
[35, 62, 35]
p02717
u644568755
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
["x , y, z = map(int,input().split())\nprint(z + ' ' + x + ' ' + y)", "x, y, z = map(str,input().split())\nprint(z + ' ' + x + ' ' + y)"]
['Runtime Error', 'Accepted']
['s886954714', 's882871756']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 63]
p02717
u646203242
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(Y ,Z, X)', 'X,Y,Z=map(int,input().split())\nprint(Z ,X, Y)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s589382564', 's949999030', 's405953856']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[43, 45, 45]
p02717
u647679586
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['T', "\na, b, c = list(map(int, input().split()))\n\nif (a == b == c):\n print(str(a) + ' ' + str(b) + ' ' + str(c))\nelse:\n a, b = b, a\n a, c = c, a\n print(str(a) + ' ' + str(b) + ' ' + str(c))\n"]
['Runtime Error', 'Accepted']
['s851434820', 's997856174']
[2940.0, 3060.0]
[18.0, 17.0]
[1, 196]
p02717
u652569315
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(' '.join[z,x,y])\n", "x,y,z=input().split()\nprint(' '.join([z,x,y]))"]
['Runtime Error', 'Accepted']
['s230181778', 's353737427']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 46]
p02717
u652656291
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nprint("c"),\nprint("a"),\nprint("b"),', "a = int(input())\nb = int(input())\nc = int(input())\n\nprint('b,a,c')", 'a,b,c = map(int,input().split())\n\nprint(c,a,b)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s387217310', 's729782266', 's603915969']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[87, 66, 46]
p02717
u652791485
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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, a, b)', 'A = int(input())\nB = int(input())\nC = int(input())\nprint(C, A, B) ', 'A,B,C = map= (int, input().split())\nprint(C,A,B)', 'A = int(input())\nB = int(input())\nC = int(input())\nprint(C, A, B)', 'a = int(input()), b= int(input()), c=int(input())\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']
['s172249061', 's235194147', 's652223358', 's947901788', 's968359794', 's140809025']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 18.0, 18.0, 17.0]
[65, 66, 48, 65, 64, 44]
p02717
u655212792
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()))\nprint(n[1],n[2],n[0])', 'n = list(map(int,input().split()))\nprint(n[1] n[2] n[3])', 'n = list(map(int,input().split()))\nprint(n[2],n[0],n[1])']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s697661093', 's824572783', 's378789158']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0]
[56, 56, 56]
p02717
u656919695
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
['n,k=map(int,input().split())\na=n\nb=(n//k)\nc=n-k*b\nd=c-k\n\n \nif abs(c)>abs(d):\n print(str(abs(d)))\nelse:\n print(str(abs(c)))\n', 'a,b,c=map(int,input().split())\nx=c\nc=b\nb=a\na=x\n\n\nprint(a,b,c)']
['Runtime Error', 'Accepted']
['s233898530', 's529741687']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 61]
p02717
u658969651
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 is_lunlun(i):\n list_i = list(str(i))\n for j in range(len(list_i)-1):\n if int(list_i[j]) == 0:\n if int(list_i[j+1]) not in [1,9,0]:\n return False\n elif int(list_i[j]) == 1:\n if int(list_i[j+1]) not in [0,1,2]:\n return False\n elif int(list_i[j]) == 9:\n if int(list_i[j+1]) not in [8,9]:\n return False\n else:\n if abs(int(list_i[j]) - int(list_i[j+1])) > 1:\n return False\n return True\n\n\n\nif __name__ == '__main__':\n k = int(input())\n lunlun = (i for i in range(3234566667) if is_lunlun(i))\n for count, i in enumerate(lunlun):\n if count == k:\n print(i)\n break\n\n ", 'if __name__ == \'__main__\':\n a,b,c = raw_input().split(" ")\n a,b = b,a\n a,c = c,a\n stdout(a, b, c)', 'if __name__ == \'__main__\':\n a,b,c = input().split(" ")\n a,b = b,a\n a,c = c,a\n print(a, b, c)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s170499897', 's625130737', 's684300148']
[3064.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[747, 109, 104]
p02717
u660112309
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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("")\nif 1<=X<=100and 1<=Y<=100 and 1<=Z<=100 :\n print(Y, X, Z)\n print(Z, Y, x)', 'A,B,C=map(int,input().split())\nprint(C,A,B)']
['Runtime Error', 'Accepted']
['s674579129', 's902485586']
[2940.0, 2940.0]
[18.0, 17.0]
[111, 43]
p02717
u661439250
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nitem_vote = list(map(int, input().split()))\n\ntotal_vote = sum(item_vote)\nitem_vote = sorted(item_vote, reverse=True)\nboder = total_vote/4*M\nif item_vote[M-1] >= boder:\n print('Yes')\nelse:\n print('No')", "N, M = map(int, input().split())\nitem_vote = list(map(int, input().split()))\ntotal_vote = sum(item_vote)\nitem_vote = sorted(item_vote, reverse=True)\nboder = total_vote/4*M\nif item_vote[M-1] >= boder:\n print('Yes')\nelse:\n print('No')", "X, Y, Z = map(int, input().split())\nX, Y = Y, X\nX, Z = Z, X\nprint(str(X)+' '+str(Y)+' '+str(Z))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s402502373', 's684048755', 's402302933']
[3060.0, 3060.0, 3064.0]
[17.0, 18.0, 18.0]
[239, 238, 95]
p02717
u665078057
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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%k)\n \nelse:\n print(min(n, abs(k-n)))', 'c, a, b = map(int, input().split())\nprint(a, b, c)', "n, m = map(int, input().split())\na = sorted(list(map(int, input().split())), reverse=True)\nnum = int(sum(a)/(4*m))\nif a[m-1] < num:\n print('No')\nelse:\n print('Yes')", 'a, b, c = map(int, input().split())\nprint(c, a, b)']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s013839951', 's259381614', 's821861613', 's744481074']
[2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[90, 50, 166, 50]
p02717
u666961261
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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,A,B = input().split()\nprint(B,A,N)', "x = list(map(int, input().split()))\nx.sort() \nfor i in range(len(x)): \n print(x[i], end = ' ') ", 'a,b,c = map(int,input().split())\nprint(c,a,b)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s250776671', 's995248573', 's733238667']
[2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0]
[36, 98, 45]
p02717
u667458133
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
['s737927724', 's182905229']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 50]
p02717
u667694979
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nt=x\nx=y\ny=t\nt=x\nx=z\nz=t\nprint(x,y,z,sep="")\n', 'x,y,z=map(int,input().split())\nt=x\nx=y\ny=t\nt=x\nx=z\nz=t\nprint(x,y,z,sep=" ")']
['Wrong Answer', 'Accepted']
['s393315030', 's633679777']
[9084.0, 8968.0]
[26.0, 24.0]
[75, 75]
p02717
u668642853
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()\n\nxs = x.split(" ")\n\nprint(xs)\n\nxs[0], xs[1] = xs[1], xs[0]\nxs[0], xs[2] = xs[2], xs[0]\n\nprint(" ".join(xs))', 'x = input()\n\nxs = x.split(" ")\n\nxs[0], xs[1] = xs[1], xs[0]\nxs[0], xs[2] = xs[2], xs[0]\n\nprint(" ".join(xs))']
['Wrong Answer', 'Accepted']
['s945979196', 's337255232']
[2940.0, 2940.0]
[17.0, 17.0]
[119, 108]
p02717
u669770320
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
["\nx , y , z = map(int,input().split())\nprint('{} {} {}'.format(z,y,x))", "\nx , y , z = map(int,input().split())\nprint('{} {} {}'.format(z,x,y))"]
['Wrong Answer', 'Accepted']
['s074373665', 's566948502']
[2940.0, 2940.0]
[18.0, 17.0]
[69, 69]
p02717
u673922428
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)\n', 'X,Y,Z=map(int,input().split(" "))\n\nprint(Z,X,Y)\n']
['Wrong Answer', 'Accepted']
['s355998799', 's530891807']
[2940.0, 2940.0]
[17.0, 18.0]
[48, 48]
p02717
u674959776
2,000
1,048,576
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)\n']
['Wrong Answer', 'Accepted']
['s450689503', 's319316732']
[2940.0, 2940.0]
[18.0, 18.0]
[43, 44]