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
|
u873839198
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 = list(map(int, input().split()))\n\nprint(in[2], in[0], in[1])', 'ina = list(map(int, input().split()))\n \nprint(ina[2], ina[0], ina[1])']
|
['Runtime Error', 'Accepted']
|
['s935701825', 's516094095']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[64, 69]
|
p02717
|
u875449556
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\n\nk = int(input())\nd = deque([1,2,3,4,5,6,7,8,9])\n\nfor i in range(k):\n a = d.popleft()\n if a % 10 != 0:\n d.append(a*10 + a % 10 - 1)\n d.append(a*10 + a % 10)\n if a % 10 != 9:\n d.append(i*10 + i % 10 + 1)\n\nprint(a)\n\n\n', 'x,y,z = map(int, input().split())\n\nprint(z, x, y)']
|
['Runtime Error', 'Accepted']
|
['s870251624', 's716447411']
|
[3316.0, 2940.0]
|
[20.0, 16.0]
|
[272, 49]
|
p02717
|
u877428733
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()))\n\nprint(A[2], A[1], A[0])', 'A = list(map(int,input().split()))\n\nprint(A[2], A[0], A[1])']
|
['Wrong Answer', 'Accepted']
|
['s628170835', 's567870999']
|
[9168.0, 9160.0]
|
[20.0, 22.0]
|
[59, 59]
|
p02717
|
u878212264
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['array = list(map(int, input().split()))\nif (array[0] > array[1]):\n tmp = array[0]\n arrat[0] = array[1]\n array[1] = tmp\n\nif (array[1] > array[2]):\n tmp = array[1]\n arrat[1] = array[2]\n array[2] = tmp\n\nif (array[0] > array[2]):\n tmp = array[0]\n arrat[0] = array[2]\n array[2] = tmp\n\nprint("%d %d %d" %(array[0], array[1], array[2]))\n\n ', 'array = list(map(int, input().split()))\ntmp = array[0]\narray[0] = array[2]\narray[2] = tmp\n\ntmp = array[0]\narray[0] = array[1]\narray[1] = tmp\n\nprint("%d %d %d" %(array[0], array[1], array[2]))', 'array = list(map(int, input().split()))\n\ntmp = array[0]\narray[0] = array[1]\narray[1] = tmp\n\ntmp = array[0]\narray[0] = array[2]\narray[2] = tmp\n\n\nprint("%d %d %d" %(array[0], array[1], array[2]))']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s452467045', 's474686621', 's543072594']
|
[3064.0, 3060.0, 3060.0]
|
[17.0, 17.0, 18.0]
|
[342, 191, 193]
|
p02717
|
u878545651
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)', 's = list(map(int, input().split()))\nprint(s[::-1])', 'X, Y, Z = map(int, input().split())\nX, Y, Z = Z, Y, X\nprint(X, Y, Z)', "def main():\n X, Y, Z = map(int, input().split())\n X, Y = Y, X\n X, Z = Z, X\n\n print(X, Y, Z)\n\n\nif __name__ == '__main__':\n main()"]
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s203269072', 's454473748', 's877808987', 's665025338']
|
[2940.0, 2940.0, 2940.0, 9032.0]
|
[17.0, 17.0, 17.0, 26.0]
|
[50, 50, 68, 143]
|
p02717
|
u881116515
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)\n']
|
['Runtime Error', 'Accepted']
|
['s528714429', 's844291633']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[45, 46]
|
p02717
|
u884601206
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nif a<b:\n a,b=b,a\n\nif a%b == 0:\n print(0)\nelse:\n \n a=a%b\n \n while abs(a-b)<a:\n a=abs(a-b)\n print(a)\n', 'a,b,c = map(int,input().split())\na,b = b,a\na,c = c,a\nprint("{} {} {}".format(a,b,c))\n']
|
['Runtime Error', 'Accepted']
|
['s458391416', 's213620529']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[160, 85]
|
p02717
|
u887222798
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nresult = [z,x,y]\nprint(*result, sep=" ")', 'a = int(input())\nb = int(input())\nc = int(input())\nprint(c,a,b)', "x = int(input())\ny = int(input())\nz = int(input())\nprint(str(z)+' '+str(x)+' '+str(y))", 'items,select = input().split()\nx = [int(items) for x in input().split()]\nfor u in x:\n if u > (1 / (4 * int(select))*sum(x)):\n print("No")\n break\n else:\n print("Yes")\n break\n', 'a,b,c = input().split()\nprint(c,a,b)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s020104554', 's466739618', 's607542988', 's688768807', 's433723125']
|
[2940.0, 2940.0, 2940.0, 3064.0, 3060.0]
|
[17.0, 17.0, 17.0, 17.0, 18.0]
|
[91, 63, 86, 207, 36]
|
p02717
|
u888804711
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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("{} {} {}".format(x,y,z))', 'x, y, z = input().split(" ")\nprint("{} {} {}".format(z,x,y))']
|
['Wrong Answer', 'Accepted']
|
['s179898439', 's161443359']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[60, 60]
|
p02717
|
u889018047
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\n\nX, Y = Y, X\nY, Z = Z, Y\nprint(X, Y, Z)', 'X, Y, Z =map(int, input().split())\n\nA = X\nB = Y\nC = Z\n\nX, Y = Y, X\nY, Z = Z, Y\nprint(A, B, C)', 'import math\n\nX, Y, Z =map(int, input().split())\n\nA = X\nB = Y\nC = Z\n\nX, Y = Y, X\nY, Z = Z, Y\nprint(A, B, C)', 'import math\n\nX, Y, Z =map(int, input().split())\n\nX, Y = Y, X\nY, Z = Z, Y\nA = X\nB = Y\nC = Z\nprint(A, B, C)', 'X = int(input())\nY = int(input())\nZ = int(input())\n\nA = X\nB = Y\nC = Z\n\nX, Y = Y, X\nY, Z = Z, Y\nprint(A, B, C)', '\n\nX, Y, Z =map(int, input().split())\n\nX, Y = Y, X\nY, Z = Z, Y\nA = X\nB = Y\nC = Z\nprint(A, B, C)', 'import random\nX = random.randint(1,100)\nY = random.randint(1,100)\nZ = random.randint(1,100)\n\nX, Y = Y, X\nY, Z = Z, Y\nprint(X, Y, Z)', 'X = input()\nY = input()\nZ = input()\n\nX, Y = Y, X\nY, Z = Z, Y\nprint(X, Y, Z)', 'X, Y, Z =map(int, input().split())\nX, Y = Y, X\nX, Z = Z, X\n\n\nprint(X, Y, Z)']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s002168861', 's027860855', 's070899519', 's359632693', 's368060525', 's436881073', 's861395061', 's921848007', 's038497030']
|
[2940.0, 2940.0, 3060.0, 3060.0, 3060.0, 3060.0, 4208.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 32.0, 17.0, 19.0]
|
[75, 93, 106, 105, 109, 94, 131, 75, 75]
|
p02717
|
u900993244
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nN = [1,2,3,4,56,7,8,9]\n\nfor x in range(a):\n tmp = N[x]\n if tmp%10 != 0:\n N.append(tmp*10+tmp%10-1)\n N.append(tmp*10+tmp%10)\n if tmp%10 != 9:\n N.append(tmp*10+tmp%10+1)\nprint(N[a-1])\n \n \n ', 'k = int(input())\nlunlun = [0] * 100\nlunlun[1] = [1, 2, 3, 4, 5, 6, 7, 8, 9]\ni = 1\n\nfor i in range(9):\n n = len(lunlun[i])\n lunlun[i+1] = []\n for x in lunlun[i]:\n r = x%10\n if r > 0:\n lunlun[i+1].append(10*x + r-1)\n lunlun[i+1].append(10*x + r)\n if r < 9:\n lunlun[i+1].append(10*x + r+1)\n i += 1\n\nfor i in range(1, 11):\n for j in range(len(lunlun[i])):\n k -= 1\n if k == 0:\n print(lunlun[i][j])\n exit()\n', 'A = 1\nB = 2\nC = 3\n\nA,B,C, = B,C,A\n\nprint(A,B,C)', 'a,b,c = map(int,input().split())\nprint(c,a,b)']
|
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s404683875', 's654579834', 's830881515', 's186802706']
|
[2940.0, 3064.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[220, 502, 47, 46]
|
p02717
|
u902380746
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nimport bisect\n\ndef main():\n a, b, c = map(int, input().split())\n #a, b = (b, a)\n a, b = b, a\n b, c = c, b\n print(\'%d %d %d\' % (a, b, c))\n\nif __name__ == "__main__":\n main()\n', 'import sys\nimport math\nimport bisect\n\ndef main():\n a, b, c = map(int, input().split())\n #a, b = (b, a)\n a, b = b, a\n a, c = c, a\n print(\'%d %d %d\' % (a, b, c))\n\nif __name__ == "__main__":\n main()\n']
|
['Wrong Answer', 'Accepted']
|
['s031011657', 's613061872']
|
[3060.0, 3060.0]
|
[18.0, 18.0]
|
[214, 214]
|
p02717
|
u904547029
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['\ndef swap(a ,b):\n x = 0\n x = a\n a = b\n b = x\n return a,b\n\n\nstr_number_list = input().split()\nX = str_number_list[0] #A\nY = str_number_list[1] #B\nZ = str_number_list[2] #C\n\n\nX , Y = swap(X,Y)\nprint("%s %s %s" % (X,Y,Z))\n\n#swap(A,C)\nX,Z = swap(X,Z)\nprint("%s %s %s" % (X,Y,Z))\n\n\n\n\n', '\ndef swap(a ,b):\n x = 0\n x = a\n a = b\n b = x\n return a,b\n\n\nstr_number_list = input().split()\nX = str_number_list[0] #A\nY = str_number_list[1] #B\nZ = str_number_list[2] #C\n\n\nX , Y = swap(X,Y)\nprint("%s %s %s" % (X,Y,Z))\n\n#swap(A,C)\nX,Z = swap(X,Z)\nprint("%s %s %s" % (X,Y,Z))\n\n\n\n\n', 'n = int(input())\n\ndef divisior(n):\n a = []\n i = 1\n while (i*i <= n):\n if n%i == 0:\n a.append(i)\n if (i*i == n): continue\n a.append(n//i)\n i += 1\n\n return a\n\nans = 0\na = divisior(n)\n\nfor x in a:\n if x == 1: continue\n tmp = n\n while (tmp%x == 0): tmp = tmp//x\n if (tmp%x == 1) : ans += 1\n\nb = divisior(n-1)\n\nans = ans + len(b) -1\n\nprint(ans)\n\n\n', '\ndef swap(a ,b):\n x = 0\n x = a\n a = b\n b = x\n return a,b\n\n\nstr_number_list = input().split()\n\nprint(str_number_list[2]+" "+str_number_list[0] + " "+ str_number_list[1]) # Z,X,Y\n\n\n\n\n']
|
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s580877942', 's651132984', 's904127733', 's438921055']
|
[3060.0, 3060.0, 3064.0, 2940.0]
|
[18.0, 17.0, 19.0, 17.0]
|
[308, 308, 413, 197]
|
p02717
|
u908243968
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(w) for w in input().strip().split()]\ntemp = x\nx = y\ny = temp\ntemp = x\nx = z\nz = temp\nprint("{} {} {}".format(x,y,x))', 'x, y, z = [int(w) for w in input().strip().split()]\nt = x\nx = y\ny = t\nt = x\nx = z\nz = t\nprint(x, y, z)']
|
['Wrong Answer', 'Accepted']
|
['s103344365', 's897734406']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[131, 102]
|
p02717
|
u910247652
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(set((map(int, input().split()))))\nvote = []\nfor Ai in A:\n if Ai >= (1 / (4 * M) * sum(A)):\n vote.append(Ai)\nif len(vote) >= M:\n print("Yes")\nelse:\n print("No")', 'a = input()\nb = a.split()\nprint(b[2] + " " + b[0] + " " + b[1])\n']
|
['Runtime Error', 'Accepted']
|
['s578397534', 's029833380']
|
[3060.0, 2940.0]
|
[18.0, 17.0]
|
[217, 64]
|
p02717
|
u915582296
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['# -*- coding: utf-8 -*-\n\na = int(input())\n\nb, c = map(int, input().split())\n\ns = input()\n\n# print("{} {}".format(a+b+c, s))\nprint(f\'{a+b+c} {s}\')', '# -*- coding: utf-8 -*-\n\n# a = int(input())\n\n# b, c = map(int, input().split())\n\n\n\n# print("{} {}".format(a+b+c, s))\n# print(f\'{a+b+c} {s}\')\na,b,c = map(int, input().split())\na,b = b,a\na,c = c,a\nprint("{} {} {}".format(a,b,c))']
|
['Runtime Error', 'Accepted']
|
['s844529226', 's897702348']
|
[9096.0, 9032.0]
|
[26.0, 27.0]
|
[231, 325]
|
p02717
|
u918120636
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nlist=[a,b,c]\nstr=str(list)\nprint(str[-3:-1]+\' \'+str[-11:-9]+\' \'+str[-7:-5])', 'a,b,c= map(str, input("").split())\ntem=a\na=c\nc=b\nb=tem\nprint(a+\' \'+b+\' \'+c)']
|
['Wrong Answer', 'Accepted']
|
['s533890594', 's066113050']
|
[3060.0, 3064.0]
|
[18.0, 17.0]
|
[110, 75]
|
p02717
|
u920103253
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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=[int(x) for x in input().split()]\na=[int(x) for x in input().split()]\n\na.sort()\na.reverse()\n\nans="Yes"\nfor i in range(m):\n if a[i]<sum(a)/(4*m):\n ans="No"\n break;\nprint(ans)', 'a,b,c=[int(x) for x in input().split()]\n\nprint(c,a,b)']
|
['Runtime Error', 'Accepted']
|
['s604308376', 's011454653']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[194, 53]
|
p02717
|
u921632705
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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, x, z)', 'x,y,z = input().split()\nprint(z, x, y)']
|
['Wrong Answer', 'Accepted']
|
['s984113311', 's632769706']
|
[9024.0, 8896.0]
|
[27.0, 26.0]
|
[50, 38]
|
p02717
|
u925658709
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nS = list(map(int,input().split()))\nX = S[0]\nY = S[1]\nZ = S[2]\nS[0],S[1] = S[1],S[0]\nS[0],S[2] = S[2],S[0]\nprint(S)', 'import math\n\nS = list(map(int,input().split()))\nX = S[0]\nY = S[1]\nZ = S[2]\nS[0],S[1] = S[1],S[0]\nS[0],S[2] = S[2],S[0]\nprint(S[0],S[1],S[2])']
|
['Wrong Answer', 'Accepted']
|
['s000127502', 's558577813']
|
[3060.0, 3064.0]
|
[17.0, 17.0]
|
[128, 141]
|
p02717
|
u927860986
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nc=list(map(int,input().split()))\nrequired=sum(c)/(4*b)\ncount=0\nfor d in c:\n if d>=required:\n count+=1\n else:\n break\nprint("YNeos"[count<b::2])', 'a,b=map(int,input().split())\nc=list(map(int,input().split()))\nrequired=sum(c)/(4*b)\ncount=0\nfor d in sorted(c,reverse=True):\n if d>=required:\n count+=1\n else:\n break\nprint("YNeos"[count<b::2])', 'a,b,c=map(int,input().split())\nprint(c,a,b)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s588170366', 's785830895', 's668695045']
|
[3060.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[193, 204, 43]
|
p02717
|
u928006051
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['a = input()\nb = input()\nc = input()\n\nsubitem1 = a\na = b\nb = subitem1\n\nsubitem2 = a\na = c\nc = subitem2\n\nprint(a,b,c)', 'x, y, z = map(int, input().split())\nprint(z,x,y)']
|
['Runtime Error', 'Accepted']
|
['s839003960', 's885764800']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[115, 48]
|
p02717
|
u930723367
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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=1\nY=2\nZ=3\n\nA=Y\nB=X\nC=A\nA=Z\n\nPrint(A,B,C)', 'n=input().split()\nm=input().split()\n\nN=n[0]\nNn=n[1]\nl = 0\n\nfor i in range(int(N)):\n if int(m[i])/(int(Nn)*4) >= 1:\n l+=1\n\nif l >= int(Nn) :\n print("Yes")\nelse :\n print("No")\n', 'n=input().split()\nX=n[0]\nY=n[1]\nZ=n[2]\n\nX,Y = Y,X\nX,Z = Z,X\nprint(X,Y,Z)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s923536469', 's975647287', 's876248296']
|
[2940.0, 3060.0, 2940.0]
|
[17.0, 17.0, 16.0]
|
[42, 190, 72]
|
p02717
|
u931173291
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)\n', 'a,b,c = map(int,input().split())\nprint(c,a,b)\n']
|
['Wrong Answer', 'Accepted']
|
['s685820633', 's110086068']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[46, 46]
|
p02717
|
u934052933
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 x, y, z = map(int, input().split())\n print(x,z,y)\n\nif __name__ == "__main__":\n main()', 'def main():\n x, y, z = map(int, input().split())\n print(z,x,y)\n\nif __name__ == "__main__":\n main()']
|
['Wrong Answer', 'Accepted']
|
['s026892565', 's807148458']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[107, 107]
|
p02717
|
u934540356
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()))\ntot_votes = sum(A)\ncount = 0\nfor a in A:\n if(a>=tot_votes/(4*M)):\n count+=1\nif(count>=M):\n print("Yes")\nelse:\n print("No")', 'x,y,z = input().split()\nx,y = int(y),int(x)\nx,z = int(z),int(x)\nprint(x,y,z)']
|
['Runtime Error', 'Accepted']
|
['s072310471', 's287081327']
|
[3060.0, 2940.0]
|
[18.0, 17.0]
|
[204, 76]
|
p02717
|
u935840914
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['a, b, c = map(int, input().split())\ntemp = a\na = b\nb = a\ntemp = c\nc = a\na = temp\nprint(str(a) + " " + str(b) + "" + str(c))', 'a, b, c = map(int, input().split())\nprint(c, a, b)']
|
['Wrong Answer', 'Accepted']
|
['s185076337', 's511703537']
|
[3060.0, 2940.0]
|
[17.0, 19.0]
|
[123, 50]
|
p02717
|
u938718404
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\nli=[z,x,y]\nprint(" ".join(li))', 'x,y,z=map(int,input().split())\nli=[z,x,y]\nprint(" ".join(map(str,li)))']
|
['Runtime Error', 'Accepted']
|
['s397623259', 's341070210']
|
[9152.0, 9172.0]
|
[20.0, 23.0]
|
[61, 70]
|
p02717
|
u939026953
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['A = input().split()\nA[0], A[1] = A[1], A[0]\nA[1], A[2] = A[2], A[1]\nprint(*A)', 'A = input().split()\nA[0], A[1] = A[1], A[0]\nA[0], A[2] = A[2], A[0]\nprint(*A)']
|
['Wrong Answer', 'Accepted']
|
['s883329043', 's099621760']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[77, 77]
|
p02717
|
u944886577
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\ntemp=x\ny=x\nx=temp\n \ntemp2=z\nz=x\nx=temp2\nprint(x,y,z)', 'x,y,z=map(int,input().split()):\nprint(z,x,y)', 'x,y,z=map(int,input().split()):\ntemp=x\ny=x\nx=temp\n\ntemp2=z\nz=x\nx=temp2\nprint(x,y,z)', 'x,y,z=map(int,input().split()):\nprint(z+" "+x+" "+y)', 'x,y,z=map(int,input().split())\nprint(str(z)+" "+str(x)+" "+str(y))']
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s362436095', 's510562493', 's617645931', 's967611351', 's966203878']
|
[9060.0, 8968.0, 8880.0, 8956.0, 9000.0]
|
[28.0, 23.0, 21.0, 21.0, 29.0]
|
[83, 44, 83, 52, 66]
|
p02717
|
u945405878
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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, x, z)', 'x, y, z = map(int, input().split(" "))\nprint(z, x, y)']
|
['Wrong Answer', 'Accepted']
|
['s750582127', 's246097419']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[53, 53]
|
p02717
|
u946370443
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
|
['s103089762', 's774241699']
|
[9028.0, 9076.0]
|
[20.0, 24.0]
|
[43, 43]
|
p02717
|
u948875995
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['b = []\nfor i in range(3): \n a= int(input())\n b.append(a)\nprint(b[::-1])', "x , y, z = map(int,input().split())\nprint('{} {} {}'.format(z,x,y))"]
|
['Runtime Error', 'Accepted']
|
['s489966113', 's283404481']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[77, 67]
|
p02717
|
u949353021
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
|
['s639528258', 's386193377']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[49, 51]
|
p02717
|
u953379577
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['base = input().split()\nprint(base[2],base[1],base[0])', 'base = input().split()\nprint(int(base[2]),int(base[1]),int(base[0]))', 'base = input().split()\nprint(int(base[2]),int(base[0]),int(base[1]))']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s276633355', 's562812258', 's265111042']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[53, 68, 68]
|
p02717
|
u956223466
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['nm = input().split(" ")\nn = int(nm[0])\nm = int(nm[1])\n\na = input().split(" ")\n\ntotal = 0\nfor v in a:\n total += int(a)\n \nmv = total / (4 * m)\nq = 0\nfor e in a:\n e = int(e)\n if e >= mv:\n q += 1\n \nif q >= m:\n print("Yes")\nelse:\n print("No")\n ', 'nk = input().split(" ")\nn = int(nk[0])\nk = int(nk[1])\n\nt = n % k\nprint(min(t, k-t))', 'string = input().split(" ")\nprint(string[2], string[0], string[1])\n']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s167768816', 's343319127', 's922690022']
|
[3060.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[251, 83, 67]
|
p02717
|
u957669641
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(input().split())\nl[0] = int(l[0])\nl[1] = int(l[1])\nl[2] = int(l[2])\nl[0], l[1]=l[1], l[0]\nl[0], l[2]=l[2], l[0]\nprint(l)', 'l = list(input().split())\nl[0] = int(l[0])\nl[1] = int(l[1])\nl[2] = int(l[2])\nl[0], l[1]=l[1], l[0]\nl[0], l[2]=l[2], l[0]\nprint(l[0], l[1], l[2])']
|
['Wrong Answer', 'Accepted']
|
['s565812986', 's216931334']
|
[3060.0, 3064.0]
|
[17.0, 17.0]
|
[129, 144]
|
p02717
|
u957957759
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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())\n\nprint(c,a,b)', 'a,b,c=map(int,input().split())\n \nprint(c,a,b)']
|
['Runtime Error', 'Accepted']
|
['s132078771', 's880118762']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[32, 45]
|
p02717
|
u960250266
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 = int(input())\nX, Z = Z, X\nprint(X, Y, Z)', 'X, Y, Z = map(int, input().split())\nprint(Z, X, Y)']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s152505807', 's215302110', 's868651789']
|
[2940.0, 2940.0, 2940.0]
|
[19.0, 17.0, 17.0]
|
[50, 49, 50]
|
p02717
|
u961945062
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()) \na = deque([1, 2, 3, 4, 5, 6, 7, 8, 9])\n\nfor i in range(K):\n j = a.popleft()\n print(j)\n if j%10 != 0:\n a.append((10*j) + ((j%10) -1))\n \n a.append((10*j)+j%10)\n \n if j%10 != 9:\n a.append((10*j) +((j%10)+1))', 'from collections import deque\n\nK = int(input()) \na = deque([1, 2, 3, 4, 5, 6, 7, 8, 9])\n\nfor i in range(K-1):\n j = a.popleft()\n if j%10 != 0:\n a.append((10*j) + ((j%10) -1))\n \n a.append((10*j)+j%10)\n \n if j%10 != 9:\n a.append((10*j) +((j%10)+1))\n \na.popleft()', 'i = list(map(int, input().split())) \nX = i[0]\nY = i[1]\nZ = i[2]\n\nprint(Z, X, Y)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s292355774', 's480788929', 's895355567']
|
[3316.0, 3444.0, 2940.0]
|
[20.0, 21.0, 17.0]
|
[292, 298, 79]
|
p02717
|
u962423738
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nans=[]\n\nans.append(z)\nans.append(x)\nans.append(y)\n\nprint(ans)', 'x,y,z=map(int,input().split())\n \nans=[]\n \nans.append(z)\nans.append(x)\nans.append(y)\n \nprint(ans)', 'x,y,z=map(int,input().split())\nprint(z,x,y)']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s328727053', 's883324137', 's444207919']
|
[9052.0, 9104.0, 9156.0]
|
[27.0, 30.0, 31.0]
|
[99, 96, 43]
|
p02717
|
u962718741
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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('{} {} {}'.format(Z,X,Y))", "X,Y,Z = map(int, input().split())\nprint('{} {} {}'.format(Z,X,Y))"]
|
['Runtime Error', 'Accepted']
|
['s188342191', 's835231983']
|
[9024.0, 9084.0]
|
[26.0, 25.0]
|
[60, 65]
|
p02717
|
u963349415
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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)\n', 'a, b, c = map(int, input().split())\nprint(c,a,b)\n']
|
['Wrong Answer', 'Accepted']
|
['s296534363', 's189523703']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[49, 49]
|
p02717
|
u964521959
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['\ninput_list = input().split( )\ninput_list = input_list.sort()\nprint(input_list[0],input_list[1],input_list[2])\n', '\ninput_list = input().split( )\nprint(input_list[1],input_list[2],input_list[0])', '\ninput_list = input().split( )\ninput_list = sorted(input_list)\nprint(input_list[0],input_list[1],input_list[2])', '\ninput_list = input().split( )\ninput_list = input_list.sort\nprint(input_list[0],input_list[1],input_list[2])', '\ninput_list = input().split( )\nprint(input_list[2],input_list[0],input_list[1])']
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s016584202', 's118691105', 's531750292', 's828698804', 's226668442']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 19.0, 17.0, 17.0]
|
[127, 95, 127, 124, 95]
|
p02717
|
u966880389
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['num = list(map(int, input().split()))\n\nnum.reverse()\n\nprint(num[0], num[1], num[2])', 'num = list(map(int, input().split()))\n\nprint(num[2], num[0], num[1])']
|
['Wrong Answer', 'Accepted']
|
['s644052607', 's617724369']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[83, 68]
|
p02717
|
u966891144
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 = list(map(int, input().split()))\nc = s[-1]\ns.pop(-1)\ns.insert(0,c)\nprint(s)', 's = list(map(int, input().split()))\nc = s[-1]\ns.pop(-1)\ns.insert(0,c)\nprint(*s)']
|
['Wrong Answer', 'Accepted']
|
['s429706373', 's976614579']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[78, 79]
|
p02717
|
u967061594
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nboxes = list(map(int, input().split()))\ntmp_a, tmp_b = boxes[1], boxes[0]\nboxes[0], boxes[1] = tmp_a, tmp_b\ntmp_a, tmp_c = boxes[2], boxes[0]\nboxes[0], boxes[2] = tmp_a, tmp_c\nprint(boxes)', '# coding: utf-8\nboxes = list(map(int, input().split()))\ntmp_a, tmp_b = boxes[1], boxes[0]\nboxes[0], boxes[1] = tmp_a, tmp_b\ntmp_a, tmp_c = boxes[2], boxes[0]\nboxes[0], boxes[2] = tmp_a, tmp_c\nprint(boxes[0], boxes[1], boxes[2])']
|
['Wrong Answer', 'Accepted']
|
['s012860531', 's282476938']
|
[3060.0, 3060.0]
|
[17.0, 18.0]
|
[204, 227]
|
p02717
|
u969081133
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
|
['s985535786', 's163318138']
|
[8896.0, 9072.0]
|
[27.0, 26.0]
|
[43, 45]
|
p02717
|
u969848070
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
|
['s341272927', 's618140129']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[48, 50]
|
p02717
|
u970082363
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(x) for x in input().split())\nprint(" ".join([z,x,y]))', 'x,y,z = (str(x) for x in input().split())\nprint(" ".join([z,x,y]))']
|
['Runtime Error', 'Accepted']
|
['s624045246', 's907759180']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[66, 66]
|
p02717
|
u970490119
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['X, Y, Z = map(int, input().split())\nprint(Z, Y, X)', 'X, Y, Z = map(int, input().split())\nprint(Z, X, Y)']
|
['Wrong Answer', 'Accepted']
|
['s638194001', 's360844154']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[50, 50]
|
p02717
|
u976320027
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['temp=A\nA=B\nB=temp\n\ntemp=A\nA=C\nC=temp\n\nprint(A,B,C)', 'A,B,C=input().split()\ntemp=A\nA=B\nB=temp\n\ntemp=A\nA=C\nC=temp\n\nprint(A,B,C)']
|
['Runtime Error', 'Accepted']
|
['s497400802', 's876060248']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[50, 72]
|
p02717
|
u982152304
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find the content of each box afterward. * Swap the contents of the boxes A and B * Swap the contents of the boxes A and C
|
['print(0)', "N,K = map(int, input().split(' '))\nx = N % K\nx1 = K - x\nif x > x1:\n print(x1)\nelse:\n print(x)", "N,K = map(int, input().split(' '))\nx = N % K\nx1 = K - x\nif x > x1:\n print(x1)\nelse:\n print(x)", "X, Y, Z = map(int, input().split(' '))\nprint(Z,X,Y)"]
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s010052850', 's752585197', 's969324038', 's383541251']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[8, 95, 95, 51]
|
p02717
|
u983327168
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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()))\ncount=0\nfor i in range(int(n)):\n if a[i]<sum(a)//(4*int(m)):\n count=count\n else:\n count+=1\nif count>=int(m):\n print("Yes")\nelse:\n print("No")\n ', 'x,y,z=map(str,input().split())\nprint(z+" "+x+" "+y)\n']
|
['Runtime Error', 'Accepted']
|
['s194560567', 's649855519']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[238, 52]
|
p02717
|
u986313020
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nXYZ = input().split()\nXYZ[0],XYZ[1],XYZ[2] = XYZ[1],XYZ[2],XYZ[0]\nprint(' '.join(map(str, XYZ)))\n", "#coding: utf-8\nXYZ = input().split()\nXYZ[0],XYZ[1],XYZ[2] = XYZ[2],XYZ[0],XYZ[1]\nprint(' '.join(map(str, XYZ)))\n"]
|
['Wrong Answer', 'Accepted']
|
['s091112971', 's388323775']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[112, 112]
|
p02717
|
u987326700
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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(" "))\nprint("{} {} {}".format(b,a,c))\nprint("{} {} {}".format(c,b,a))', 'a,b,c = map(int,input().split())\nprint("{} {} {}".format(b,a,c))\nprint("{} {} {}".format(c,b,a))', 'A,B,C = map(int,input().split())\n\nprint(B,A,C)\nprint(C,B,A)', 'a,b,c = map(int,input().split())\nprint("{} {} {}".format(c,a,b))']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s007167777', 's511280334', 's593070198', 's696494923', 's508444943']
|
[2940.0, 3060.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 19.0, 17.0, 17.0, 18.0]
|
[65, 99, 96, 59, 64]
|
p02717
|
u988004923
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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([y,z,x]))', 'x, y, z = input().split()\nprint(" ".join([z,x,y]))']
|
['Wrong Answer', 'Accepted']
|
['s052214066', 's414871501']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[50, 50]
|
p02717
|
u991269553
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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):\n x = q.popleft()\n if x % 10 != 0:\n q.append(10 * x + x % 10 - 1) \n\n q.append(10 * x + x % 10) \n\n if x % 10 != 9:\n q.append(10 * x + x % 10 + 1) \n \nprint(x)', "x,y,z = map(int,input().split())\nprint('{0} {1} {2}'.format(z,x,y))"]
|
['Runtime Error', 'Accepted']
|
['s093566318', 's574501313']
|
[3316.0, 2940.0]
|
[20.0, 18.0]
|
[298, 67]
|
p02717
|
u992465933
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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 x,y,z = map(int, input().split())\n print(z,y,y)\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n x,y,z = map(int, input().split())\n print(z,y,x)\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n x,y,z = map(int, input().split())\n print(z,x,y)\n\n\nif __name__ == '__main__':\n main()\n"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s124612739', 's933489794', 's637086000']
|
[3060.0, 2940.0, 2940.0]
|
[18.0, 18.0, 17.0]
|
[107, 107, 107]
|
p02717
|
u992951814
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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,c\na,c = c,a\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']
|
['s364191407', 's022653395']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[65, 65]
|
p02717
|
u997927785
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\ntotalVote = sum(A)\nborder = totalVote / (4 * M)\nA.sort(reverse = True)\n\nif A[M-1] >= border:\n print("Yes")\nelse:\n print("No")\n', 'X, Y, Z = map(int, input().split())\n\nx = str(X)\ny = str(Y)\nz = str(Z)\nprint(Z + " " + X + " " + Y)', 'X, Y, Z = map(int, input().split())\n\nprint(Z + " " + X + " " + Y)', 'X, Y, Z = map(int, input().split())\n\nx = str(X)\ny = str(Y)\nz = str(Z)\nprint(z + " " + x + " " + y)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s096375678', 's536815813', 's776064250', 's217834648']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[202, 98, 65, 98]
|
p02717
|
u998867748
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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\nx = [n-k*i for i in range(n//k+2)]\nx[-1] = abs(x[-1])\nprint(min(x))', 'x,y,z = map(int,input().split())\n\nprint(z,x,y)']
|
['Runtime Error', 'Accepted']
|
['s499130115', 's805875425']
|
[9044.0, 9100.0]
|
[21.0, 22.0]
|
[99, 46]
|
p02717
|
u999983491
| 2,000
| 1,048,576
|
We have three boxes A, B, and C, each of which contains an integer. Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively. We will now do the operations below in order. Find 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']
|
['s813621885', 's376356353']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[50, 50]
|
p02718
|
u000037600
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['a,b=map(int,input().split())\nc=list(map(int,input().split()))\nd=sum(c)/(4*b)\nc=[i for i in c if i<d]\nif len(c)>0:\n print("No")\nelse:\n print("Yes")', 'a,b=map(iNt,input().split())\nc=list(map(int,input().split()))\nc=[i for i in c if i>a/(4*b)]\nif len(c)<b:\n print("No")\nelse:\n print("Yes")', 'a,b=map(int,input().split())\nc=list(map(int,input().split()))\nd=sum(c)/(4*b)\ne=[i for i in c if i<d]\nif len(e)>a-b:\n print("No")\nelse:\n print("Yes")']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s696683467', 's978887868', 's743274430']
|
[9168.0, 9036.0, 9044.0]
|
[29.0, 23.0, 25.0]
|
[148, 139, 150]
|
p02718
|
u000770457
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["n,m=map(int,input().split())\na=list(map(int,input().split()))\na.sort()\ns=0\nb=True\nfor i in a:\n s+=i\n \nfor i in range(0,m):\n if a[i]>=s/4/m:\n b=True\n else:\n b=False\n \nif b:\n print('Yes')\nelse:\n print('No')", "n,m=map(int,input().split())\na=list(map(int,input().split()))\na.sort()\ns=0\nb=True\nfor i in a:\n s+=a\n \nfor i in range(0,m):\n if a[i]>=s/4/m:\n b=True\n else:\n b=False\n \nif b:\n print('Yes')\nelse:\n print('No')", "n,m=map(int,input().split())\n\na=list(map(int,input().split()))\n\nsum=0\ncount=0\nfor i in a:\n sum+=a\n \nfor i in a:\n if a>=(sum/4*m):\n count+=1\n \nif(count>=m):\n print('Yes')\nelse:\n print('No')", "n,m=map(int,input().split())\na=list(map(int,input().split()))\na.sort()\ns=0\nb=True\nfor i in a:\n s+=i\n \nfor i in range(0,m):\n if a[i]>=s/4/m:\n b=True\n else:\n b=False\n break\n \nif b:\n print('Yes')\nelse:\n print('No')", "n,m=map(int,input().split())\na=list(map(int,input().split()))\n\ncount=0\nsum=0\n\nfor i in a:\n sum+=i\n \nfor i in a:\n if a>=(sum/4*m):\n count+=1\n\nif count>=m:\n print('Yes')\nelse:\n print('No')", "n,m=map(int,input().split())\na=list(map(int,input().split()))\na.sort(reverse=True)\ns=0\nb=True\nfor i in a:\n s+=i\n print(a)\n \nfor i in range(0,m):\n if a[i]>=s/4/m:\n b=True\n else:\n b=False\n \nif b:\n print('Yes')\nelse:\n print('No')", "n,m=map(int,input().split())\na=list(map(int,input().split()))\na.sort(reverse=True)\ns=0\nb=True\nfor i in a:\n s+=i\n\n \nfor i in range(0,m):\n if a[i]>=s/4/m:\n b=True\n else:\n b=False\n \nif b:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s262704058', 's369142786', 's499360137', 's516369308', 's634492033', 's829609412', 's397461911']
|
[3060.0, 3064.0, 3060.0, 3064.0, 3060.0, 3064.0, 3064.0]
|
[17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0]
|
[219, 219, 199, 229, 194, 242, 232]
|
p02718
|
u001495709
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["n, m = map(int, input().split())\na = list(map(int, input().split()))\na.sort(reverse=True)\n\nans = []\nfor i in range(m+1) :\n if a[i] < sum(a) / (4 * m) :\n continue\n else :\n ans.append(a[-1])\n\nif len(ans) == m :\n print('Yes')\nelse :\n print('No')", "n, m = map(int, input().split())\na = list(map(int, input().split()))\na.sort(reverse=True)\nprint(a)\nans = []\nfor i in range(m+1) :\n if a[i] < sum(a) / (4 * m) :\n continue\n else :\n ans.append(a[-1])\n\nif len(ans) == m :\n print('Yes')\nelse :\n print('No')", "n, m = map(int, input().split())\na = list(map(int, input().split()))\na.sort(reverse=True)\n\nans = []\nfor i in range(m) :\n if a[i] < sum(a) / (4 * m) :\n continue\n else :\n ans.append(a[-1])\n\nif len(ans) == m :\n print('Yes')\nelse :\n print('No')"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s605994814', 's933883466', 's518838374']
|
[3060.0, 3064.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[252, 260, 250]
|
p02718
|
u004482945
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["category_number, popular_product_number = input().split()\nproduct_list = input().split()\nvotes_number = sorted(product_list)[-popular_product_number]\nborder = sum(product_list)/4/popular_product_number\nif votes_number < border:\n print('No')\nelse:\n print('Yes')", "category_number, popular_product_number = input().split()\nproduct = input().split()\nproduct_list = [int(i) for i in product]\nvotes_number = sorted(product_list)[-int(popular_product_number)]\nborder = sum(product_list)/4/int(popular_product_number)\nif votes_number < border:\n print('No')\nelse:\n print('Yes')"]
|
['Runtime Error', 'Accepted']
|
['s366829066', 's635474112']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[262, 308]
|
p02718
|
u005317312
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['import numpy as np\nimport math as mt\nN,M=map(int, input().split())\nA=list(map(int,input().split()))\nboader=1/(4*M)\nA.sort(reverse=True)\nfor i in range(0,M):\n print(i)\n if A[i]<sum(A)*(1/(4*M)):\n print("No")\n break\n elif i==M-1:\n print("Yes")\nprint(A)', 'import numpy as np\nimport math as mt\nN,M=map(int, input().split())\nA=list(map(int,input().split()))\nboader=1/(4*M)\nA.sort(reverse=True)\nfor i in range(0,M):\n if A[i]<sum(A)*(1/(4*M)):\n print("No")\n break\n elif i==M-1:\n print("Yes")\nprint(A)\n\n\n\n\n\n\n\n', 'import numpy as np\nimport math as mt\nN,M=map(int, input().split())\nA=list(map(int,input().split()))\nboader=1/(4*M)\nA.sort(reverse=True)\nfor i in range(0,M):\n if A[i]<(sum(A)*(1/(4*M))):\n print("No")\n break\n elif i==M-1:\n print("Yes")\nprint(A)', 'import numpy as np\nimport math as mt\nN,M=map(int, input().split())\nA=list(map(int,input().split()))\nboader=1/(4*M)\nA.sort(reverse=True)\nfor i in range(0,M):\n if A[i]<(sum(A)*(1/(4*M))):\n print("No")\n break\n elif i==M-1:\n print("Yes")']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s061035591', 's445556921', 's865338861', 's653750185']
|
[12508.0, 12504.0, 12504.0, 12500.0]
|
[150.0, 149.0, 152.0, 148.0]
|
[280, 275, 269, 260]
|
p02718
|
u011453891
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n, m = map(int, input().split())\nA = list(map(int, input().split()))\nb = sum(A)/(4*m)\na = 0\nprint(b)\nfor i in range(n):\n if A[i] >= b:\n a += 1\n\nif a >= m:\n print("Yes")\nelse:\n print("No")', 'n, m = map(int, input().split())\nA = list(map(int, input().split()))\nb = sum(A)/(4*m)\na = 0\n#print(b)\nfor i in range(n):\n if A[i] >= b:\n a += 1\n\nif a >= m:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s315687955', 's879661296']
|
[9104.0, 8972.0]
|
[22.0, 24.0]
|
[193, 194]
|
p02718
|
u014333473
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["n,m=map(int,input().split());a=sorted(map(int,input().split()),reverse=True)\nprint('NYOE S'[all([1 if a[i]>=sum(a)/(4*m) else 0 for i in range(m)])::2])", "n,m=map(int,input().split());a=sorted(map(int,input().split()),reverse=True)\nprint('NYoe s'[all([1 if i>=sum(a)/(4*m) else 0 for i in a[:m]])::2])"]
|
['Wrong Answer', 'Accepted']
|
['s671998181', 's024435133']
|
[9208.0, 9136.0]
|
[25.0, 28.0]
|
[152, 146]
|
p02718
|
u015845133
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['def calc():\n summ = sum(A)\n low = summ / (4*M)\n\n num = len([i for i in A if low <= i])\n\n if M > num:\n print ("No")\n else:\n print ("Yes")\n\nN, M = map(int,input().split())\nA = list(map(int, input.split()))\n\ncalc()\n', '#def calc():\n \n #print(summ)\n \n #low = summ / (4*M)\n #print(low)\n\n \n #print(newlist)\n\n \n #print(num)\n\n #if M <= num:\n #print ("Yes")\n #else:\n #print ("No")\n\nN, M = map(int,input().split())\nA = list(map(int, input.split()))\n\n#N, M = 5, 2\n#A = [110, 2, 20, 10, 0]\n#calc()\n\nS = sum(A)\ncnt = 0\nfor i in A:\n if i >= S / (4*M):\n cnt += 1\nif cnt >= M:\n print("Yes")\nelse:\n print("No")', 'def calc():\n summ = sum(A)\n #print(summ)\n \n low = summ / (4*M)\n #print(low)\n\n newlist = [i for i in A if i >= low]\n #print(newlist)\n\n num = len(newlist)\n #print(num)\n\n if M <= num:\n print ("Yes")\n else:\n print ("No")\n\nN, M = map(int,input().split())\nA = list(map(int, input.split()))\n\n#N, M = 5, 2\n#A = [110, 2, 20, 10, 0]\ncalc()\n', 'def calc():\n summ = sum(A)\n #print(summ)\n \n low = summ / (4*M)\n #print(low)\n\n newlist = [i for i in A if low <= i]\n #print(newlist)\n\n num = len(newlist)\n #print(num)\n\n if M > num:\n print ("No")\n else:\n print ("Yes")\n\nN, M = map(int,input().split())\nA = list(map(int, input.split()))\n\n\n#N, M = 10, 10\n#A = list(range(1, 11))\ncalc()\n', 'def calc():\n summ = sum(A)\n low = summ * 1 / 4*M\n high = 1000\n\n newlist = [i for i in A if low <= i < high]\n\n lot = len(newlist)\n\n if M > lot:\n print ("No")\n else:\n print ("Yes")\n\nN, M = map(int,input().split())\nA = list(map(int, input.split()))\n\n\n#N, M = 10, 2\n#A = list(range(1, 12))\ncalc()', 'def calc():\n summ = sum(A)\n low = summ / (4*M)\n high = 1000\n\n num = len([i for i in A if low <= i])\n #print(num)\n\n if M > num:\n print ("No")\n else:\n print ("Yes")\n\nN, M = map(int,input().split())\nA = list(map(int, input.split()))\n\n\n#N, M = 5, 2\n#A = list(range(1, 6))\ncalc()', 'def calc():\n summ = sum(A)\n low = summ / (4*M)\n high = 1000\n\n newlist = [i for i in A if low <= i < high]\n #print(newlist)\n\n lot = len(newlist)\n\n if M > lot:\n print ("No")\n else:\n print ("Yes")\n\nN, M = map(int,input().split())\nA = list(map(int, input.split()))\n\n\n#N, M = 10, 2\n#A = list(range(1, 11))\ncalc()\n', 'def calc():\n summ = sum(A)\n low = summ * 1 / 4*M\n high = 1000\n\n newlist = [i for i in A if low <= i < high]\n\n lot = len(newlist)\n\n if M < lot:\n print ("No")\n else:\n print ("Yes")\n\nN, M = map(int,input().split())\nA = list(map(int, input.split()))\n\ncalc()\n', 'def calc():\n summ = sum(A)\n low = summ / (4*M)\n newlist = [i for i in A if i >= low]\n num = len(newlist)\n \n if M <= num:\n print ("Yes")\n else:\n print ("No")\n\nN, M = map(int,input().split())\nA = list(map(int,input().split()))\n\n#N, M = 5, 2\n#A = [110, 2, 20, 10, 0]\ncalc()']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s162347480', 's207445167', 's347276587', 's572287198', 's582978409', 's678256182', 's740892623', 's822282872', 's832928331']
|
[2940.0, 3060.0, 3064.0, 2940.0, 3060.0, 2940.0, 3060.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
|
[242, 511, 378, 379, 328, 310, 347, 290, 306]
|
p02718
|
u018469350
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n, m = map(int, input().split())\na = list(map(int, input().split()))\n\na.sort(reversed=True)\nif a[m - 1] >= sum(a) / (4 * m):\n print("Yes")\nelse:\n print("No")', 'n, m = map(int, input().split())\na = list(map(int, input().split()))\n\na.sort(reverse=True)\nif a[m - 1] >= sum(a) / (4 * m):\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s333343960', 's841903236']
|
[3060.0, 2940.0]
|
[18.0, 18.0]
|
[163, 162]
|
p02718
|
u018679195
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n, m = list(map(int, input().split()))\na = list(map(int, input().split()))\nsumA = sum(a)\n\nsumBy4 = sumA/(4*m)\n\ncount = 0\n\nfor i in range(n):\n if(a[i] >= sumBy4):\n count += 1\n\nif(count > m):\n print("YES")\n\nelse:\n print("NO")', "n,m = map(int,input().split())\narr = list(map(int,input().split()))\n\narr.sort()\nsum_arr = sum(arr)\nflag = True\n\nfor i in range(m):\n if arr[i] < (sum_arr/(4*m)):\n flag = False\n break\nif flag:\n print('Yes')\nelse:\n print('No')", 'n=list(map(int,input().split()))\na=list(map(int,input().split()))\ns=sum(a)\nc=s/(4*n[1])\nx=0\nfor i in range(0,n[0]):\n if a[i]>=c:\n x=x+1\n else:\n continue\nif x>=n[1]:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s520342677', 's600051333', 's943271197']
|
[3064.0, 3060.0, 3064.0]
|
[17.0, 20.0, 19.0]
|
[239, 246, 223]
|
p02718
|
u018771977
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["#! env/bin/local python3\n# -*- coding:utf-8 -*-\n\nis_first = False\nwhile True:\n try:\n if is_first:\n n, m = (int(i) for i in input().split())\n is_first = False\n else:\n arr = (int(i) for i in input().split())\n except EOFError:\n break\n\ntotal_vote = sum(arr)\nsorted_arr = sorted(arr)\n\nlist_up_arr = sorted_arr[-1: -m]\n\nflag = False\nfor l in list_up_arr:\n if l >= 1 / (4 * m):\n flag = True\n\nprint('Yes' if flag else 'No')", "#! env/bin/local python3\n# -*- coding:utf-8 -*-\n\nis_first = True\nwhile True:\n try:\n if is_first:\n n, m = [int(i) for i in input().split()]\n is_first = False\n else:\n arr = [int(i) for i in input().split()]\n except EOFError:\n break\n\ntotal_vote = sum(arr)\nsorted_arr = sorted(arr, reverse=True)\n\nlist_up_arr = sorted_arr[: m]\n\nflag = True\nfor l in list_up_arr:\n if l < 1 / (4 * m) * total_vote:\n flag = False\n\nprint('Yes' if flag else 'No')"]
|
['Runtime Error', 'Accepted']
|
['s351206605', 's829239831']
|
[3064.0, 3064.0]
|
[17.0, 17.0]
|
[486, 508]
|
p02718
|
u021763820
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['# -*- coding: utf-8 -*-\nN, M = map(int, input().split())\nA = list(map(int, input().split()))\ncnt = 0\nfor Ai in A:\n if (sum(A))*(1/(4*M)) <= Ai:\n cnt += 1\nif cnt == M:\n print("Yes")\nelse:\n print("No")', '# -*- coding: utf-8 -*-\nN, M = map(int, input().split())\nA = list(map(int, input().split()))\ncnt = 0\nfor Ai in A:\n k = 1/(4*M)\n if (sum(A))*k <= Ai:\n cnt += 1\nif cnt >= M:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s899792252', 's540246371']
|
[3060.0, 3060.0]
|
[18.0, 18.0]
|
[215, 223]
|
p02718
|
u022345222
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n, m = map(int, input().split())\narray=list(map(int, input().split()))\nall = sum(array)\nflag = 0\nborder = all/(4*m)\nif array[n-1] >= border:\n print("Yes")\nelse:\n print("No")', 'n, m = map(int, input().split())\narray=list(map(int, input().split()))\nall = sum(array)\nflag = 0\nborder = all/(4*m)\nfor i in range(n):\n if array[i-1] >= border:\n flag += 1\n \nif flag >= m:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s140697812', 's038154628']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[175, 229]
|
p02718
|
u023185908
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["#import math\nn,m = map(int, input().split());\nl = list(map(int, input().split()))\n#print(m)\n#print(n)\n#print(l)\nnum = 0;\nth = sum(l)/(4*m);\nprint(th);\nfor i in range(len(l)):\n if l[i] >= th:\n num += 1;\nif num >= m:\n print('Yes');\nelse:\n print('No');", "n,m = map(int, input().split());\nl = list(map(int, input().split()))\n\nnum = 0;\nth = sum(l)/(4*m);\nfor i in range(len(l)):\n if l[i] >= th:\n num += 1;\nif num >= m:\n print('Yes');\nelse:\n print('No');\n"]
|
['Wrong Answer', 'Accepted']
|
['s555565244', 's628657177']
|
[3064.0, 3060.0]
|
[17.0, 18.0]
|
[265, 213]
|
p02718
|
u023762741
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['# coding: utf-8\n# Your code here!\n\ninput_line = input()\nLine = input_line.split()\nLine = [int(s) for s in Line]\n\ninput_line = input()\nLine2 = input_line.split()\nLine2 = [int(s) for s in Line2]\n\ntokuhyou = sum(Line2) / 4 / Line[1]\n\nLine2.sort(reverse=True)\n\nprint(Line2[Line[1]-1],tokuhyou)\n\n\nif Line2[Line[1]-1] >= tokuhyou:\n print("Yes")\nelse:\n print("No")', '# coding: utf-8\n# Your code here!\n\ninput_line = input()\nLine = input_line.split()\nLine = [int(s) for s in Line]\n\ninput_line = input()\nLine2 = input_line.split()\nLine2 = [int(s) for s in Line2]\n\ntokuhyou = sum(Line2) / 4 / Line[1]\n\nLine2.sort(reverse=True)\n\n\n\n\nif Line2[Line[1]-1] >= tokuhyou:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s421715538', 's673418495']
|
[3064.0, 3064.0]
|
[17.0, 18.0]
|
[363, 365]
|
p02718
|
u024550857
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['import numpy as np\n\ntmp = list(map(int, input().split()))\n\nN = tmp[0]\nM = tmp[1]\n\ni = list(map(int, input().split()))\n\ni = np.array(i)\n\ni.reverse()\n\nsouwa = sum(i)\n\nif i[M] < (souwa * (1/(4*M))):\n print("Yes")\nelse:\n print("No")\n\n\n\n', 'import numpy as np\n\ntmp = list(map(int, input().split()))\n\nN = tmp[0]\nM = tmp[1]\n\ni = list(map(int, input().split()))\n\ni = np.array(i)\n\ni = np.sort(i)[::-1]\n\nsouwa = np.sum(i)\n\nif i[M-1] < (souwa * (1/(4*M))):\n print("No")\nelse:\n print("Yes")\n\n\n\n']
|
['Runtime Error', 'Accepted']
|
['s908922382', 's865640827']
|
[21520.0, 21408.0]
|
[1435.0, 1802.0]
|
[292, 306]
|
p02718
|
u026545977
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['def readInts():\n return list(map(int, input(), split()))\n\nn, m = readInts()\na = readInts()\ns = sum(a)\ncnt = 0\nfor i in range(n):\n if a[i]*4*m >=s:\n cnt +=1\n \nif cnt >= m: print("Yes")\n else: print("No")\n ', 'def readInts():\n return list(map(int, input(), split()))\n\nn, m = readInts()\na = readInts()\ns = sum(a)\ncnt = 0\nfor i in range(n):\n if a[i]*4*m >=s:\n cnt +=1\n \nif cnt >= m:\n print("Yes")\nelse:\n print("No")\n \n', 'def readInts():\n return list(map(int, input().split()))\n\nn, m = readInts()\na = readInts()\ns = sum(a)\ncnt = 0\nfor i in range(n):\n if a[i]*4*m >=s:\n cnt +=1\n \nif cnt >= m:\n print("Yes")\nelse:\n print("No")\n \n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s281255967', 's905634349', 's100914951']
|
[2940.0, 3060.0, 3060.0]
|
[17.0, 19.0, 18.0]
|
[214, 217, 216]
|
p02718
|
u028489522
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['s = input().split()\ni = s[0]\nm = s[1]\nj = 0\nel = input().split()\nfor p in el:\n if int(p) < 1 / (4 * m):\n j = 1\n \nif j == 0:\n print("Yes")\nelse:\n print("No")', 's = input().split()\ni = s[0]\nm = s[1]\nj = 0\nel = input().split()\nfor p in el:\n if p < 1 / (4 * m):\n j = 1\n\nif j == 0:\n print("Yes")\nelse:\n print("No")', 's = input().split()\ni = s[0]\nm = s[1]\nj = 0\nel = input().split()\nfor p in el:\n if int(p) < 1 / (4 * m):\n j = 1 \nif j == 0:\n print("Yes")\nelse:\n print("No")', 's = input().split()\ni = s[0]\nm = int(s[1])\ncount = 0\nsun = 0\nel = input().split()\nfor p in el:\n sun += int(p)\nfor k in el:\n if int(k) >= sun / (4 * m):\n count += 1\nif count >= m:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s054634601', 's151985715', 's234750393', 's981799318']
|
[3060.0, 3060.0, 2940.0, 3064.0]
|
[18.0, 17.0, 17.0, 17.0]
|
[166, 156, 169, 230]
|
p02718
|
u030278108
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n, m = map(int, input().split())\nA = list(map(int, input().split()))\n\nA.sort(reverse=True)\n\nif A[m+1] >= (sum(A) // (4 * m)):\n print("Yes")\nelse:\n print("No")', 'n, m = map(int, input().split())\nA = list(map(int, input().split()))\n\nA.sort(reverse=True)\n\nif A[m-1] >= (sum(A)/(4*m)):\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s565201285', 's093249835']
|
[3060.0, 3060.0]
|
[18.0, 17.0]
|
[164, 159]
|
p02718
|
u031722966
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['def main():\n N,M = map(int,input().split())\n A = list(map(int,input().split()))\n G = sum(A)\n list.sort(A, reverse=True)\n i = 0\n while i < M:\n if A[i] / G > 1 / 4 * M:\n return "No"\n break\n i += 1\n return "Yes"\nprint(main())', 'def main():\n N,M = map(int,input().split())\n A = list(map(int,input().split()))\n G = sum(A)\n list.sort(A, reverse=True)\n i = 0\n while i < M:\n if A[i] / G < 1 / (4 * M):\n return "No"\n break\n i += 1\n return "Yes"\nprint(main())']
|
['Wrong Answer', 'Accepted']
|
['s431094887', 's716103997']
|
[3064.0, 3064.0]
|
[17.0, 17.0]
|
[279, 281]
|
p02718
|
u032222383
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n,m=map(int,input().split())\na=list(map(int,input().split()))\na.sort()\nif a[-m+1]<(sum(a)/(4*m)):\n print("No")\nelse:\n print("Yes")', 'n,m=map(int,input().split())\na=list(map(int,input().split()))\na.sort()\nif a[-m]<(sum(a)/(4*m)):\n print("No")\nelse:\n print("Yes")']
|
['Wrong Answer', 'Accepted']
|
['s460420575', 's629098045']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[136, 134]
|
p02718
|
u033178473
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n, m = list(map(int, input().split()))\nv = list(map(int, input().split()))\nt = sum(v)/(4*m)\n\nct = 0\nfor i in v:\n if v>t:\n ct += 1\n \nif ct >= m:\n print("Yes")\nelse:\n print("No")', 'n, m = list(map(int, input().split()))\nv = list(map(int, input().split()))\nt = sum(v)/(4*m)\n\nct = 0\nfor i in v:\n if i>=t:\n ct += 1\n \nif ct >= m:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s130010892', 's159286351']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[199, 200]
|
p02718
|
u038136206
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n, m = map(int, input().split())\na = sorted(list(map(int, input().split())), reverse=True)\nprint(a)\nif a[m-1] >= sum(a) / (4 * m):\n print("Yes")\nelse:\n print("No")\n', 'n, m = map(int, input().split())\na = sorted(list(map(int, input().split())), reverse=True)\nif a[m-1] >= sum(a) / (4 * m):\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s427075839', 's893257256']
|
[9096.0, 9160.0]
|
[30.0, 33.0]
|
[170, 161]
|
p02718
|
u039162142
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["\n\nn, m = map(int, input().split())\n\narr = list(map(int, input().split()))\n\nvotes = sum(arr)\n\nc = n\n\nfor i in arr:\n if i < votes / (4 * m):\n c -= 1\n\nif c >= m:\n print ('YES')\nelse:\n print ('NO')", "\n\nn, m = map(int, input().split())\n\narr = list(map(int, input().split()))\n\nvotes = sum(arr)\n\nc = n\n\nfor i in arr:\n if i < votes / (4 * m):\n c -= 1\n\nif c >= m:\n print ('Yes')\nelse:\n print ('No')"]
|
['Wrong Answer', 'Accepted']
|
['s876394170', 's599486386']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[209, 209]
|
p02718
|
u040141413
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n,m=map(int,input().split())\na = list(map(int,input().split()))\ncnt_border = 0\n\nfor i in range(len(a)):\n if a[i] > sum(a)/(4*m):\n cnt_border +=1\n \nprint(cnt_border)\n\nif cnt_border >= m:\n print("Yes")\nelse:\n print("No")', 'n,m=map(int,input().split())\na = list(map(int,input().split()))\ncnt_border = 0\n\nfor i in range(len(a)):\n if a[i] > sum(a)/(4*m):\n cnt_border +=1\n \nprint(cnt_border)\n\nif cnt_border >= m:\n print("Yes")\nelse:\n print("No")', 'n,m=map(int,input().split())\na = list(map(int,input().split()))\ncnt_border = 0\n\nfor i in range(len(a)):\n if a[i] >= sum(a)/(4*m):\n cnt_border +=1\n\nif cnt_border >= m:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s267915966', 's296315332', 's312347641']
|
[3060.0, 3060.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[241, 241, 215]
|
p02718
|
u042558137
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["N, M = map(int, input().split())\nA = list(map(int, input().split()))\nF = 0\ntrigger = 1 / (4 * M)\n \nfor i in range(len(A)):\n if A[i]/sum(A) < trigger:\n F = F + 1\n \nif F < M:\n print('Yes')\nelse:\n print('No')", "N, M = map(int, input().split())\nA = list(map(int, input().split()))\nF = 0\ntrigger = 1 / (4 * M)\n \nfor i in range(len(A)):\n if A[i]/sum(A) < trigger:\n F = F + 1\n \nif N - F >= M:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s040014257', 's235496782']
|
[3060.0, 3060.0]
|
[18.0, 17.0]
|
[228, 233]
|
p02718
|
u044459372
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["n, m = map(int, input().split())\na = list(map(int, input().split()))\na.sort(reverse = True)\nprint('Yes' if a[m-1] >= 1/4M else 'No')\n", "n, m = map(int, input().split())\na = list(map(int, input().split()))\na.sort(reverse = True)\nprint('Yes' if a[m-1] >= sum(a)/4/m else 'No')"]
|
['Runtime Error', 'Accepted']
|
['s913906973', 's570752191']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[133, 138]
|
p02718
|
u045529647
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['def popularVote():\n n, m = list(map(int, input().split()))\n item_votes = list(map(int, input().split()))\n total = sum(item_votes)\n\n selected = []\n isSelected = False\n\n req = 1 / (4 * m)\n for item in item_votes:\n if item / total >= req:\n selected.append(item)\n\n if len(selected) == n:\n isSelected = True\n print("Yes")\n break\n\n if not isSelected:\n print("No")\n\n\npopularVote()', 'def popularVote():\n\tn, m = list(map(int, input().split()))\n item_votes = list(map(int, input().split()))\n total = sum(item_votes)\n\n selected = []\n isSelected = False\n\n req = 1 / (4 * m)\n for item in item_votes:\n if item / total >= req:\n selected.append(item)\n\n if len(selected) == m:\n isSelected = True\n print("Yes")\n break\n\n if not isSelected:\n print("No")\n\n\npopularVote()', 'def popularVote():\n m, n = list(map(int, input().split()))\n item_votes = list(map(int, input().split()))\n total = sum(item_votes)\n\n selected = []\n\n req = 1 / (4 * m)\n for item in item_votes:\n if item / total >= req:\n selected.append(item)\n\n if len(selected) == n:\n print("yes")\n return\n\n print("no")\n \npopularVote()', ' n, m = list(map(int, input().split()))\n item_votes = list(map(int, input().split()))\n total = sum(item_votes)\n\n selected = []\n isSelected = False\n\n req = 1 / (4 * m)\n for item in item_votes:\n if item / total >= req:\n selected.append(item)\n\n if len(selected) == m:\n isSelected = True\n print("Yes")\n break\n\n if not isSelected:\n print("No")\n\n\npopularVote()', 'def popularVote():\n n, m = list(map(int, input().split()))\n item_votes = list(map(int, input().split()))\n total = sum(item_votes)\n\n selected = []\n isSelected = False\n\n req = 1 / (4 * m)\n for item in item_votes:\n if item / total >= req:\n selected.append(item)\n\n if len(selected) == m:\n isSelected = True\n print("Yes")\n break\n\n if not isSelected:\n print("No")\n\n\npopularVote()']
|
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s423828322', 's536989224', 's748649001', 's817497703', 's970502487']
|
[3064.0, 2940.0, 3060.0, 2940.0, 3064.0]
|
[17.0, 17.0, 18.0, 17.0, 18.0]
|
[462, 459, 386, 443, 462]
|
p02718
|
u046158516
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['N,M= map(int, raw_input().split())\nA=list(map(int, raw_input().split()))\nA.sort()\nA.reverse()\nK=sum(A)\nfor i in range(0,N):\n if A[i]>K/(4*M):\n continue\n else:\n answer=i+1\n break\nif answer>=M:\n print("Yes")\nelse:\n print("No")\n', 'A=list(map(int, input().split()))\nA.sort()\nA.reverse()\nK=sum(A)\nanswer=0\nbreakflag=0\nfor i in range(0,N):\n if A[i]*M*4>=K:\n if i==N-1:\n breakflag=1\n continue\n else:\n answer=i\n break\nif breakflag==1:\n answer=N\nif answer>=M:\n print("Yes")\nelse:\n print("No")', 'N,M= map(int, input().split())\nA=list(map(int, input().split()))\nA.sort()\nA.reverse()\nK=sum(A)\nanswer=0\nbreakflag=0\nfor i in range(0,N):\n if A[i]*M*4>=K:\n \tif i==N-1:\n \tbreakflag=1\n \tcontinue\n else:\n \tanswer=i\n \tbreak\nif breakflag==1:\n answer=N\nif answer>=M:\n print("Yes")\nelse:\n print("No")', 'N,M=map(int, input().split())\nA=list(map(int, input().split()))\nA.sort()\nA.reverse()\nK=sum(A)\nanswer=0\nbreakflag=0\nfor i in range(0,N):\n if A[i]*M*4>=K:\n if i==N-1:\n breakflag=1\n continue\n else:\n answer=i\n break\nif breakflag==1:\n answer=N\nif answer>=M:\n print("Yes")\nelse:\n print("No")\n']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s015553742', 's654512916', 's655712481', 's998896541']
|
[2940.0, 3064.0, 2940.0, 3060.0]
|
[18.0, 18.0, 17.0, 17.0]
|
[259, 282, 330, 313]
|
p02718
|
u047012797
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["nm = [int(i) for i in input().split()]\na = [int(i) for i in input().split()]\n\nn = nm[0]\nm = nm[1]\n\na_s = sorted(a)[::-1]\nif a_s[m-1] < sum(a)/(4*m):\n print('No')\nelse:\n print('Yes')vv", "nm = [int(i) for i in input().split()]\na = [int(i) for i in input().split()]\n\nn = nm[0]\nm = nm[1]\n\na_s = sorted(a)[::-1]\nif a_s[m-1] < sum(a)/(4*m):\n print('No')\nelse:\n print('Yes')"]
|
['Runtime Error', 'Accepted']
|
['s077822770', 's751354481']
|
[2940.0, 3060.0]
|
[18.0, 17.0]
|
[185, 183]
|
p02718
|
u048915776
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n,m=map(int, input().split())\na=list(map(int, input().split()))\ng=0\ncount=0\nfor i in a:\n g+=i\nb = float(1/(4*m))\nfor i in a:\n t = float(i/g)\n if t>b:\n count+=1\n if count==m:\n print("yes")\n exit()\nif count < m:\n print("no")', 'n,m=map(int, input().split())\na=list(map(int, input().split()))\ng=0\ncount=0\nfor i in a:\n g+=i\nb = float(1/(4*m))\nfor i in a:\n t = float(i/g)\n if t>=b:\n count+=1\n if count==m:\n print("Yes")\n exit()\nif count < m:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s745884257', 's971444164']
|
[3064.0, 3060.0]
|
[17.0, 17.0]
|
[258, 259]
|
p02718
|
u049182844
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["n , m = map(int,input().split())\na = list(map(int,input().split()))\ncan_choice_item_list =[]\nfor item in a:\n if item < 1 / (4 * m):\n pass\n else:\n can_choice_item_list.append(item)\nif m < len(can_choice_item_list):\n print('YES')\nelse:\n print('NO')", "n , m = map(int,input().split())\na = list(map(int,input().split()))\ncan_choice_item_list =[]\nfor item in a:\n if item < sum(a) / (4 * m):\n pass\n else:\n can_choice_item_list.append(item)\nif m <= len(can_choice_item_list):\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Accepted']
|
['s371786000', 's085218631']
|
[9168.0, 9172.0]
|
[29.0, 27.0]
|
[256, 262]
|
p02718
|
u051261043
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n, m = map(int, input().split())\nvotes = list(map(int, input().split()))\ntotal = sum(votes)\nsatisfied = [x for x in votes if x >= votes * (1/(4*m))]\nif len(satisfied) > m:\n print("Yes")\nelse:\n print("No")', 'n, m = map(int, input().split())\nvotes = list(map(int, input().split()))\ntotal = sum(votes)\nsatisfied = [x for x in votes if x >= total * (1/(4*m))]\nif len(satisfied) >= m:\n print("Yes")\nelse:\n print("No")\n']
|
['Runtime Error', 'Accepted']
|
['s857434900', 's507981137']
|
[3064.0, 2940.0]
|
[17.0, 18.0]
|
[206, 212]
|
p02718
|
u053699292
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
["if __name__ == '__main__':\n\tN, M = map(int, input().split())\n\tA = [int(a) for a in input().split()]\n\n\tth = sum(A)/4/M\n\n\tA.sort(reverse=True)\n\n\tprint(A)\n\n\tif A[M-1] >= th:\n\t\tprint('Yes')\n\telse:\n\t\tprint('No')", "if __name__ == '__main__':\n\tN, M = map(int, input().split())\n\tA = [int(a) for a in input().split()]\n\n\tth = sum(A)/4/M\n\n\tA.sort(reverse=True)\n\n\n\n\tif A[M-1] >= th:\n\t\tprint('Yes')\n\telse:\n\t\tprint('No')"]
|
['Wrong Answer', 'Accepted']
|
['s985650297', 's546658370']
|
[3060.0, 3060.0]
|
[18.0, 17.0]
|
[206, 197]
|
p02718
|
u055668007
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['import sys\ninput = sys.stdin.readline\n\n\nN ,M = map(int,input().split())\n\nintlist = list(map(int, input().split()))\nnewlist = sorted(intlist, reverse=True)[:M]\n\nprint ( newlist[M-1])\nprint ( sum(intlist) / (4 * M))\nif newlist[M-1] > ( sum(intlist) / (4 * M)):\n print ("Yes")\nelse:\n print ("No")\n', 'import sys\ninput = sys.stdin.readline\n\n\nN ,M = map(int,input().split())\n\nintlist = list(map(int, input().split()))\nnewlist = sorted(intlist, reverse=True)[:M]\n\nif newlist[M-1] >= ( sum(intlist) / (4 * M)):\n print ("Yes")\nelse:\n print ("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s987291340', 's518091702']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[309, 256]
|
p02718
|
u061126210
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['n,m = map(int,input().split())\nA = list(map(int,input().split()))\nA.sort(reverse=True)\nsortedA = list()\nsum_of_votes = 0\nfor i in A : \n sum_of_votes += i\nfor i in range(m) : \n sortedA.append(A[i])\nprint(sortedA)\nisOK = True\nfor i in sortedA: \n if i < sum_of_votes * (1/(4*m)) :\n isOK = False\nprint(isOK)\nif isOK == True :\n print("Yes")\nelse:\n print("No")', 'n,m = map(int,input().split())\nA = list(map(int,input().split()))\nA.sort(reverse=True)\nsortedA = list()\nsum_of_votes = 0\nfor i in A : \n sum_of_votes += i\nfor i in range(m) : \n sortedA.append(A[i])\nisOK = True\nfor i in sortedA: \n if i < sum_of_votes * (1/(4*m)) :\n isOK = False\nif isOK == True :\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s299992606', 's218606808']
|
[3064.0, 3064.0]
|
[19.0, 18.0]
|
[475, 448]
|
p02718
|
u062808720
| 2,000
| 1,048,576
|
We have held a popularity poll for N items on sale. Item i received A_i votes. From these N items, we will select M as popular items. However, we cannot select an item with less than \dfrac{1}{4M} of the total number of votes. If M popular items can be selected, print `Yes`; otherwise, print `No`.
|
['N, M = map(int, input().split())\nlist=[int(i) for i in input().split()]\n\nvote = 0\n\n\nfor v in list :\n if v in list :\n print("No")\n exit(0)\n vote = vote + v\n\njudge = vote // 4 // M\n\npop = 0\nfor x in range(0, N) :\n if list[x] > judge :\n pop = pop + 1\n\nif pop >= M :\n print("Yes")\nelse :\n print("No")\n\n', 'N, M = map(int, input().split())\nlist=[int(i) for i in input().split()]\n\nvote = 0\n\n\nfor v in list :\n vote = vote + v\n\njudge = vote / (4 * M)\n\npop = 0\nfor x in range(0, N) :\n if list[x] >= judge :\n pop = pop + 1\n\nif pop >= M :\n print("Yes")\nelse :\n print("No")\n\n']
|
['Wrong Answer', 'Accepted']
|
['s393081052', 's571819571']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[334, 280]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.