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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02718 | u465900169 | 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 = [int(x) for x in input().split()]\nA = [int(x) for x in input().split()]\nA.sort()\nA.reverse()\ntotal = 0\nFlag = True\nfor i in A:\n total += i\nfor i in range(M):\n if A[i] < total/(M*4):\n Flag = False\nif Flag:\n print("YES")\nelse:\n print("NO")', 'N, M = [int(x) for x in input().split... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s237855622', 's834173382', 's423375874'] | [3064.0, 3064.0, 3064.0] | [17.0, 17.0, 17.0] | [263, 261, 261] |
p02718 | u467463073 | 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())\nx = list(map(int,input().split()))\nx.sort(reverse = True)\nsumx = sum(x)\nlimit = sumx/4/m\nprint(limit)\nif x[m-1]>=limit:\n print("Yes")\nelse:\n print("No")', 'n,m = map(int,input().split())\nx = list(map(int,input().split()))\nx.sort(reverse = True)\nsumx = sum(x)\nlimit = s... | ['Wrong Answer', 'Accepted'] | ['s357908480', 's511360980'] | [9144.0, 9040.0] | [31.0, 29.0] | [189, 190] |
p02718 | u468972478 | 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()))\nprint("Yes" if len([i for i in a if i/sum(a) >= 1/(4 * m)]) >= n else "No")', 'n, m = map(int, input().split())\na = list(map(int, input().split()))\nprint("Yes" if len([i for i in a if i/sum(a) >= 1/(4 * m)]) >= m else "No")'] | ['Wrong Answer', 'Accepted'] | ['s307361393', 's405550582'] | [9140.0, 9156.0] | [28.0, 26.0] | [144, 144] |
p02718 | u472696272 | 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())\nnum = list(map(int,input().split()))\nlimit = 1/(4*m)\ncount = 0\nfor i in range(n):\n if num[i] >= limit: count += 1\nif count >= m: print(‘Yes’)\nelse: print(‘No’)\n', "n,m = map(int,input().split())\nnum = list(map(int,input().split()))\nlimit = sum(num)/(4*m)\ncount = 0\nfor i in ... | ['Runtime Error', 'Accepted'] | ['s685762900', 's060367230'] | [3064.0, 2940.0] | [18.0, 17.0] | [200, 200] |
p02718 | u474925961 | 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=[2,1,3]\na=list(map(int,input().split()))\n\nb=sorted(a,reverse=True)\nif b[m-1]*4*m <= n:\n print("Yes")\nelse:\n print("No")', 'n,m=map(int,input().split())\na=list(map(int,input().split()))\n\nb=sorted(a,reverse=True)\nif b[m-1]*4*m >= sum(b):\n print("Yes")\nelse:\n pri... | ['Wrong Answer', 'Accepted'] | ['s325029134', 's046913544'] | [9176.0, 9188.0] | [21.0, 21.0] | [156, 151] |
p02718 | u481919972 | 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`. | ['mn = input().split()\nob = input().split()\n\nn = int(mn[0])\nm = int(mn[1])\n\nvotes = 0\n\nfor i in range(n):\n ob[i] = int(ob[i])\n votes += ob[i]\n\nob.sort(reverse=true)\n\nline = votes/4/m\n\nans = 0\n\nfor i in range(m):\n if ob[i] <= line:\n ans += 1\n\nif ans == 0:\n print("Yes")\nelse:\n ... | ['Runtime Error', 'Accepted'] | ['s598600521', 's743041123'] | [9096.0, 9188.0] | [26.0, 27.0] | [308, 308] |
p02718 | u489153633 | 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=list(map(int, input().split()))\nn=a[0]\nm=a[1]\nl=list(map(int, input().split()))\nlm=sum(l)\nprint(lm)\nl=sorted(l)\nfor i in range(m):\n if l[i]*4*m<lm:\n print(l[i]*4*m,lm)\nprint("Yes")', 'a=list(map(int, input().split()))\nn=a[0]\nm=a[1]\nl=list(map(int, input().split()))\nlm=sum(l)\nfor i in range(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s159916260', 's529839191', 's731330466', 's884846807', 's972958880'] | [3064.0, 3064.0, 3060.0, 3064.0, 3064.0] | [18.0, 17.0, 17.0, 18.0, 19.0] | [192, 178, 190, 213, 204] |
p02718 | u493318999 | 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())\nai = list(map(int,input().split()))\ns = sum(ai)\ncheck = s/4/m\ncount = 0\nfor i in ai:\n if i > round(check, 0):\n print(round(check, 0))\n count += 1\nif count >= m:\n print('Yes')\nelse:\n print('No')", "n,m = map(int,input().split())\nai = list(map(int,input().split()))\n... | ['Wrong Answer', 'Accepted'] | ['s779939092', 's246003034'] | [3064.0, 2940.0] | [17.0, 17.0] | [233, 184] |
p02718 | u498575211 | 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)=list(map(int, input().split()))\n\nk = list(map(int, input().split()))\n\nksum= sum(k)\nk.sort(reverse=True)\n#print(k)\np = 'Yes'\nfor i in range(b):\n #print(i)\n if k[i] <= ksum/4/b:\n p = 'No'\n break\n", 'N, M = map(int, input().split())\na = list(map(int, input().split()))\n\nsums = s... | ['Wrong Answer', 'Accepted'] | ['s480666412', 's125257189'] | [2940.0, 9116.0] | [17.0, 20.0] | [220, 220] |
p02718 | u500297289 | 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)\nif A[M - 1] < sum(A)/(4*M):\n print('Yes')\nelse:\n print('No')\n", "N, M = map(int, input().split())\nA = list(map(int, input().split()))\n\nA.sort(reverse=True)\nif A[M] < 1/(4*M):\n print('Yes')\nelse:\n print('No')\... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s172668768', 's619517185', 's512127028'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [154, 145, 155] |
p02718 | u502200133 | 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()))\ns = sum(a) \na.sort(reserve=True)\nif a[m-1] >= s*(1/4):\n print("Yes")\nelse:\n print("No")', 'n, m = map(int,input().split())\na = list(map(int,input()split()))\ns = sum(a) \na.sort(reserve=True)\nif a[m-1] >= s*(1/4):\n print("Yes")\nels... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s025743454', 's939722157', 's011414021'] | [3060.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0] | [204, 203, 209] |
p02718 | u508061226 | 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();\n \nif S[2]==S[3] and S[4]==S[5]:\n print("Yes");\nelse:\n print("No");\n', 'N,M=(int(a) for a in input().split());\nA=input();\nA=A.split()\nB = [int(s) for s in A]\nsum = sum(B)\n\nline = sum/4/M\npoint = 0;\nlength = len(B);\n\nfor i in range(length):\n if B[i] >= line:\n point += 1;\n ... | ['Runtime Error', 'Accepted'] | ['s329313867', 's717159509'] | [2940.0, 3064.0] | [17.0, 17.0] | [82, 293] |
p02718 | u509029769 | 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\ns = sum(A)\nA=sorted(A)\nfor i in range(N):\n if i == M-1:\n if (s/(4*M))>A[i]:\n print('No')\n else:\n print('Yes')", "N, M = map(int, input().split())\nA = list(map(int, input().split()))\n\ns = sum(A)\nA.so... | ['Wrong Answer', 'Accepted'] | ['s919634339', 's489776967'] | [9044.0, 9176.0] | [29.0, 27.0] | [215, 237] |
p02718 | u511449169 | 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 = 0\n \nif sum(a) < (1/4m) or n < m:\n print("No")\nelse:\n print("Yes")', 'n, m = map(int, input().split())\na = list(map(int, input().split()))\ncnt = 0\n\nfor i in a:\n if i >= (1/4m):\n cnt += 1\n\nif cnt < M:\n print("No")\nelse:\n... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s250258741', 's426407824', 's876248768', 's152313757'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [142, 168, 172, 180] |
p02718 | u513929200 | 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, K = map(int, input().split())\nif 0 <= N <= 10^18 and 1 <= K <= 10^18:\n if N>K:\n N = abs(N-K)\n N = abs(N-K)\n print(N)\n else:\n print(N)\nelse:\n print("0")', 'N,M =map(int, input().split())\nA = list(set((map(int,input().split()))))\nprint(A)\nvote = []\nfor i in A:\n i... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s409315130', 's678360129', 's752044347', 's322277787'] | [2940.0, 3060.0, 3060.0, 2940.0] | [20.0, 17.0, 17.0, 17.0] | [191, 211, 211, 157] |
p02718 | u515647766 | 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`. | ['line1 = input().split()\nn = int(line1[0])\nm = int(line1[1])\nline2 = input().split()\nline2 = [int(i) for i in line2]\ntotal = sum(line2)\nline2 = sorted(line2)\nif line2[m-1] > total / (4 * m):\n print("Yes")\nelse:\n print("No")', 'line1 = input().split()\nn = int(line1[0])\nm = int(line1[1])\nline2 = input().s... | ['Wrong Answer', 'Accepted'] | ['s713621677', 's340736282'] | [3316.0, 3064.0] | [21.0, 17.0] | [224, 239] |
p02718 | u515916750 | 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 = input()\nlis1 = input().split(' ')\nS = sum(lis1)\nthresh = S / (4 * M)\nlis2 = sorted(lis1)\nif lis2[M - 1] < thresh:\n print 'No'\nelse:\n print 'Yes'", "N, M = map(int, input().split(' '))\nlis1 = map(int, input().split(' '))\nS = sum(lis1)\nthresh = S / (4 * M)\nlis2 = sorted(lis1)\nif lis2[-M] < thresh:... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s534632149', 's794664334', 's810134938', 's563925475'] | [2940.0, 3060.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 20.0] | [153, 183, 174, 189] |
p02718 | u516494592 | 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_A = input().split()\nlist_A_int = [int(s) for s in list_A]\nlist_A_int_sort = sorted(list_A_int, reverse=True)\n\nprint(list_A_int_sort)\n\ncompare_num = 1/(4*M)\n\nif list_A_int_sort[M-1] < compare_num:\n print("No")\nelse:\n print("Yes")', 'N,M = map(int, input().split())\nli... | ['Wrong Answer', 'Accepted'] | ['s928079494', 's700672850'] | [3064.0, 3060.0] | [17.0, 17.0] | [267, 257] |
p02718 | u517621096 | 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)\nsuma = sum(a)\nif a[n - 1] >= suma * (4 * m):\n print('Yes')\nelse:\n print('No')\n", "n, m = map(int, input().split())\na = list(map(int, input().split()))\n\na.sort(reverse=True)\nsuma = sum(a)\nif a[m - 1] >= suma ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s081377178', 's300466711', 's968532248', 's271222648'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 18.0] | [175, 175, 175, 175] |
p02718 | u521271655 | 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())\nscore = list(map(int,input().split()))\nscore = sorted(score,reverse=True)\nif score[M−1]*4*M < sum(score):\n print("No")\nelse:\n print("Yes")\n', 'N,M = map(int,input().split())\nscore = list(map(int,input().split()))\nscore = sorted(score,reverse=True)\nif score[M-1]*4*M < sum... | ['Runtime Error', 'Accepted'] | ['s127010939', 's813188564'] | [2940.0, 2940.0] | [17.0, 17.0] | [180, 176] |
p02718 | u525796732 | 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\nstdin = sys.stdin\n\nns = lambda: stdin.readline().rstrip()\nni = lambda: int(stdin.readline().rstrip())\nnm = lambda: map(int, stdin.readline().split())\nnl = lambda: list(map(int, stdin.readline().split()))\n\nN,M=nm()\nA=nl()\nA.sort()\nA.reverse()\nprint(A)\nth=sum(A)/M/4\nflag=True\nfor i in range(M)... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s786743723', 's976819240', 's205052947'] | [3060.0, 3064.0, 3060.0] | [18.0, 17.0, 18.0] | [380, 358, 371] |
p02718 | u531374611 | 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=(int(x) for x in input().split())\na=list(map(int, input().split()))\nb=0\nc=0\nfor i in range(N-1):\n b+=a[i]\nfor i in range(N-1):\n if(a[i]>=b/(4*M)):c+=1\n print(c)\nif(c>=M):print('Yes')\nelse:print('No')\n", "N,M=(int(x) for x in input().split())\na=list(map(int, input().split()))\nb=0\nc=0\nfor i ... | ['Wrong Answer', 'Accepted'] | ['s413991706', 's973639356'] | [3064.0, 3060.0] | [17.0, 17.0] | [213, 224] |
p02718 | u531631168 | 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(map(int, input().split()), reverse=True)\nborder = sum(a) / (4 * m)\ncanChoose = a[m-1] >= border\nprint(canChoose)\nprint("Yes" if canChoose else "No")', 'n, m = map(int, input().split())\na = sorted(map(int, input().split()), reverse=True)\nborder = sum(a) / (4 * m)\ncan... | ['Wrong Answer', 'Accepted'] | ['s379103532', 's893223382'] | [3060.0, 2940.0] | [18.0, 17.0] | [192, 175] |
p02718 | u536034761 | 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 = deque(sorted(list(map(int, input().split()))))\nfor a in A:\n if N / (4 * M) > a:\n A.pop()\n else:\n break\nprint("Yes" if len(A) >= M else "No")', 'N, M = map(int, input().split())\nA = sorted(list(map(int, input().split())))\nall = sum(A)\nL = len(A)\nfor a in A:\n if... | ['Runtime Error', 'Accepted'] | ['s173809908', 's083523340'] | [9188.0, 9192.0] | [24.0, 23.0] | [185, 198] |
p02718 | u536600145 | 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 popularity(votes, N, M):\n \n total_votes = sum(votes)\n coef = 1.0 / (4.0 * M)\n limit = coef * total_votes\n \n cnt = 0\n for vote in votes:\n if vote > limit:\n cnt += 1\n \n if cnt == M:\n \treturn "Yes"\n \n return "No"\n \nN, M = [int (x) for x in i... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s018022572', 's193497969', 's414614610', 's666545915', 's527553133'] | [3188.0, 3060.0, 2940.0, 2940.0, 3060.0] | [19.0, 17.0, 17.0, 17.0, 17.0] | [391, 386, 360, 369, 328] |
p02718 | u538537141 | 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_A=input().split()\nfor i in range(len(list_A)):\n list_A[i]=int(list_A[i])\nA =int(sum(list_A)/(4*M))\nif min(list_A) < A:\n print("No")\nelif M<=len([i for i in list_A if i>= A]):\n print("Yes")\nelse:\n print("No")', 'N,M = map(int,input().split())\nA_list = list(map(i... | ['Wrong Answer', 'Accepted'] | ['s372775427', 's259388906'] | [3064.0, 3064.0] | [17.0, 17.0] | [253, 198] |
p02718 | u546853743 | 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()))\ns=sum(a)\ncnt=0\nfor i in range(n):\n if a[i] >= s*(1/4*m):\n cnt += 1\nif cnt==m:\n print('Yes')\nelse:\n print('No')", "n,m=map(int,input().split())\na=list(map(int,input().split()))\ns=sum(a)\ncnt=0\nfor i in range(n):\n if a[i] >= ... | ['Wrong Answer', 'Accepted'] | ['s633490715', 's863983939'] | [9088.0, 9108.0] | [26.0, 29.0] | [188, 186] |
p02718 | u547537397 | 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())\n A = list(map(int,input().split()))\n S = sum(A)\n cnt = 0\n for a in A:\n if a >= S / (4*M):\n cnt += 1\n if cnt >= M:\n print("Yes")\n else:\n print("No")', 'N, M = map(int,input().split())\nA = list(map(int,input().split()))\nA.sort(reverse=True)\nS = sum(A)\nif A[M-1] >... | ['Runtime Error', 'Accepted'] | ['s664486723', 's273011078'] | [8936.0, 9112.0] | [25.0, 28.0] | [190, 157] |
p02718 | u547764399 | 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 = 0\nC = 1 / (4 * M)\ncount = 0\nD = 0\nprint(C)\n\nfor i in range(len(A)):\n B += A[i]\n\nD = B * C\nfor i in range(len(A)):\n if D < A[i]:\n count += 1\nif M > count :\n print("No")\nelse:\n print("Yes")', 'N, M= map(int,input... | ['Wrong Answer', 'Accepted'] | ['s800681134', 's592703980'] | [3188.0, 3060.0] | [19.0, 17.0] | [277, 248] |
p02718 | u550567766 | 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())\nrank = list(map(int, input().split()))\n\nrank.sort(reverse=True)\nprint(rank)\n\nflg = True\n\nfor i in range(m):\n if rank[i] < (sum(rank)/4*m):\n flg = False\n break\n\nif flg :\n print('Yes')\nelse:\n print('No')", "n, m = map(int, input().split())\nrank = list(map(int, ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s060204923', 's542317819', 's701746003'] | [3060.0, 2940.0, 3060.0] | [17.0, 18.0, 17.0] | [243, 240, 240] |
p02718 | u551056021 | 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_i = list(map(int, input().split()))\n\nv_sum = sum(a_i)\nn = len([a for a in a_i if a >= (1/(4*M))])\nif n >= M:\n print('yes')\nelse:\n print('no')", "N, M = list(map(int, input().split()))\na_i = list(map(int, input().split()))\nv_sum = sum(a_i)\nn = len([a for a in a... | ['Wrong Answer', 'Accepted'] | ['s931770434', 's056133955'] | [3060.0, 3060.0] | [17.0, 17.0] | [188, 191] |
p02718 | u552533086 | 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 = list(map(int, input().split()))\na_total = sum(a_list)\nld = sorted(a_list, reverse = True)\nfor i inld[:M]:\n i < (1/(4*M))*a_total:\n print("No")\nelse:\n print("Yes")', 'N, M = map(int, input().split())\na_list = list(map(int, input().split()))\na_list.sort... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s730422180', 's847333393', 's848209198', 's368038657'] | [2940.0, 3060.0, 2940.0, 3060.0] | [17.0, 18.0, 17.0, 18.0] | [218, 278, 233, 238] |
p02718 | u559112776 | 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()))\ncount=0\nsum=0\nfor i in range(n):\n sum = sum + a[i]\nfor i in range(n):\n if a[i] >= sum*(1/(4*m)):\n count +=1\n else:\n pass\n\nif count>=m:\n print('Yes',sum,count)\nelse:\n print('No',sum,count)\n ", "n,m = map(int,input().split())\... | ['Wrong Answer', 'Accepted'] | ['s823133101', 's874591351'] | [3060.0, 3060.0] | [17.0, 17.0] | [267, 247] |
p02718 | u562015767 | 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())\nl = x = [int(i) for i in input().split()]\nl_sum = sum(l)\ncnt = 0\n\nfor i in range(N):\n if l[i] >= (1/(4*M))*l_sum:\n cnt += 1\n\nif cnt == M:\n print("Yes")\nelse:\n print("No") ', 'N,M = map(int,input().split())\nl = x = [int(i) for i in input().split()]\nl_sum = s... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s322460767', 's833389225', 's666649520'] | [3060.0, 3060.0, 3064.0] | [17.0, 17.0, 18.0] | [218, 217, 281] |
p02718 | u568576853 | 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()))\nc=sum(a)/(4*m)\nans=0\nfor i in range(n):\n if a[n]>=c:\n ans+=1\nif ans>=m:\n print('Yes')\nelse:\n print('No')", "n,m=map(int,input().split())\na=list(map(int,input().split()))\nc=sum(a)/(4*m)\nans=0\nfor i in range(n):\n if a[i]>=c:... | ['Runtime Error', 'Accepted'] | ['s729699552', 's052509183'] | [3060.0, 3060.0] | [17.0, 17.0] | [182, 182] |
p02718 | u569776981 | 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())\na = list(map(int,input().split()))\nsum = sum(a)\nprint(sum)\nx = 0\nfor i in a:\n if i * 4 * m >= sum:\n x += 1\n\nprint(x)\nif x >= m:\n print('Yes')\nelse:\n print('No')\n", "import math\nn, m = map(int,input().split())\na = list(map(int,input().split()... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s679727229', 's788426988', 's282345222'] | [9108.0, 9032.0, 9024.0] | [26.0, 28.0, 31.0] | [221, 234, 202] |
p02718 | u571113944 | 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=int(input().split())\n\nnumber=0\nfor i in range(N):\n v=int(input())\n if v < 1/(4*M):\n number=number\n else:\n number = number+1\nif number >= M:\n print("Yes")\nelse:\n print("No")', 'N=input()\nM=input()\nnumber=0\nfor i in range(N):\n v=input()\n if v < 1/(4*M):\n number=number\n else:\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s340229171', 's500323121', 's719193937', 's831879703', 's334350382'] | [2940.0, 3060.0, 3064.0, 3060.0, 3064.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [187, 176, 290, 191, 305] |
p02718 | u576320075 | 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())\n\na = list(map(int, input().split()))\n\ns = sum(a)\n\na.sort()\n\nif a[m - 1] * a * m >= s:\n print("Yes")\nelse:\n print("No")\n', 'n, m = map(int, input().split())\n\na = list(map(int, input().split()))\n\ns = sum(a)\n\na.sort(reverse=True)\n\nif a[m - 1] >= s / (4*m):\n ... | ['Runtime Error', 'Accepted'] | ['s183139755', 's666146638'] | [81908.0, 2940.0] | [67.0, 17.0] | [158, 170] |
p02718 | u576917603 | 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)\ntotal=sum(a)\nimport math\nborder=math.ceil(total/(4*m))\ncnt=0\nfor i in a:\n if i>=border:\n cnt+=1\nprint('Yes' if cnt>=m else 'No')", "n,m=map(int,input().split())\na=sorted(list(map(int,input().split())),reve... | ['Wrong Answer', 'Accepted'] | ['s807034382', 's520948350'] | [3064.0, 3060.0] | [18.0, 17.0] | [230, 223] |
p02718 | u579699847 | 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 bisect,collections,copy,itertools,math,numpy,string\ndef I(): return int(input())\ndef S(): return input()\ndef LI(): return list(map(int,input().split()))\ndef LS(): return list(input().split())\n##################################################\nN,M = LI()\nA = LI()\nkijun = sum(A)//(4*M)\nprint(kijun)\ncou... | ['Wrong Answer', 'Accepted'] | ['s321702156', 's773093432'] | [21724.0, 21600.0] | [1711.0, 912.0] | [398, 383] |
p02718 | u581403769 | 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\nb = sum(a) / 4\ncount = 0\nfor i in range(n):\n if a[i] >= b:\n ans += 1\n \nif ans >= m:\n print('Yes')\nelse:\n print('No')", "n, m = map(int, input().split())\na = list(map(int, input().split()))\n\nb = sum(a) / (4 * m)\nan... | ['Runtime Error', 'Accepted'] | ['s181332840', 's220141020'] | [9056.0, 8984.0] | [21.0, 28.0] | [205, 204] |
p02718 | u588268040 | 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=(int(x) for x in input().split())\nA=[int(x) for x in input().split()]\nnum=0\nfor i in range(N):\n if A[i]>=sum(A)*0.25/M:\n num+=1\nif num>=M:\n print("yes")\nelse:\n print("no")\n', 'N,M=(int(x) for x in input().split())\nA=[int(x) for x in input().split()]\ntot=0\nS=sum(A)\nfor i in range(N):\... | ['Wrong Answer', 'Accepted'] | ['s815311372', 's609315410'] | [2940.0, 2940.0] | [17.0, 17.0] | [192, 196] |
p02718 | u590198086 | 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`. | ['from math import ceil\nn,m = map(int,input().split())\nl = list(map(int,input().split()))\nl.sort(reverse=True)\nval = sum(l)\nf = 1\nfor i in range(m):\n if l[i] < ceil(val/4*m):\n f = 0\n break\nelse:\n print(\'No\')\nif f:\n print("Yes")', 'from math import ceil\nn,m = map(int,input().split())\nl = list(m... | ['Wrong Answer', 'Accepted'] | ['s759474547', 's222505165'] | [3060.0, 3060.0] | [17.0, 18.0] | [234, 239] |
p02718 | u592035627 | 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(input().split())\nB = sum(A)\na = 0\nfor i in range(n):\n if A[i] >= B/(4*m):\n a += 1\nif a >= m:\n print("Yes")\nelse:\n print("No")', 'n,m = map(int,input().split())\nA = [int(x) for x in input().split()]\nB = sum(A)\na = 0\nfor i in range(n):\n if A[i] >... | ['Runtime Error', 'Accepted'] | ['s797833898', 's528939130'] | [3060.0, 3060.0] | [17.0, 17.0] | [181, 193] |
p02718 | u595905528 | 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())\nAlist = list(map(int, input().split()))\nAlist.sort(reverse=True)\nsumnation = sum(Alist)\nbordernum = sumnation / (4*M)\nfor i in Alist[:M]:\n judlist = []\n temp = True if i >= bordernum else False\n judlist.append(temp)\n judged = all(judlist)\nif judged:\n print('yes... | ['Wrong Answer', 'Accepted'] | ['s678377066', 's429067743'] | [3064.0, 3064.0] | [18.0, 17.0] | [332, 332] |
p02718 | u600261652 | 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 = sorted(list(map(int, input().split())))\nprint("Yes" if list[-1*M] >= sum(list)/4M else("No"))', 'def resolve():\n N, M = map(int, input().split())\n vote = list(map(int, input().split()))\n bot = sorted(vote)[M*-1:]\n print("Yes" if min(bot) >= sum(vote)/(4*M) els... | ['Runtime Error', 'Accepted'] | ['s005030039', 's095750551'] | [9028.0, 9184.0] | [25.0, 21.0] | [133, 192] |
p02718 | u601575292 | 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()))\nvote_sum = sum(A)\ncnt = 0\ny = "Yes"\nn = "no"\n\nfor i in range(N):\n\tif (A[i]*4*M) >= T:\n\t\tcnt += 1\n\nif cnt >= M:\n\tprint(y)\nelse:\n\tprint(n)', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\nvote_sum = sum(A)\n... | ['Runtime Error', 'Accepted'] | ['s756595348', 's519036503'] | [3064.0, 3064.0] | [20.0, 17.0] | [205, 212] |
p02718 | u603939330 | 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\n\n\n\ntotal = sum(A)\nA.sort(reverse = True)\nprint(A)\n\njudge = True\n\nfor i in range(m):\n if (total / (4*m)) < A[i]:\n continue\n else:\n judge = not judge\n\nif judge:\n print("Yes")\nelse:\n print("No")\n', 'n, m ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s268387357', 's770365327', 's536140074'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 18.0] | [287, 301, 294] |
p02718 | u606001175 | 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`. | ['12 3\n4 56 78 901 2 345 67 890 123 45 6 789', 'n, m = map(int,input().split())\nls = list(map(int,input().split()))\na = 0\ns = sum(ls)\n\nfor i in range(n):\n if ls[i] * m * 4 >= s:\n a += 1\n\nif a >= m:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s214241174', 's237928154'] | [2940.0, 3060.0] | [17.0, 17.0] | [42, 199] |
p02718 | u606878291 | 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 = tuple(map(int, input().split(' ')))\n\ntotal = sum(A)\nborder = total // (2 * M)\n\nproducts = [a for a in A if a >= border]\n\nif len(products) >= M:\n print('Yes')\nelse:\n print('No')\n", "N, M = map(int, input().split(' '))\nA = sorted(tuple(map(int, input().split(' ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s682274794', 's710691172', 's744255317'] | [2940.0, 3060.0, 3060.0] | [17.0, 19.0, 18.0] | [223, 239, 238] |
p02718 | u607563136 | 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\nprint([i for i in a if i >= sum(a)/(4*m)],sum(a)/(4*m))\n\nif len([i for i in a if i >= sum(a)/(4*m)]) >= m:\n print("Yes")\nelse:\n print("No")', 'n,m = map(int,input().split())\na = list(map(int,input().split()))\n\nif len([i for i in a if ... | ['Wrong Answer', 'Accepted'] | ['s411235307', 's698828257'] | [9128.0, 9176.0] | [28.0, 29.0] | [212, 155] |
p02718 | u607729897 | 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 = map(int, input().split())\ncnt = 0\nfor a in A:\n if a < M:\n cnt += 1\nif M <= cnt:\n print('Yes')\nelse:\n print('No')\n\n\n", "N, M = map(int, input().split())\nA = list(map(int, input().split()))\ns = sum(A)\nmin = s / (4 * M)\ncnt = 0\nfor a in A:\n if a >= min:\n ... | ['Wrong Answer', 'Accepted'] | ['s527115132', 's402997668'] | [2940.0, 3060.0] | [17.0, 17.0] | [158, 196] |
p02718 | u609176437 | 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())\nli=list(map(int,input().split()))\ncount=0\n\nfor i in li:\n if i >= sum(li)*1/4*m : count += 1\n\nif count >= m: print("YES")\nelse:print("NO")', 'n,m=map(int,input().split())\nli=list(map(int,input().split()))\ncount=0\n\nfor i in li:\n if i >= sum(li)/(4*m) : count += 1\n\nif count ... | ['Wrong Answer', 'Accepted'] | ['s167082843', 's768250943'] | [9012.0, 9176.0] | [29.0, 30.0] | [167, 167] |
p02718 | u610120522 | 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 = map(int, input().split())\nA.sort(reverse=True)\nS = sum(A)\nif A[M-1] >= S/(4*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 = sum(A)\nif A[M-1] >= S/(4*M):\n print("Yes")\nelse:\n print... | ['Runtime Error', 'Accepted'] | ['s451670893', 's045130322'] | [2940.0, 3060.0] | [18.0, 18.0] | [150, 156] |
p02718 | u611033537 | 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 = (int(y) for y in input().split())\nA = list(map(int, input().split()))\nX = math.ceil(sum(A)/(4*M))\nB = [i for i in A if i >= X]\nprint(sum(A))\nprint(X)\nprint(B)\nif len(B) >= M:\n print("Yes")\nelse:\n print("No")', 'import math\nN,M = (int(y) for y in input().split())\nA = list(map(int, inpu... | ['Wrong Answer', 'Accepted'] | ['s304246092', 's565037201'] | [3064.0, 3060.0] | [17.0, 17.0] | [227, 196] |
p02718 | u611090896 | 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())))\na_list=[]\nfor i in a[:m]:\n if sum(a)/(a*m) > i:\n print('No')\n exit()\n else:\n a_list.append(i)\nprint('Yes')", "n,m = map(int,input().split())\na = sorted(list(map(int,input().split())))\nb = sum(a)/(4*m)\nc=[]\nfor i in a[:m]... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s257896903', 's370740511', 's757950236', 's494868070'] | [9132.0, 8984.0, 9112.0, 9000.0] | [24.0, 27.0, 29.0, 26.0] | [191, 193, 180, 206] |
p02718 | u613920660 | 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().strip().split())\nA=list(map(int,input().strip().split()))\n\nsumA=sum(A)\n\nA.sort(reverse=True)\n\nprint(A)\nprint(sumA)\nprint(M)\nif A[M-1]>=sumA/4/M:\n print("Yes")\nelse:\n print("No")', 'N,M=map(int,input().strip().split())\nA=list(map(int,input().strip().split()))\n\nsumA=sum(A)\n\nA... | ['Wrong Answer', 'Accepted'] | ['s654096341', 's944968701'] | [3060.0, 2940.0] | [20.0, 17.0] | [203, 173] |
p02718 | u614628638 | 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 = [int(i) for i in input().split()]\nA.sort()\nB = sum(A)\nif A[M-1] >= B/(4*M):\n print('Yes')\nelse:\n print('No')", "N,M = map(int,input().split())\nA = [int(i) for i in input().split()]\nA.sort(reverse=True)\nB = sum(A)\nif A[M-1] >= B/(4*M):\n print('Yes')\nelse:\n print('No... | ['Wrong Answer', 'Accepted'] | ['s777506327', 's544467389'] | [2940.0, 3060.0] | [17.0, 17.0] | [145, 157] |
p02718 | u615034089 | 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()))\ncount = 0\nsm = sum(a)\nfor i in a:\n if( i >= sm/(4*m)):\n count += 1\nif(count >= m):\n print("YES")\nelse:\n print("NO")', 'n,m = map(int,input().split())\na = list(map(int,input().split()))\ncount = 0\nsm = sum(a)\nfor i in a:\n ... | ['Wrong Answer', 'Accepted'] | ['s205345625', 's347665869'] | [3060.0, 3060.0] | [17.0, 17.0] | [197, 206] |
p02718 | u616542081 | 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`. | [", M = map(int, input().split())\nA = list(map(int, input().split()))\n\ncnt = 0\nth = sum(A)/(4*M)\n\nfor i in range(len(A)):\n if A[i] >= th:\n cnt += 1\n\nans = 'Yes' if cnt >= M else 'No'\nprint(ans)", "N, M = map(int, input().split())\nA = list(map(int, input().split()))\n\ncnt = 0\nth = sum(A)/(4*M)\n\nfor i... | ['Runtime Error', 'Accepted'] | ['s875136080', 's286731125'] | [8852.0, 9084.0] | [24.0, 29.0] | [195, 196] |
p02718 | u617953889 | 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`. | ["#B\nn,m = map(int,input().split())\narr = list(map(int,input().split()))\nc = 0\ns = sum(arr)\na = (s/(4*m))\nprint(a)\nfor i in range(n):\n if arr[i]>a:\n c +=1\nif c >= m:\n print('Yes')\nelse:\n print('No')", "#B\nn,m = map(int,input().split())\narr = list(map(int,input().split()))\nc = 0\ns = sum(... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s186102725', 's323327434', 's382719634', 's267223784'] | [3064.0, 3064.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [212, 213, 199, 161] |
p02718 | u619809897 | 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\n\ntotal_votes_checker = lambda M, total_votes: (False \n if total_votes <= 1 / (4 * M) \n else True)\n\ntotal_votes = sum(A)\nA_iter = iter(A)\n\nacceptable_A = list(f... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s058598160', 's275861277', 's349030908', 's877941396', 's907551100', 's960401187', 's029602893'] | [3064.0, 3572.0, 3828.0, 3060.0, 3572.0, 3064.0, 3060.0] | [17.0, 23.0, 28.0, 18.0, 23.0, 17.0, 17.0] | [780, 703, 602, 290, 614, 602, 309] |
p02718 | u619850971 | 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())\nL=list(map(int,input().split()))\nprint(L)\nS=sorted(L,reverse=True)\na=sum(L)\nprint(S)\n\nif S[m-1] < a/(4*m):\n print("No")\nelse:\n print("Yes")', 'n,m= map(int,input().split())\nL=list(map(int,input().split()))\n\nS=sorted(L,reverse=True)\na=sum(L)\nif S[m-1] < a/(4*m):\n ... | ['Wrong Answer', 'Accepted'] | ['s420814034', 's655733036'] | [3060.0, 3060.0] | [18.0, 17.0] | [175, 157] |
p02718 | u619903722 | 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=list(map(int,input().split()))\ncount=0\ntotal=0\nfor i in List:\n total=total+i\n\nfor i in List:\n if i>=total/m/4:\n count=count+1\n else:\n count=count+0\n\nif count>=m:\n print("YES")\nelse:\n print("NO")', 'n,m=map(int,input().split())\nList=list(m... | ['Wrong Answer', 'Accepted'] | ['s349401188', 's936757395'] | [3064.0, 3060.0] | [17.0, 17.0] | [257, 258] |
p02718 | u622847899 | 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=input().split()\nn=int(n)\nm=int(m)\na=[int(i) for i in input().split()]\n\nsum=0\nfor i in range(n):\n sum+=a[i]\n\nable=0\nfor ai in a:\n if ai>=sum*(1/(4*m)):\n able+=1\n\nprint(able)\nif able>=m:\n print('Yes')\nelse:\n print('No')\n", "n,m=input().split()\nn=int(n)\nm=int(m)\na=[int(i) for... | ['Wrong Answer', 'Accepted'] | ['s139320500', 's281250391'] | [3064.0, 3060.0] | [18.0, 17.0] | [241, 229] |
p02718 | u625864724 | 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())\nlst = list(map(int,input().split()))\nlst = sorted(lst)\nlst = reversed(lst)\nx = sum(lst)\nif (lst[m] < x/4/m):\n print("No")\nelse:\n print("Yes")', 'n, m = map(int,input().split())\nlst = list(map(int,input().split()))\nlst.sort()\nlst.reverse()\nx = sum(lst)\nif (lst[m - 1] < x/... | ['Runtime Error', 'Accepted'] | ['s301366473', 's493695693'] | [9016.0, 9108.0] | [25.0, 30.0] | [175, 167] |
p02718 | u627674248 | 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()))\nS = sum(A)\ncnt = 0\nfor a in A:\n if a >= S / (4*M):\n\tcnt += 1\nif cnt >= M:\n print("Yes")\nelse:\n print("No")', 'n,m = map(int,input().split())\na = list(map(int,input().split()))\nasum = sum(a)\nr = 0\nfor i in range(n):\n if a[i] >= asum... | ['Runtime Error', 'Accepted'] | ['s714312336', 's167940338'] | [8956.0, 9132.0] | [28.0, 27.0] | [176, 174] |
p02718 | u631342090 | 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 = map(int, input().split())\nm = sum(A)/(4*M)\nn = sum(1 for i in A if i >= m)\nprint(["No", "Yes"][n >= M])', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\nm = sum(A)/(4*M)\nn = sum([1 for i in A if i >= m])\nprint(["No", "Yes"][n >= M])'] | ['Wrong Answer', 'Accepted'] | ['s782003077', 's882656497'] | [2940.0, 2940.0] | [17.0, 17.0] | [140, 148] |
p02718 | u633284019 | 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()))\nsum = sum(A)\nfor a in A:\n if a * 4 * m < sum:\n cnt += 1\nif cnt >= m:\n print("Yes")\nelse:\n print("No")\n ', 'n, m = list(map(int, input().split()))\nA = list(map(int, input().split()))\nsum = sum(A)\ncnt = 0\nfor a in A:\n if a... | ['Runtime Error', 'Accepted'] | ['s263492137', 's491652290'] | [9092.0, 9152.0] | [28.0, 25.0] | [185, 192] |
p02718 | u634934338 | 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())\nvote_result_list = sorted(list(map(int,input().split())))[::-1]\nprint(vote_result_list)\nborder = sum(vote_result_list)/(4*M)\nprint(border)\nprint("Yes" if vote_result_list[M-1] >= border else "No")', 'N, M = map(int, input().split())\nvote_result_list = sorted(list(map(int,input()... | ['Wrong Answer', 'Accepted'] | ['s982977061', 's912907463'] | [3060.0, 2940.0] | [17.0, 17.0] | [229, 191] |
p02718 | u635141733 | 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 = (int(x) for x in input().split())\na = list(map(int,input().split()))\nx = sum(a)*1/(4*M)\n\npick = 0\nfor (a_i) in a:\n if (a_i) > x:\n pick += 1\n\nif pick >= M:\n print("yes")\nelse:\n print("no")', 'N,M = (int(x) for x in input().split())\na = list(map(int,input().split()))\nx = sum(a)*1/(4*... | ['Wrong Answer', 'Accepted'] | ['s381077805', 's729348219'] | [3060.0, 3060.0] | [17.0, 17.0] | [209, 210] |
p02718 | u639512008 | 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 n, m = map(int, input().split())\n a = [int(i) for i in input().split()]\n s = sum(a)\n a = sorted(a)[::-1]\n if a[m-1] >= (s / (4 * m)):\n print("yes")\n else:\n print("no")\n', 'if __name__ == \'__main__\':\n n, m = map(int, input().split())\n a =... | ['Wrong Answer', 'Accepted'] | ['s422997123', 's661135266'] | [9180.0, 9176.0] | [23.0, 21.0] | [228, 228] |
p02718 | u640296846 | 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()))\ncheck = ((1 / (4 * M)) * sum(A))\nx = 0\nfor item in A:\n if item < check:\n x += 1\nans = N - x\nif ans >= M :\n print('Yes')\nelse:\n print('No')N, M = map(int, input().split())\nA = list(map(int, input().split()))\ncheck = ((1 /... | ['Runtime Error', 'Accepted'] | ['s993248366', 's004063926'] | [2940.0, 3060.0] | [17.0, 17.0] | [446, 228] |
p02718 | u640922335 | 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()))\ntotal = sum(A)\ncutoff = total/4N\n\nover=[]\nfor i in A:\n if i>=cutoff:\n over.append(i)\n\nif len(over)>=M:\n print('Yes')\nelse:\n print('No')", "N,M = map(int,input().split())\nA = list(map(int, input().split()))\ntotal = sum(A)... | ['Runtime Error', 'Accepted'] | ['s931999300', 's881366586'] | [2940.0, 3060.0] | [17.0, 17.0] | [218, 221] |
p02718 | u641393644 | 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`. | ['l = input()\nm = input()\nz = l.split(\' \')\nM = int(z[1])\nN = int(z[0])\nC = (N/(4*M))\nF = m.split(\' \')\nprint("Yes")\nX = []\nfor item in F:\n votes = int(item)\n X.append(votes)\n\nX.sort(reverse=True)\nfor i in range(M+1):\n if X[i]<C:\n print("No")\n break\n else:\n if i==M:\n print("Yes")... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s000962418', 's014268579', 's057434690', 's203971248', 's219341070', 's250412535', 's328243405', 's400100834', 's400467414', 's416338088', 's459425594', 's462029379', 's545983035', 's673473296', 's767395953', 's773765732', 's888593417', 's714242293'] | [3064.0, 3064.0, 3060.0, 3060.0, 3064.0, 3064.0, 2940.0, 2940.0, 3064.0, 2940.0, 3060.0, 3064.0, 2940.0, 2940.0, 3064.0, 3060.0, 3064.0, 3064.0] | [17.0, 18.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 19.0] | [294, 304, 267, 250, 239, 278, 254, 280, 236, 278, 234, 269, 254, 295, 261, 237, 249, 226] |
p02718 | u641976689 | 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(list(map(lambda x: x >= sum(a)/(4*m), a)))\nprint(n,m,a,b)\nprint('Yes' if m<=b else 'No')\n", "n, m = map(int, input().split())\na = list(map(int, input().split()))\nb = sum(list(map(lambda x: x >= sum(a)/(4*m), a)))\nprint('Yes' if m<=b ... | ['Wrong Answer', 'Accepted'] | ['s256998366', 's741780615'] | [2940.0, 2940.0] | [17.0, 17.0] | [166, 151] |
p02718 | u643498327 | 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 = input().split()\nprint(a)\nans = 0\nfor i in a:\n if int(i) >= sum(map(int , a)) * 1/(4*m):\n ans += 1\nif ans >= m:\n print("Yes")\nelse:\n print("No")', 'n , m = map(int , input().split())\na = input().split()\nans = 0\nfor i in a:\n if int(i) >= sum(map(in... | ['Wrong Answer', 'Accepted'] | ['s488340505', 's825204964'] | [3060.0, 2940.0] | [19.0, 18.0] | [198, 189] |
p02718 | u643679148 | 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()))\nborder = sum(a) / (4 * m)\na.sort(reverse=True)\n\nfor i in range(m):\n if border >= a[i]:\n pass\n else:\n print('No')\n exit(0)\n\nprint('Yes')\n", "n, m = map(int, input().split())\na = list(map(int, input().split()))... | ['Wrong Answer', 'Accepted'] | ['s136912768', 's764457133'] | [9172.0, 9152.0] | [30.0, 27.0] | [232, 232] |
p02718 | u646203242 | 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=sorted(a, reversed =True)\nif sum(a)/(4*M)<=a[M-1]:\n print("Yes")\nelse:\n print("No")', 'N,M=map(int,input().split())\na=[int(input()) for i in range(N)]\na=sorted(a,reverse=True)\nif sum(a)/(4*M)<=a[M-1]:\n print("Yes")\nelse:\n print("No")', 'N... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s312219585', 's526395085', 's573825696', 's678279108', 's560769894'] | [3060.0, 3060.0, 2940.0, 3060.0, 3060.0] | [17.0, 19.0, 17.0, 17.0, 17.0] | [149, 148, 149, 163, 147] |
p02718 | u647679586 | 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()))\n\nitem_votes = list(map(int, input().split()))\n\ntotal_item_votes = sum(item_votes)\n\nitem_vote_percentages = [item_votes/total_item_votes for item_votes in item_votes]\n\nrequired_vote_percentage = 1/(4*m)\n\ncan_select = 0\nfor vote_percentage in item_vote_percentages:\n i... | ['Runtime Error', 'Accepted'] | ['s949835801', 's090978821'] | [2940.0, 3064.0] | [17.0, 17.0] | [447, 491] |
p02718 | u651793628 | 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 = []\n\n\nsum_vote = sum(A)\n#print(sum_vote)\n\n\nfor i in range(len(A)):\n if A[i] => sum_vote * 1/(4 * M):\n B.append(A[i])\n else:\n pass\n\n\nif len(B) >= M:\n print("Yes")\nelse:\n print("No")', 'N,M = map(in... | ['Runtime Error', 'Accepted'] | ['s000102460', 's472513846'] | [2940.0, 3060.0] | [17.0, 17.0] | [414, 415] |
p02718 | u651946953 | 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()\na_sum=sum(a)\ncount=0\nfor i in range(m):\n if not a[i] <= a_sum/(4*m):\n count+=1\nif count==m:\n print("Yes")\n\nelse:\n print("No")', 'n,m=map(int,input().split())\na=list(map(int,input().split()))\na.sort(reverse=True)\na_sum=sum(a)\n... | ['Wrong Answer', 'Accepted'] | ['s302683074', 's154157079'] | [3060.0, 3060.0] | [18.0, 17.0] | [202, 222] |
p02718 | u652583512 | 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 = [int(i) for i in input().split()]\nA.sort(reverse=True)\nprint(A)\nif A[M - 1] * 4 * M >= sum(A) :\n print('Yes')\nelse:\n print('No')", "N, M = map(int, input().split())\nA = [int(i) for i in input().split()]\nA.sort(reverse=True)\n\nif A[M - 1] * 4 * M >= sum(A):\n ... | ['Wrong Answer', 'Accepted'] | ['s361001975', 's953394848'] | [2940.0, 2940.0] | [17.0, 17.0] | [172, 165] |
p02718 | u654517927 | 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`. | ['num=input().rstrip().split(" ")\nN=int(num[0])\nM=int(num[1])\ndate=input().rstrip().split(" ")\nsum=0\nfor i in range(N):\n sum+=int(date[N])\ndate=sorted(date,reverse=True)\nif (sum/4)/M<=date[M-1]:\n print("Yes")\nelse:\n print("No")', 'num=input().rstrip().split(" ")\nN=int(num[0])\nM=int(num[1])\ndate=input()... | ['Runtime Error', 'Accepted'] | ['s317272461', 's275583488'] | [3064.0, 3064.0] | [19.0, 17.0] | [228, 283] |
p02718 | u654528273 | 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\nn,m = (int(x) for x in input().split())\n\n#a\na = list(map(int, input().split()))\n\na.sort(reverse=True)\n\nsum = 0\nfor i in a:\n sum += i\n\nprint(str(a[m-1]),str(sum),str(1 / (4 * m)))\n\nif a[m-1]/sum >= 1 / (4 * m):\n print("Yes")\nelse:\n print("No")\n', '#n,m\nn,m = (int(x) for x in input().sp... | ['Wrong Answer', 'Accepted'] | ['s331944224', 's613066521'] | [3060.0, 3060.0] | [17.0, 40.0] | [257, 257] |
p02718 | u655048024 | 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.sorted(reverse=True)\nK = 0\nfor i in range(N):\n K += a[i]\nif(a[M-1]>=K/(4*M)):\n print("Yes")\nelse:\n print("No")', 'N, M = map(int,input().split())\na = list(map(int,input().split()))\na.sort(reverse=True)\nK = 0\nfor i in range(N):\n K +... | ['Runtime Error', 'Accepted'] | ['s463066610', 's437272785'] | [3060.0, 2940.0] | [17.0, 17.0] | [182, 182] |
p02718 | u655102148 | 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()))\ncounter = 0\na.sort(reverse=True)\n\nfor i in a:\n if i >= int(sum(a) / (4*m)):\n counter =+ 1\n\nprint(counter)\nif counter >= m:\n print("Yes")\nelse:\n print("No")', 'n,m = map(int, input().split())\na = list(map(int, input().split()))\ns ... | ['Wrong Answer', 'Accepted'] | ['s443513586', 's445843999'] | [3064.0, 3060.0] | [18.0, 17.0] | [229, 206] |
p02718 | u655212792 | 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 = list(map(int,input().split()))\nvote = list(map(int,input().split()))\na = sum(vote)/(4*n[1])\nresult = 0\nfor i in range(n[0]):\n if vote[i]=>a:\n result += 1\nif result<n[1]:\n print('No')\nelse:\n print('Yes')", "n = list(map(int,input().split()))\nvote = list(map(int,input().split()))\na = sum(vote)/(4*... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s217950862', 's716419142', 's217124646'] | [2940.0, 3064.0, 3060.0] | [17.0, 17.0, 18.0] | [212, 225, 212] |
p02718 | u660899380 | 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 = input().split()\nN= int(N)\nM = int(M)\nitemList = input().split()\nitemList.sort()\nindex = -1\nanswer = true\nfor i in range(M):\n if itemList[index] < (N*(1/(4*M))):\n answer = false\n break\n index -= 1\n \nif answer:\n print("Yes")\nelse:\n print("No")', 'N, M = input().split()\nN= int(N)\nM = ... | ['Runtime Error', 'Accepted'] | ['s333707996', 's340581030'] | [3064.0, 3064.0] | [17.0, 17.0] | [259, 287] |
p02718 | u661439250 | 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())\nitem_vote = list(map(int, input().split()))\n\ntotal_vote = sum(item_vote)\nitem_vote = sorted(item_vote)\nboder = 1/4*M\nif item_vote[M-1] < boder:\n print('Yes')\nelse:\n print('No')", "N, M = map(int, input().split())\nitem_vote = list(map(int, input().split()))\n\ntotal_vot... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s407611116', 's948406342', 's616262631'] | [2940.0, 3064.0, 3060.0] | [17.0, 18.0, 17.0] | [215, 263, 239] |
p02718 | u663690945 | 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()))\nnum=len([x for x in a if x>=1/(4*m)])\nif num >= m:\n print("yes")\nelse:\n print("no")', 'n,m=map(int,input().split())\na=list(map(int,input().split()))\na_sum=sum(a)\nnum=len([x for x in a if x>=a_sum/(4*m)])\nif num >= m:\n print("Yes")\nelse... | ['Wrong Answer', 'Accepted'] | ['s744619135', 's843015535'] | [2940.0, 3060.0] | [17.0, 17.0] | [151, 168] |
p02718 | u666844906 | 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\ncnt = 0\nfor i in range(N):\n\tif A[i] >= sum(A)*int((1/4*M)):\n\t\tcnt += 1\n\t\tprint(cnt)\n\telse:\n\t\tcnt = cnt\n\t\tprint(cnt)\n\nif cnt >= M:\n\tprint('Yes')\nelse:\n\tprint('No')\n", "N, M = map(int, input().split())\nA = list(map(int, i... | ['Wrong Answer', 'Accepted'] | ['s747624431', 's229377871'] | [3060.0, 3064.0] | [17.0, 17.0] | [233, 200] |
p02718 | u672542358 | 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,int,input()))\nk=sum(a)/(4*m)\nx=0\nfor i in a:\n if a>=k:\n x+=1\nif x>=m:\n print("Yes")\nelse:\n print("No")', 'n,m=map(int,input().split())\na=list(map(int,input().split()))\nk=sum(a)/(4*m)\nx=0\nfor i in a:\n if i>=k:\n x+=1\nif x>=m:\n print("Yes")\nelse:\... | ['Runtime Error', 'Accepted'] | ['s990269772', 's242547501'] | [9028.0, 9180.0] | [25.0, 19.0] | [152, 156] |
p02718 | u676933207 | 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()))\n\ntotal = sum(A)\n\nselcnt = 0\nfor a_i in A:\n if a_i >= total * (1/(4*M)):\n selcnt += 1\n\nif selcnt >= M:\n print("yes")\nelse:\n print("no")\n', 'N,M = list(map(int,input().split()))\nA = list(map(int,input().split()))\n\nt... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s361754865', 's395000521', 's395031215', 's585223979', 's357614592'] | [2940.0, 2940.0, 3064.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 17.0, 18.0] | [223, 233, 241, 240, 250] |
p02718 | u680139653 | 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`. | ['from sys import stdin\nN,M = map(int,input().split())\nA= [int(x) for x in stdin.readline().rstrip().split()]\nm = min(A)\ns = sum(A)\nif ( s / (4 * M) > m) :\n print("no")\nelse: \n print("yes")', 'from sys import stdin\nN,M = map(int,input().split())\nA= [int(x) for x in stdin.readline().rstrip().split()]\nm =... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s339721792', 's389290731', 's539945120', 's713442890', 's979460687', 's495228419'] | [3064.0, 3060.0, 2940.0, 3060.0, 3060.0, 3060.0] | [17.0, 19.0, 17.0, 17.0, 17.0, 17.0] | [191, 191, 191, 191, 211, 191] |
p02718 | u680190333 | 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=(int(x) for x in input().split())\nAs=[int(x) for x in input().split()]\np = sum(As)/4M\nov = [1 if x>=p else 0 for x in As]\nif sum(ov)>=M:\n print('Yes')\nelse:\n print('No')", "N,M=(int(x) for x in input().split())\nAs=[int(x) for x in input().split()]\np = sum(As)/(4*M)\nov = [1 if x>=p else 0 for x in As]\... | ['Runtime Error', 'Accepted'] | ['s991338093', 's763438184'] | [2940.0, 3060.0] | [17.0, 17.0] | [175, 178] |
p02718 | u685244071 | 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\nall_sum = sum(a)\nstandard = all_sum//(4*M)\nans = 0\n\nfor i in a:\n if i >= standard:\n ans += 1\n\nif and >= m:\n print('Yes')\nelse:\n print('No')\n", "n, m = map(int, input().split())\na = list(map(int, input().split()))\n\nall_sum = ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s216967931', 's254191260', 's539755343', 's601977099'] | [9036.0, 9036.0, 9128.0, 9160.0] | [21.0, 24.0, 23.0, 22.0] | [216, 218, 215, 215] |
p02718 | u688219499 | 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=[int(i) for i in input().split()]\nA=list(int(input()))\nfor i in range(M):\n if A[i]>1/(4*M):\n print("Yes")\n exit()\nprint("No")', 'N,M=(int(i) for i in input().split())\nA=list(map(int,input().split()))\nS=len(A)\nmono=0\nsoutoku=0\nfor i in range(S):\n soutoku=soutoku+A[i]\nfor i in range... | ['Runtime Error', 'Accepted'] | ['s421874189', 's700496354'] | [2940.0, 3188.0] | [18.0, 20.0] | [146, 258] |
p02718 | u688564053 | 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)\nS = sum(A)\nif A[M-1] >= S / (4*M):\nprint("Yes")\nelse:\nprint("No")', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\nA.sort(reverse=True)\nS = sum(A)\nif A[M-1] >= S/(4 * M):\n print("Yes")\nelse:\... | ['Runtime Error', 'Accepted'] | ['s600110929', 's568004152'] | [2940.0, 3060.0] | [17.0, 18.0] | [153, 163] |
p02718 | u692054751 | 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 LI():\n\treturn [ int(s) for s in input().split() ]\nN,M = LI()\nA = LI()\n\nprint('Yes') if sum(map(lambda x: x >= (1/4/M))) >= M else print('No')\n\n", "def LI():\n\treturn [ int(s) for s in input().split() ]\nN,M = LI()\nA = LI()\nsum_A = sum(A)\n \nprint('Yes') if sum(map(lambda x: x >= sum_A*(1/4/M), A)) >= ... | ['Runtime Error', 'Accepted'] | ['s011343481', 's948558855'] | [2940.0, 2940.0] | [17.0, 17.0] | [147, 170] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.