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
|
u696684809
| 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 = sorted(a,reverse=\'True\')n,m = map(int,input().split())\na = list(map(int,input().split()))\nb = [0]*n\nb = sorted(a,reverse=True)\nc = sum(a)\nif(b[m-1]>=c/(4*m)):\n print(\'Yes\')\nelse:\n print("No")', 'n,m = map(int,input().split())\na = list(map(int,input().split()))\nb = [0]*n\nb = sorted(a,reverse=True)\nc = sum(a)\nif(b[m-1]>=c/(4*m)):\n print(\'Yes\')\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s570037466', 's033019790']
|
[9016.0, 9152.0]
|
[24.0, 26.0]
|
[262, 169]
|
p02718
|
u699547221
| 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\tif a >= S / (4*M):\n\tcnt += 1\nif cnt >= M:\n\tprint("Yes")\nelse:\nprint("No")', 'package main\n\nimport (\n\t"bufio"\n\t"fmt"\n\t"os"\n\t"strconv"\n\t"strings"\n)\n\n// 文字列を1行入力\nfunc StrStdin() (stringReturned string) {\n\tscanner := bufio.NewScanner(os.Stdin)\n\n\tscanner.Scan()\n\tstringReturned = scanner.Text()\n\n\tstringReturned = strings.TrimSpace(stringReturned)\n\treturn\n}\n\n// 空白や空文字だけの値を除去したSplit()\nfunc SplitWithoutEmpty(stringTargeted string, delim string) (stringReturned []string) {\n\tstringSplited := strings.Split(stringTargeted, delim)\n\n\tfor _, str := range stringSplited {\n\t\tif str != "" {\n\t\t\tstringReturned = append(stringReturned, str)\n\t\t}\n\t}\n\treturn\n}\n\n// デリミタで分割して文字列スライスを取得\nfunc SplitStrStdin(delim string) (stringReturned []string) {\n\t// 文字列で1行取得\n\tstringInput := StrStdin()\n\n\t// 空白で分割\n\t// stringSplited := strings.Split(stringInput, delim)\n\tstringReturned = SplitWithoutEmpty(stringInput, delim)\n\n\treturn\n}\n\n// デリミタで分割して整数値スライスを取得\nfunc SplitIntStdin(delim string) (intSlices []int, err error) {\n\t// 文字列スライスを取得\n\tstringSplited := SplitStrStdin(" ")\n\n\t// 整数スライスに保存\n\tfor i := range stringSplited {\n\t\tvar iparam int\n\t\tiparam, err = strconv.Atoi(stringSplited[i])\n\t\tif err != nil {\n\t\t\treturn\n\t\t}\n\t\tintSlices = append(intSlices, iparam)\n\t}\n\treturn\n}\n\nfunc main() {\n\tinput, _ := SplitIntStdin(" ")\n\tN, M := input[0], input[1]\n\n\tinput, _ = SplitIntStdin(" ")\n\tinput = input[0:N]\n\tsum := 0\n\tfor _, x := range input {\n\t\tsum += x\n\t}\n\n\tvar M_f float64 = float64(M)\n\tvar sum_f float64 = float64(sum)\n\n\tcount := 0\n\tfor _, x := range input {\n\t\tvar x_f float64 = float64(x)\n\t\tif x_f >= sum_f/(4.0*M_f) {\n\t\t\tcount += 1\n\t\t}\n\t}\n\tfmt.Println(sum_f / (4.0 * M_f))\n\tfmt.Println(count)\n}', 'a = list(map(int, input().split()))\nb = list(map(int, input().split()))\n\ncnt = 0\nfor i in b:\n if i >= sum(b)/(4*a[1]):\n cnt +=1\n else:\n pass\n \nif cnt >= a[1]:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s163225478', 's940544819', 's783721199']
|
[2940.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[172, 1762, 220]
|
p02718
|
u704158845
| 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\nsum = 0\nfor i in range(a):\n sum = sum + a[i]\nsum_divided = sum/(4*m)\ncnt = 0\nfor i in range(a):\n if a[i] >= sum_divided:\n cnt = cnt + 1\nif cnt >= m:\n print('Yes')\nelse:\n print('No')", "n,m = map(int,input().split())\na = list(map(int,input().split()))\n\nsum = 0\nfor i in range(a):\n sum = sum + a[i]\nsum_divided = sum/(4*m)\ncnt = 0\nfor i in range(a):\n if a[i] >= sum_divided:\n cnt = cnt + 1\nif cnt >= m:\n print('Yes')\nelse:\n print('No')", "n,m = map(int,input().split())\na = list(map(int,input().split()))\n\nsum = 0\nfor i in range(n):\n sum = sum + a[i]\nsum_divided = sum/(4*m)\ncnt = 0\nfor i in range(n):\n if a[i] >= sum_divided:\n cnt = cnt + 1\nif cnt >= m:\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s375511927', 's818746234', 's735640311']
|
[3060.0, 3064.0, 3064.0]
|
[17.0, 18.0, 17.0]
|
[267, 267, 267]
|
p02718
|
u704459429
| 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 = []\nfor i in range(n)\na[i] = list(map(int, input().split()))[i]\nsort(a)\nif a[m-1] > 1/4*m:\n print("Yes")\nelse:\n print("No")', 'n,m = map(int, input())\na = []\nfor i in range(n)\na[i] = list(input().split())[i]\nsort(a)\nif a[m-1] > 1/4*m:\n print("Yes")\nelse:\n print("No")', 'n,m = map(int, input().split())\n\ni = list(map(int, input().split()))\na=[]\nfor x in range(n):\n a.append(i[x])\na.sort(reverse = True)\nif a[m-1] >= sum(a)/(4*m):\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s302613687', 's763917556', 's465265863']
|
[2940.0, 2940.0, 3060.0]
|
[18.0, 18.0, 18.0]
|
[160, 142, 200]
|
p02718
|
u705982258
| 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())\nm = 0\nv = input().split()\nfor i in range(N): v[i] = int(v[i])\n \nv.sort(reverse=True)\nv_min = sum(v)/4/M\nprint(v_min)\n\nwhile len(v):\n if v.pop(0) >= v_min:\n m += 1\n else:\n break\n\nif M <= m:\n print("Yes")\nelse:\n print("No")', 'N,M = map(int,input().split())\nm = 0\nv = input().split()\nfor i in range(N): v[i] = int(v[i])\n \nv.sort(reverse=True)\nv_min = sum(v)/4/M\n\nwhile v[0]:\n if v.pop(0) >= v_min:\n m += 1\n\nif M <= m:\n print("Yes")\nelse:\n print("No")', 'N,M = map(int,input().split())\nm = 0\nv = input().split()\nfor i in range(N): v[i] = int(v[i])\n \nv.sort(reverse=True)\nv_min = sum(v)/4/M\n\nwhile len(v):\n if v.pop(0) >= v_min:\n m += 1\n else:\n break\n\nif M <= m:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s045190373', 's607536305', 's022922188']
|
[3064.0, 3064.0, 3064.0]
|
[17.0, 18.0, 18.0]
|
[263, 230, 250]
|
p02718
|
u707030679
| 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())\nA = list(map(int,input().split()))\n\nallvote=0\nallvote=sum(A)\n\n\nc=0\nfor a in A:\n if a>=allvote/(4*k) :\n c+=1\n\nif c>=k :\n ans = "Yes"\nelse:\n ans = "No"\nprint(ans,allvote,c)', 'n,k = map(int,input().split())\nA = list(map(int,input().split()))\n\nallvote=0\nallvote=sum(A)\n\n\nc=0\nfor a in A:\n if a>=allvote/(4*k) :\n c+=1\n\nif c>=k :\n ans = "Yes"\nelse:\n ans = "No"\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s821360732', 's678645672']
|
[8968.0, 9172.0]
|
[29.0, 25.0]
|
[235, 225]
|
p02718
|
u709079466
| 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_vote = sum(A)\n\ncnt = 0\n\nfor a in A:\n if a * 4 * m >= all_vote \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()))\n\nall_vote = sum(A)\n\ncnt = 0\n\nfor a in A:\n #if a >= all_vote / (4*m):\n if a * 4 * m >= all_vote \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()))\n\nall_vote = sum(A)\n\ncnt = 0\n\nfor a in A:\n if a * 4 * m >= all_vote\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()))\n\nall_vote = sum(A)\n\ncnt = 0\n\nfor a in A:\n #if a >= all_vote / (4*m):\n if a * 4 * m >= all_vote: \n cnt += 1\nif cnt >= m:\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s067717106', 's577700511', 's602985565', 's931498390']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0, 17.0]
|
[255, 282, 211, 282]
|
p02718
|
u714732628
| 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 = A[N-1]\nfor i in range(N-1):\n S += A[i]\n if A[i+1] < A[i]:\n a = A[i+1]\n A[i+1] = A[i]\n A[i] = a\n\nif A[M-1] > float(S)/(4.0*float(M)):\n print("Yes")\nelse:\n print("No")', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\nfor i in range(N-1):\n for j in range(i+1):\n if A[i+1-j] > A[i-j]:\n a = A[i-j]\n A[i-j] = A[i+1-j]\n A[i+1-j] = a\n\nS = 0\nfor i in range(N):\n S += A[i]\n\nif A[M-1] < float(S)/(4.0*float(M)):\n print("No")\nelse:\n print("Yes")']
|
['Wrong Answer', 'Accepted']
|
['s612004676', 's250236416']
|
[3064.0, 3064.0]
|
[17.0, 19.0]
|
[251, 309]
|
p02718
|
u716243724
| 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`.
|
['val1 = input().split()\nval2 = input().split()\ntotal = 0\nfor votes in val2:\n total += int(votes)\nthres = total * 1/4 / int(val1[1]) \ni = 0\nfor votes in val2:\n if int(votes) >= thres:\n i += 1\nif i >= int(val1[1]):\n print("yes")\nelse:\n print("no")\n', 'val1 = input().split()\nval2 = input().split()\ntotal = 0\nfor votes in val2:\n total += int(votes)\nthres = total * 1/4 / int(val1[1]) \ni = 0\nfor votes in val2:\n if int(votes) >= thres:\n i += 1\nif i >= int(val1[1]):\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s113916128', 's896391166']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[252, 252]
|
p02718
|
u720124072
| 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())\nans = 0\n\nfor i in range(n):\n if a[i] >= sum(a)*(1/(4*m)):\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()))\nans = 0\n\nfor i in range(n):\n if a[i] >= sum(a)*(1/(4*m)):\n ans += 1\n \nif ans >= m:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s309393611', 's114597906']
|
[9052.0, 8932.0]
|
[22.0, 26.0]
|
[187, 193]
|
p02718
|
u720636500
| 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(reversed = True)\nk = s/(4*m)\nif a[m-1] < k:\n print("No")\nelse:\n print("Yes")', '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("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("No")\nelse:\n print("Yes")']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s340348692', 's375491275', 's497893689']
|
[3060.0, 3060.0, 3060.0]
|
[18.0, 17.0, 17.0]
|
[165, 156, 156]
|
p02718
|
u723345499
| 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.sorted(reverse=True)\nif a[m-1] >= (sum(a)*(1/(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)*(1/(4*m))):\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s568823908', 's003195979']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[164, 162]
|
p02718
|
u726902498
| 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 = 0\nfor i in range(len(A)):\n TOTAL += A[i]\nif A[-1] and A[-2] > (1/(4*M))*TOTAL:\n print("Yes")\nelse:\n print("No")', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\nTOTAL = 0\nfor i in range(len(A)):\n TOTAL += A[i]\nif A[-1] <= (1/(4*M))*TOTAL:\n print("No")\nelse:\n print("Yes")', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\nTOTAL = 0\nfor i in range(len(A)):\n TOTAL += A[i]\nif A[-1] < (1/(4*M))*TOTAL:\n print("No")\nelse:\n print("Yes")', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\nTOTAL = 0\nfor i in range(len(A)):\n TOTAL += A[i]\nif A[-1] > (1/(4*M))*TOTAL:\n print("Yes")\nelse:\n print("No")', "N, M = map(int, input().split())\nlists, count = [int(x) for x in input().split()], 0\nfor x in lists:\n if x >= ((1 / (4 * M)) * sum(lists)):\n count += 1\nprint('Yes' if count >= M else 'No')"]
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s186081864', 's298941445', 's631360887', 's951823966', 's818465783']
|
[3060.0, 3060.0, 3060.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[197, 188, 187, 187, 198]
|
p02718
|
u727021494
| 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())\narr = list(map(int, input().split()))\nsums = 0\nfor i in arr:\n sums = sums + i\ncheck = (1 / (4*m))*sums\nfor i in arr:\n if i < check:\n print("No")\n break\n else:\n continue\nprint("Yes")', 'n, m = map(int, input().split())\narr = list(map(int, input().split()))\nsums = 0\ncount = 0\nfor i in arr:\n sums = sums + i\ncheck = (1 / (4*m))*sums\nfor i in arr:\n if i < check:\n count = 1\n break\n else:\n continue\nif count >= 1:\n print("No")\nelse:\n print("Yes")', 'N, M = map(int, input().split())\nA = list(set((map(int, input().split()))))\nprint(A)\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")', 'n, m = map(int, input().split())\nacc = n+m\narr = list(map(int, input().split()))\nsums = 0\ncount = 0\nfor i in arr:\n sums = sums + i\ncheck = (1 / (4*m))*sums\nfor i in arr:\n if i < check:\n count += 1\n else:\n if i == sums\n count = 0\n break\n continue\nif count >= 1:\n print("No")\nelse:\n print("Yes")', 'n, m = map(int, input().split())\narr = list(map(int, input().split()))\nsums = 0\nfor i in arr:\n sums = sums + i\ncheck = (1 / (4*m))*sums\nfor i in arr:\n if i < check:\n print("No")\n break\n else:\n continue\n', "N, M = map(int, input().split())\nA = list(map(int, input().split()))\n\ncheck = ((1 / (4 * M)) * sum(A))\nx = 0\nfor item in A:\n if item < check:\n x += 1\n\nans = N - x\n\nif ans >= M :\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s072262589', 's327108476', 's449978079', 's602141398', 's791016643', 's537849161']
|
[3060.0, 3064.0, 3060.0, 2940.0, 2940.0, 3060.0]
|
[17.0, 18.0, 17.0, 17.0, 18.0, 17.0]
|
[244, 293, 226, 351, 232, 226]
|
p02718
|
u727051308
| 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()]\n\nS = 0\n\nfor k in range (0 , N):\n\tS += A[k]\n\nfor j in range (0 , N):\n \tm = 0\n \tif A[j] >= S / ( 4 * M ):\n \tm = m + 1\n \nif m >= M:\n \tprint ( "Yes" )\nelse:\n \tprint ( "No" ) \n ', 'N, M = map(int, input().split())\nA = [int(i) for i in input().split()]\n\nS = 0\n\nfor k in range (0 , N):\n\tS += A[k]\n\nm = 0\nfor j in range (0 , N):\n\tif A[j] >= (S / ( 4 * M )):\n\t\tm = m + 1\n\nif m >= M:\n \tprint ( "Yes" )\nelse:\n \tprint ( "No" ) \n']
|
['Runtime Error', 'Accepted']
|
['s366775319', 's349302333']
|
[3188.0, 3060.0]
|
[17.0, 17.0]
|
[255, 241]
|
p02718
|
u728483880
| 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\ntotal = 0\n\nfor i in range(n):\n\ttotal=total+a[i]\nth=total/(4*m)\nprint(total,th)\n\nfor i in range(n):\n if(a[i]>=(th)):\n count=count+1\n#print(count)\nif(count>=m):\n print("Yes")\nelse:\n print("No")\n ', 'n,m =map(int,(input().split()))\na=list(map(int,input().split()))\ncount = 0\ntotal = 0\n\nfor i in range(n):\n\ttotal=total+a[i]\nth=total/(4*m)\n#print(total,th)\n\nfor i in range(n):\n if(a[i]>=(th)):\n count=count+1\n#print(count)\nif(count>=m):\n print("Yes")\nelse:\n print("No")\n \n ']
|
['Wrong Answer', 'Accepted']
|
['s897878543', 's480330148']
|
[3060.0, 3064.0]
|
[18.0, 17.0]
|
[275, 287]
|
p02718
|
u729600565
| 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`.
|
["\ni = list(map(int, input().split()))\nN = i[0]\nM = i[1]\nA = list(map(int, input().split()))\nS=sum(A)\nA_sorted=sorted(A,reverse=True)\nprint(S*1/4*M)\nif A_sorted[M-1] >= S*1/(4*M):\n print('Yes')\nelse:\n print('No')\n\n\n", "\ni = list(map(int, input().split()))\nN = i[0]\nM = i[1]\nA = list(map(int, input().split()))\nS=sum(A)\nA_sorted=sorted(A,reverse=True)\nif A_sorted[M-1] >= S*1/(4*M):\n print('Yes')\nelse:\n print('No')\n\n\n"]
|
['Wrong Answer', 'Accepted']
|
['s908876425', 's443710099']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[220, 205]
|
p02718
|
u729836751
| 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, = map(int, input().split())\n\nA.sort(reverse=True)\ntotal_point = sum(A)\n\nselectable = False\n\nif total_point * (1 / (4 * M)) =< A[M-1]:\n selectable = True\n\nif selectable:\n print('Yes')\nelse:\n print('No')\n", "N, M = map(int, input().split())\n*A, = map(int, input().split())\n\nA.sort(reverse=True)\ntotal_point = sum(A)\n\nselectable = False\n\nif total_point * (1 / (4 * M)) <= A[M-1]:\n selectable = True\n\nif selectable:\n print('Yes')\nelse:\n print('No')\n"]
|
['Runtime Error', 'Accepted']
|
['s508191233', 's586564866']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[249, 248]
|
p02718
|
u730807152
| 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()))\nans = 0\n\nnewlist = sorted(a,reverse=True)\n\nprint(newlist)\n\nfor i in range(m):\n if newlist[i] >= sum(a)*(1/(4*m)):\n ans += 1\nprint(ans)\n\nif ans==m:\n print("Yes")\n\nelse:\n print("No")', 'n,m = map(int,input().split())\na = list(map(int,input().split()))\nans = 0\n\nnewlist = sorted(a,reverse=True)\n\nfor i in range(m):\n if newlist[i] >= sum(a)*(1/(4*m)):\n ans += 1\n\nif ans==m:\n print("Yes")\n\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s252765724', 's476517464']
|
[9200.0, 9200.0]
|
[27.0, 31.0]
|
[262, 235]
|
p02718
|
u731253724
| 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`.
|
['INPUT = input().split()\nN = int(INPUT[0])\nM = int(INPUT[1])\nscore_list = input().split()\nscore_list_int = [int(n) for n in score_list]\n\nborder = sum(score_list_int)/4\n\nanswer = "yes"\n\nfor i in score_list_int:\n if i < border:\n N -= 1\n\nif N < M:\n answer = "no"\n \nprint(answer)', 'INPUT = input().split()\nN = int(INPUT[0])\nM = int(INPUT[1])\nscore_list = input().split()\nscore_list_int = [int(n) for n in score_list]\n\nborder = sum(score_list_int)/4/M\n\nanswer = "yes"\n\nfor i in score_list_int:\n if i < border:\n N -= 1\n\nif N < M:\n answer = "no"\n \nprint(answer)', 'INPUT = input().split()\nN = int(INPUT[0])\nM = int(INPUT[1])\nscore_list = input().split()\nscore_list_int = [int(n) for n in score_list]\n\nborder = sum(score_list_int)/4/M\n\nanswer = "Yes"\n\nfor i in score_list_int:\n if i < border:\n N -= 1\n\nif N < M:\n answer = "No"\n \nprint(answer)']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s049271724', 's354384729', 's343231254']
|
[3064.0, 3064.0, 3064.0]
|
[17.0, 17.0, 17.0]
|
[291, 293, 293]
|
p02718
|
u733132703
| 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\nans = 0\nsums = 0\n\nfor _ in range(N):\n sums += A[_]\n\n\nfor i in range(N):\n if A[i]//sums >= 1//4*M:\n ans += 1\n else:\n pass\n \n \n \n\nif ans >= M:\n print('Yes')\n \nelse:\n print('No')\n \nprint(sums)\n ", "from fractions import Fraction\n\nN,M = map(int,input().split())\nA = list(map(int,input().split()))\n\nans = 0\nsums = 0\n\nfor _ in range(N):\n sums += A[_]\n\n\nfor i in range(N):\n a = Fraction(A[i],sums)\n b = Fraction(1,4*M)\n if a >= b:\n ans += 1\n else:\n pass\n \n \n \n\nif ans >= M:\n print('Yes')\n \nelse:\n print('No')\n "]
|
['Wrong Answer', 'Accepted']
|
['s354469747', 's002465389']
|
[3060.0, 5340.0]
|
[19.0, 38.0]
|
[275, 326]
|
p02718
|
u735091636
| 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`.
|
['\nNM = input("").split()\nA = list(map(int, input().strip().split()))\n\nN = int(NM[0])\nM = int(NM[1])\nALL = sum(A)\nk = 0\nc = ALL/(4*M)\n\nprint(N, M, ALL, c)\nfor Ai in A:\n if Ai>=c:\n k += 1\n\nif k >= M:\n print("Yes")\nelse:\n print("No")\n', 'N = int(NM[0])\nM = int(NM[1])\nALL = sum(A)\nk = 0\nc = ALL/(4*M)\n\nprint(N, M, ALL, c)\nfor Ai in A:\n if Ai>=c:\n k += 1\n\nif k >= M:\n print("Yes")\nelse:\n print("No")\n', '\nNM = input("").split()\nA = list(map(int, input().strip().split()))\n\nN = int(NM[0])\nM = int(NM[1])\nALL = sum(A)\nk = 0\nc = ALL/(4*M)\n\nfor Ai in A:\n if Ai>=c:\n k += 1\n\nif k >= M:\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s463094620', 's699614562', 's582619105']
|
[3060.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[246, 177, 226]
|
p02718
|
u736189571
| 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 = input().split()\nitem = [int(x) for x in item]\n\nitem.sort(reverse=True)\n\ns = sum(item)\nres = 0\nfor i in range(n):\n if item[i] > s / (4*m):\n res += 1\n if res >= m:\n print('Yes')\n else:\n print('No')", "n, m = map(int, input().split())\nitem = input().split()\nitem = [int(x) for x in item]\n\nitem.sort(reverse=True)\n\ns = sum(item)\nres = 0\nfor i in range(n):\n if item[i] >= s / (4*m):\n res += 1\n if res >= m:\n print('Yes')\n else:\n print('No')\n", "n, m = map(int, input().split())\nitem = input().split()\nitem = [int(x) for x in item]\n\nitem.sort(reverse=True)\n\ns = sum(item)\nres = 0\nfor i in range(n):\n if item[i] >= s / (4*m):\n res += 1\n if res >= m:\n print('Yes')\n break\n else:\n print('No')\n break\n"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s355103432', 's361054510', 's541446770']
|
[3064.0, 3060.0, 3060.0]
|
[19.0, 18.0, 17.0]
|
[251, 253, 275]
|
p02718
|
u739843002
| 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(lambda x: int(x), input().split(" ")))\nA = list(map(lambda y: int(y), input().split(" ")))\nA.sort()\n \nprint("Yes") if 0.25 * sum(A) / M <= A[M - 1] else print("No")', 'N, M = list(map(lambda x: int(x), input().split(" ")))\nA = list(map(lambda y: int(y), input().split(" ")))\nA.sort(reverse=True)\n \nprint("Yes") if 0.25 * sum(A) / M <= A[M - 1] else print("No")']
|
['Wrong Answer', 'Accepted']
|
['s630840342', 's935223920']
|
[9060.0, 9124.0]
|
[27.0, 25.0]
|
[180, 192]
|
p02718
|
u740047492
| 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()]\ncount=0\n\nA=sum(a)//(4*m)\nfor i in range(n):\n if a[i]>A:\n count+=1\nif count>=m:\n print("Yes")\nelse:\n print("No")', 'n,m=map(int,input().split())\na=[int(i) for i in input().split()]\ncount=0\n \nA=sum(a)//(4*m)\nfor i in a:\n if a[i]>=A:\n count+=1\nif count>=m:\n print("Yes")\nelse:\n print("No")', 'n,m=map(int,input().split())\na=[int(i) for i in input().split()]\ncount=0\n \nA=sum(a)/(4*m)\nfor i in a:\n if i>=A:\n count+=1\nif count>=m:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s585758561', 's876300968', 's969556013']
|
[2940.0, 3060.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[184, 177, 173]
|
p02718
|
u743164083
| 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()))\ncnt = 0\nttl = sum(a)\nfor i in a:\n if i >= ttl // (4 * m):\n cnt += 1\nprint("Yes") if cnt == m else print("No")\n', 'n, m = list(map(int, input().split()))\na = list(map(int, input().split()))\ncnt = 0\nttl = sum(a)\nfor i in a:\n if i >= ttl / (4 * m):\n cnt += 1\nprint("Yes") if cnt >= m else print("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s787585894', 's211326964']
|
[9028.0, 9044.0]
|
[28.0, 29.0]
|
[195, 194]
|
p02718
|
u748722044
| 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()))\na.sort(reverse=True)\n\nlimit = sum(a)/(4*m)\ncanselect = True\nfor ae in a:\n if ae < limit:\n canselect = False\n\nif canselect:\n print("Yes")\nelse:\n print("No") ', 'n, m = list(map(int,input().split()))\na = list(map(int,input().split()))\na.sort(reverse=True)\n\nlimit = sum(a)/(4*m)\ncanselect = True\nfor i in range(0, m):\n if a[i] < limit:\n canselect = False\n\nif canselect:\n print("Yes")\nelse:\n print("No") ']
|
['Wrong Answer', 'Accepted']
|
['s438484406', 's289139833']
|
[3188.0, 3064.0]
|
[17.0, 19.0]
|
[248, 259]
|
p02718
|
u750485713
| 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())\nN = input().split()\nN = [int(n) for n in N]\nA = []\nsoutoku = 0\nfor i in N:\n soutoku += int(i)\nN = sorted(N, reverse=True)\nfor i in range(M):\n A.append(N[i])\nb = soutoku / (4*M)\n\nprint(N[int(M-1)])\nif int(N[int(M-1)]) < b:\n print("No")\nelse:\n print("Yes")', 'N, M = map(int, input().split())\nN = input().split()\nN = [int(n) for n in N]\nA = []\nsoutoku = 0\nfor i in N:\n soutoku += int(i)\nN = sorted(N, reverse=True)\nfor i in range(M):\n A.append(N[i])\nb = soutoku / (4*M)\n\nif int(N[int(M-1)]) < b:\n print("No")\nelse:\n print("Yes")']
|
['Wrong Answer', 'Accepted']
|
['s856255494', 's158555232']
|
[3064.0, 3064.0]
|
[18.0, 18.0]
|
[299, 280]
|
p02718
|
u750651325
| 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()\nlist_a = [int(n) for n in A]\ncount = 0\n\nwaru = 4 * M\nSUM = sum(list_a)\nvote = SUM / waru\n\nfor i in range(0, N):\n if list_a[i] > vote:\n count += 1\n else:\n pass\n\nprint(count)\n\nif count >= M:\n print("Yes")\nelse:\n print("No")\n', 'N, M = map(int, input().split())\nA = input().split()\nlist_a = [int(n) for n in A]\ncount = 0\n\nwaru = 4 * M\nSUM = sum(list_a)\nvote = SUM / waru\n\nfor i in range(0, N):\n if list_a[i] >= vote:\n count += 1\n else:\n pass\n\nif count >= M:\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s473743771', 's086549819']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[301, 288]
|
p02718
|
u750958070
| 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 = input()\ntotal_vote = sum(x)\ncount = 0\nfor y in x:\n if y >=(total_vote/(4*M)):\n count+=1\n \nif count>=M:\n print('Yes')\nelse:\n print('No')\n", "N,M = map(int, input().split())\nx = list(map(int, input().split()))\ntotal_vote = sum(x)\ncount = 0\nfor y in x:\n if y >=(total_vote/(4*M)):\n count+=1\n \nif count>=M:\n print('Yes')\nelse:\n print('No')\n"]
|
['Runtime Error', 'Accepted']
|
['s050639352', 's417104623']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[193, 217]
|
p02718
|
u753542444
| 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\nnum, m = map(int,input().split())\nlist = [int(x) for x in input().split()]\n\nsorted(list, reverse = True)\nleast = math.floor(sum(list) * (1/(4*m)))\ncount = 0\n\nprint(least)\n\nfor i in range(m):\n if list[i] < least:\n print("No")\n print(list[i],"<",least)\n break\n else:\n count += 1\n\nif count == m:\n print("Yes")\n', 'import math\nnum, m = map(int,input().split())\nlist = [int(x) for x in input().split()]\n\n\ncount = 0\n\nfor i in range(num):\n if list[i] < sum(list)/(4*m):\n None\n else:\n count += 1\n\nif count >= m:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s585720225', 's075688950']
|
[3060.0, 3060.0]
|
[18.0, 17.0]
|
[356, 251]
|
p02718
|
u762755436
| 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()\nfor i in a:\n if int(i) >= sum(map(int,a))* 1/(4*M):\n ans+=1\n\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(int,a))* 1/(4*M):\n ans+=1\n\nif ans >= M:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s184768382', 's890646260']
|
[3064.0, 2940.0]
|
[19.0, 19.0]
|
[163, 170]
|
p02718
|
u765758367
| 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())))\nans = sum(x >= sum(A) // 4 // M for x in A)\nprint(ans)\nif ans >= M:\n print('Yes')\nelse:\n print('No')\n", "N, M = map(int, input().split())\nA = sorted(list(map(int, input().split())))\nans = sum(x >= (sum(A) / (4 * M)) for x in A)\nprint('No' if ans < M else 'Yes')\n\n"]
|
['Wrong Answer', 'Accepted']
|
['s106816655', 's399214022']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[184, 158]
|
p02718
|
u768752804
| 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()\na = list.split()\na.sort(reverse=True)\nif a[M-1] >= sum(a) / 4*M:\n print("Yes")\nelse:\n print("No")\n', 'N, M = input().split()\na = list.split()\na.sort(reverse=True)\nif (a[M-1] >= sum(a) / 4*M)==True\n\tprint("Yes")\nelse print("No")\n', 'N, M = input.split()\na = list.split()\na.sort(reverse=True)\nif (a[M-1] >= sum(a) / 4*M)==True\n\tprint("Yes")\nelse print("No")', 'N, M = map(int,input().split())\na = list(map(int,input().split()))\na.sort(reverse=True)\nif a[M-1] >= sum(a) / (4*M):\n\tprint("Yes")\nelse:\n\tprint("No")']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s246077437', 's533913218', 's542459204', 's601299932']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0, 18.0]
|
[121, 126, 123, 149]
|
p02718
|
u770214286
| 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 pickup(vote, choice):\n\tflag = 0\n\tfor i in vote:\n\t\tif i >= 1 / choice * 4:\n\t\t\tcontinue\n\t\telse:\n\t\t\tflag = flag + 1\n\tif choice >= int(len(vote)) - flag:\n\t\treturn 0\n\telse:\n\t\treturn 1\n\nnumbers, choice = list(map(int, input().split()))\n\nvote = [numbers]\nvote = list(map(int, input().split()))\n\nif pickup(vote, choice) == 0:\n\tprint("Yes")\nelse:\n\tprint("No")\n', 'def pickup(vote, choice):\n\tflag = 0\n\tfor i in vote:\n\t\tif i >= 1 / choice * 4:\n\t\t\tcontinue\n\t\telse:\n\t\t\tflag = flag + 1\n\tif choice >= len(vote) - flag:\n\t\treturn 0\n\telse:\n\t\treturn 1\n\nnumbers, choice = list(map(int, input().split()))\n\nvote = [numbers]\nvote = list(map(int, input().split()))\n\nif pickup(vote, choice) == 0:\n\tprint("Yes")\nelse:\n\tprint("No")\n', 'def pickup(vote, choice):\n\tflag = 0\n\tsum_vote = 0\n\tfor i in vote:\n\t\tsum_vote = sum_vote + i\n\tfor i in vote:\n\t\tif i >= sum_vote / (choice * 4):\n\t\t\tcontinue\n\t\telse:\n\t\t\tflag = flag + 1\n\tif choice <= int(len(vote)) - flag:\n\t\treturn 0\n\telse:\n\t\treturn 1\n\nnumbers, choice = list(map(int, input().split()))\n\nvote = [numbers - 1]\nvote = list(map(int, input().split()))\n\nif pickup(vote, choice) == 0:\n\tprint("Yes")\nelse:\n\tprint("No")\n']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s744062884', 's993368258', 's961578494']
|
[3060.0, 3060.0, 3060.0]
|
[17.0, 18.0, 17.0]
|
[356, 351, 425]
|
p02718
|
u780147002
| 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\ndef check(A,M):\n flag = 0\n sumOfA = 0\n for i in A:\n sumOfA+=A\n condition = sumOfA/(4*M)\n if(M==1 and max(A)>condition):\n return "Yes"\n for i in A:\n if(i <= condition):\n continue\n else:\n flag+=1\n if(flag==M):\n return "Yes"\n return "No"\n\nprint(check(A,M) else "No")\n\n\n\n', 'N,M = map(int,input().split())\nA = list(map(int,input().split()))\n\n\n\ndef check(A,M):\n flag = 0\n condition = sum(A)/(4*M)\n if(M==1 and max(A)>condition):\n return "Yes"\n for i in A:\n if(i < condition):\n continue\n elif(i >= condition):\n flag+=1\n if(flag==M):\n return "Yes"\n return "No"\n\nprint(check(A,M))\n\n\n\n']
|
['Runtime Error', 'Accepted']
|
['s765829519', 's075687714']
|
[3064.0, 3060.0]
|
[17.0, 17.0]
|
[433, 389]
|
p02718
|
u785573018
| 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()))\ntotal = 0\nfor n in range(N):\n total += List[n]\nlimit = total/(4*M)\ncount = 0\nfor n in range(N):\n if List[n] >= limit:\n count += 1\nif count >= M:\n print("yes")\nelse:\n print("no")', 'N, M = map(int, input().split())\nList = list(map(int, input().split()))\ntotal = 0\nfor n in range(N):\n total += List[n]\nlimit = total/(4*M)\ncount = 0\nfor n in range(N):\n if List[n] >= limit:\n count += 1\nif count >= M:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s236350029', 's728177667']
|
[3064.0, 3064.0]
|
[17.0, 17.0]
|
[268, 268]
|
p02718
|
u787131053
| 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\nval = sum(A) / (4 * M)\nA.sort(reverse=True)\nflag = True\nfor i in range(0,M):\n print(A[i])\n if A[i] < val:\n flag = False\n break\n \nif flag:\n print("Yes")\nelse:\n print("No")', 'N, M = map(int, input().split())\nA = list(map(int, input().split(" ")))\n\nval = sum(A) / (4 * M)\nA.sort(reverse=True)\nflag = True\nfor i in range(0,M):\n if A[i] < val:\n flag = False\n break\n \nif flag:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s162089165', 's399184746']
|
[3064.0, 3064.0]
|
[41.0, 17.0]
|
[272, 256]
|
p02718
|
u792743880
| 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()))\ncriteria = sum(a) / (m * 4)\n\nans = 0\nfor i in a:\n if i >= criteria:\n ans += 1\n\nif ans >= m:\n print('YES')\nelse:\n print('NO')\n", "n, m = map(int, input().split())\na = list(map(int, input().split()))\ncriteria = sum(a) / (m * 4)\n\nans = 0\nfor i in a:\n if i >= criteria:\n ans += 1\n\nif ans >= m:\n print('Yes')\nelse:\n print('No')\n"]
|
['Wrong Answer', 'Accepted']
|
['s227503629', 's194039559']
|
[9112.0, 9164.0]
|
[28.0, 28.0]
|
[210, 210]
|
p02718
|
u793010149
| 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()))\nl.sort(reverse=True)\nif l[n-1] < sum(l)/4/m:\n print('No')\nelse:\n print('Yes')", "n,m = map(int,input().split())\nl = list(map(int,input().split()))\nl.sort(reverse=True)\nif l[m-1] < (sum(l)/4)/m:\n print('No')\nelse:\n print('Yes')"]
|
['Wrong Answer', 'Accepted']
|
['s645298388', 's989621570']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[145, 147]
|
p02718
|
u798073524
| 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()))\nA_sorted = sorted(A, reverse=True)\nmax_numbers = A_sorted[:M]\nA_sum = sum(A)\nprint("sum:", sum(A))\nfor i in max_numbers:\n if i < A_sum / (4 * M):\n print("No")\n break\nelse:\n print("Yes")', 'N, M = list(map(int, input().split()))\nA = list(map(int, input().split()))\nA_sorted = sorted(A, reverse=True)\nmax_numbers = A_sorted[:M]\nA_sum = sum(A)\nfor i in max_numbers:\n if i < A_sum / (4 * M):\n print("No")\n break\nelse:\n print("Yes")']
|
['Wrong Answer', 'Accepted']
|
['s024041288', 's408453581']
|
[3064.0, 3060.0]
|
[17.0, 18.0]
|
[280, 258]
|
p02718
|
u798260206
| 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_i = list(map(int,input().solit()))\nsum_A_i = sum(A_i)\nX = 0\n\nfor i in A_i:\n if i > sum_A_i/(4*M):\n x += 1\n \n if x >=M:\n print("Yes")\n else:\n print("No")\n ', 'N, M = map(int,input().split())\nl = list(map(int,input().split()))\n \nT = sum(l)\nV = 1/(4*M) * T\nS = len(list(filter(lambda x: x>=V, l)) )\n \nprint( "Yes" if S >= M else "No" )']
|
['Runtime Error', 'Accepted']
|
['s771413100', 's325001273']
|
[2940.0, 9144.0]
|
[17.0, 28.0]
|
[203, 174]
|
p02718
|
u798675549
| 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()))\nlst=list(map(int,input().split()))\nlst.sort()\nif lst[1-M]*4*M>=sum(lst):\n print('Yes')\nelse:\n print('No')", "N,M=list(map(int,input().split()))\nlst=list(map(int,input().split()))\nlst.sort()\nif lst[M-1]*4*M>sum(lst):\n print('Yes')\nelse:\n print('No')", "N,M=list(map(int,input().split()))\nlst=list(map(int,input().split()))\nlst.sort()\nif lst[0-M]*4*M>=sum(lst):\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s058562586', 's892099997', 's087559275']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0]
|
[142, 141, 142]
|
p02718
|
u806084713
| 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 = input().split()\nm = input().split()\n\na = len(m)\nsum = 0\nfor i in range(a):\n sum += int(m[i])\n\nitem2 = []\nfor i in range(a):\n item2.append(int(m[i]) / sum)\n\nans = 1 / (4 * int(n[1]))\n\nitem3 = []\nfor i in range(a):\n if item2[i] >= ans:\n item3.append(item2[i])\n\nif int(n[1]) == int(len(item3)):\n print('Yes')\nelse:\n print('No')\n \n\n", "n = input().split()\nm = input().split()\n\na = len(m)\nsum = 0\nfor i in range(a):\n sum += int(m[i])\n\nitem2 = []\nfor i in range(a):\n item2.append(int(m[i]) / sum)\n\nans = 1 / (4 * int(n[1]))\n\nitem3 = []\nfor i in range(a):\n if item2[i] >= ans:\n item3.append(item2[i])\n\nif int(n[1]) <= int(len(item3)):\n print('Yes')\nelse:\n print('No')\n \n\n"]
|
['Wrong Answer', 'Accepted']
|
['s410764876', 's475715441']
|
[3064.0, 3064.0]
|
[17.0, 19.0]
|
[343, 343]
|
p02718
|
u807435555
| 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\nvote = []\n\nfor j in range(N):\n all += A[j]\n\nfor i in range(N):\n if A[i] >= all // (4 * M):\n vote.append(A[i])\n\nif len(vote) >= M:\n print("Yes")\n\nelse:\n print("No")', 'N, M = map(int, input().split())\nA = list(map(int, input().split()))\n\nvote = []\nall = 0\n\nfor j in range(N):\n all += A[j]\n\nfor i in range(N):\n if A[i] >= all / (4 * M):\n vote.append(A[i])\n\nif len(vote) >= M:\n print("Yes")\n\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s906741658', 's640293435']
|
[3064.0, 3064.0]
|
[18.0, 17.0]
|
[252, 259]
|
p02718
|
u813286880
| 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()]\n\ntotal = sum(A)\n\nfor i in range(len(A)):\n if (A[i] / total) < (1 / M):\n print('{}'.format('No'))\n exit()\n\nprint('{}'.format('Yes'))\n\n", "N, M = map(int, input().split())\nA = [int(i) for i in input().split()]\n\ntotal = sum(A)\ncnt = 0\nfor i in range(len(A)):\n if (A[i] / total) >= (1 / (4 * M)): cnt += 1\n\nif cnt >= M:\n print('{}'.format('Yes'))\nelse:\n print('{}'.format('No'))\n\n"]
|
['Wrong Answer', 'Accepted']
|
['s505079260', 's299972345']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[221, 248]
|
p02718
|
u813993459
| 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\ntmp =list(map(int, input().split()))\nnum=list(map(int, input().split()))\nnum = np.array(num)\n\nif tmp[1]<=len(num[num>(num.sum()+(4*tmp[1])-1//(4*tmp[1]))]):\n print("Yes")\nelse:\n print("No")', 'tmp = list(map(int, input().split()))\nnum = list(map(int, input().split()))\n\ncount = 0\nb = sum(num)/(4*tmp[1])\nfor i in num:\n if i>=b:\n count+=1\n \nif tmp[1]<=count:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s013542657', 's858669402']
|
[21624.0, 3060.0]
|
[1581.0, 17.0]
|
[214, 220]
|
p02718
|
u816631826
| 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 = sum(a)/(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 = 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 continue\n\n else:\n count += 1\n\nif(count == m):\n print("YES")\n\nelse:\n print("NO")', "n,m=input().split()\nn=int(n)\nm=int(m)\nsum,c=0,0\nlt = list(map(int, input().split()))\nfor i in range(0,n):\n sum=sum+lt[i]\nfor i in range(0,n):\n if (sum/(4*m))<=lt[i]:\n c=c+1\nif c>=m:\n print('Yes')\nelse:\n print('No')"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s493842621', 's932685539', 's117434556']
|
[3064.0, 3064.0, 3064.0]
|
[17.0, 17.0, 17.0]
|
[242, 267, 233]
|
p02718
|
u819593641
| 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=sorted(a)\nif a[m-1] > sum(a)/4/m:\n print("Yes")\nelse:\n print("No")\n', 'n,m = map(int,input().split())\na=map(int,input().split())\na=sorted(a)\nif a[-m] >= sum(a)/4/m:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s414116981', 's911116217']
|
[3060.0, 2940.0]
|
[25.0, 18.0]
|
[133, 132]
|
p02718
|
u819611380
| 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()))\npo=list(filter(lambda x: x>=(1/4*m)*sum(a),a))\nprint("yes" if len(po)>=m else "no")', 'n,m = map(int,input().split())\na = list(map(int, input().split()))\npopular = list(filter(lambda e: e>=(1/(4*m))*sum(a),a))\nprint("Yes" if len(popular) >= m else "No")']
|
['Wrong Answer', 'Accepted']
|
['s919112080', 's491670615']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[148, 166]
|
p02718
|
u821265215
| 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()\ntotal = 0\nfor i in a:\n total += i\nok = 0\nfor i in range(m):\n if a[i] >= total / (4 * m):\n ok += 1\n \nif ok != m:\n print("No")\nelse:\n print("Yes")', 'n ,m = map(int, input().split())\na = list(map(int, input().split()))\na.sort()\ntotal = 0\nfor i in a:\n total += i\nok = 0\nfor i in range(1, m + 1):\n if a[-i] >= total / (4 * m):\n ok += 1\n\nif ok != m:\n print("No")\nelse:\n print("Yes")']
|
['Runtime Error', 'Accepted']
|
['s197480864', 's224259093']
|
[3064.0, 3064.0]
|
[18.0, 17.0]
|
[239, 236]
|
p02718
|
u823885866
| 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\nN, M = map(int, sys.stdin.readline().split())\nli = list(map(int, sys.stdin.readline().split))\nli.sort(reverse=False)\nif li[M-1] < sum(li)/(4*M):\n print('No')\nelse:\n print('Yes')", "import sys\nN, M = map(int, sys.stdin.readline().split())\nli = list(map(int, sys.stdin.readline().split()))\nli.sort(reverse=False)\nif li[M-1] < sum(li)/(4*M):\n print('No')\nelse:\n print('Yes')\n", "import sys\nN, M = map(int, sys.stdin.readline().split())\nli = list(map(int, sys.stdin.readline().split()))\nli.sort(reverse=True)\nif li[M-1] < sum(li)/(4*M):\n print('No')\nelse:\n print('Yes')\n"]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s777180877', 's798522620', 's541884786']
|
[3060.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[190, 193, 192]
|
p02718
|
u830881690
| 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[i] >= 1 / (4 * M) for i in N)\n\nif s >= M:\n print('Yes')\nelse:\n print('No')", "N, M = map(int, input().split())\nA = list(map(int, input().split()))\nsumA = sum(A[i] for i in range(N))\n\ns = sum(A[i] / sumA >= 1 / (4 * M) for i in range(N))\n\nif s >= M:\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Accepted']
|
['s994192263', 's703189199']
|
[2940.0, 3060.0]
|
[17.0, 24.0]
|
[156, 205]
|
p02718
|
u832066300
| 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().strip().split()))[:n]\nnew_papa = sorted(a, reverse=True)\nSum=sum(a)\nif(new_papa[m-1]>=Sum/(m*4)):\n print("YES")\nelse:\n print("No")', 'n, m = map(int,input().split())\na = list(map(int,input().strip().split()))[:n]\na.sort(reverse=True)\ncount=0\nSum=sum(a)\nif(a[m-1]>=Sum/(m*4)):\n print("YES")\nelse:\n print("No")', 'n,b= map(int, input().split())\n \na= list(map(int, input().split()))\n \nnew_list = sorted(a, reverse=True)\nsums = sum(a)\n \nif new_list[b-1] >= sums/(b*4):\n \tprint("Yes")\nelse:\n \tprint("No")']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s033196629', 's371591128', 's632755596']
|
[3060.0, 3060.0, 3060.0]
|
[17.0, 18.0, 17.0]
|
[193, 180, 193]
|
p02718
|
u834983620
| 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()))\naaa = list(map(int,input().split()))\n\nresult = [0]*a\nfor i in range(a):\n h = aaa[i]\n j = int(sum(aaa) / (4*b))\n\n if h > j:\n result[i] = 1\n else:\n result[i] = 0\n\nif result.count(1) >= b:\n ans = "yes"\nelse:\n ans = "no"\n\nprint(ans)', 'a,b = list(map(int,input().split()))\naaa = list(map(int,input().split()))\n\nresult = [0]*a\nfor i in range(a):\n h = aaa[i]\n j = int(sum(aaa) / (4*b))\n\n if h > j:\n result[i] = 1\n else:\n result[i] = 0\n\nif result.count(1) >= b:\n ans = "yes"\nelse:\n ans = "no"\n\nprint(ans)', 'a,b = list(map(int,input().split()))\naaa = list(map(int,input().split()))\n\nresult = [0]*a\nfor i in range(a):\n h = aaa[i]\n j = int(sum(aaa) / (4*b))\n\n if h > j:\n result[i] = 1\n else:\n result[i] = 0\n\nif result.count(1) >= b:\n ans = "yes"\nelse:\n ans = "no"\n\nprint(ans)', 'a,b = map(int,input().split())\naaa = list(map(int,input().split()))\n\nresult = [0]*a\nfor i in range(a):\n h = aaa[i]\n j = sum(aaa) / (4*b)\n\n if h > j:\n result[i] = 1\n else:\n result[i] = 0\n\nif result.count(1) >= b:\n ans = "yes"\nelse:\n ans = "no"\n\nprint(ans)', 'a,b = map(int,input().split())\naaa = list(map(int,input().split()))\n\naaa.sort(reverse=True)\nresult = [0]*b\nfor i in range(b):\n h = aaa[i]\n j = sum(aaa) / (4*b)\n\n if h > j:\n result[i] = 1\n else:\n result[i] = 0\n\nif result.count(1) >= b:\n ans = "yes"\nelse:\n ans = "no"\n\nprint(ans)', 'a,b = map(int,input().split())\naaa = list(map(int,input().split()))\n\naaa.sort(reverse=True)\nresult = [0]*b\nfor i in range(b):\n h = aaa[i]\n j = sum(aaa) / (4*b)\n\n if h >= j:\n result[i] = 1\n else:\n result[i] = 0\n\nif result.count(1) >= b:\n ans = "Yes"\nelse:\n ans = "No"\n\nprint(ans)']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s697951508', 's773167714', 's779222413', 's964109985', 's994244650', 's722071245']
|
[3064.0, 3064.0, 3064.0, 3060.0, 3064.0, 3064.0]
|
[17.0, 17.0, 17.0, 18.0, 17.0, 18.0]
|
[297, 297, 297, 286, 309, 310]
|
p02718
|
u838560769
| 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\n###\n# main\nif(__name__ == \'__main__\'):\n # input\n n, m = map(int, input().split(" "))\n a_arr = list(map(int, input().split(" ")))\n\n sum = 0\n for a in a_arr:\n sum += a\n threshold = sum / (4*m)\n\n a_arr.sort()\n\n print(a_arr[n-m])\n if a_arr[n-m] < threshold:\n print("No")\n else:\n print("Yes")\n\n# else:\n # do nothing\n', '# -*- coding: utf-8 -*-\n\n###\n# main\nif(__name__ == \'__main__\'):\n # input\n n, m = map(int, input().split(" "))\n a_arr = list(map(int, input().split(" ")))\n \n sum = 0\n for a in a_arr:\n sum += a\n threshold = sum / (4*m)\n \n a_arr.sort()\n \n if a_arr[n-m] < threshold:\n print("No")\n else:\n print("Yes")\n\n# else:\n # do nothing\n']
|
['Wrong Answer', 'Accepted']
|
['s177016811', 's992560484']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[390, 371]
|
p02718
|
u845650912
| 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\nif M == 0:\n print('No')\nif N < M:\n print('No')\n\nA = [int(input()) for i in range(N)]\n\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(1)\n else:\n B.append(0)\n\nif sum(B) > M:\n print('Yes')\nelse:\n print('No')\n", "N, M= map(int, input().split())\n\nif M == 0:\n print('No')\nif N < M:\n print('No')\n\nA = [int(input()) for i in range(N)]\n\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(1)\n else:\n B.append(0)\n\nif sum(B) >= M:\n print('Yes')\nelse:\n print('No')", "import numpy as np\nN, M= map(int, input().split())\n\nif M == 0:\n print('No')\nif N < M:\n print('No')\n\nA = [int(input()) for i in range(M)]\n\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(0)\n else:\n B.append(1)\n\nif sum(B) > N - M + 1:\n print('No')\nelse:\n print('Yes')", "import sys\n\nsys.setrecursionlimit(10**6)\n\nN, M= map(int, input().split())\n\nA = [int(input()) for i in range(N)]\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(1)\n else:\n B.append(0)\n\nif sum(B) >= M:\n print('Yes')\nelse:\n print('No')\n", "import numpy as np\nN, M= map(int, input().split())\n\nif M == 0:\n print('No')\nif N < M:\n print('No')\n\nA = [int(input()) for i in range(N)]\n\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(1)\n else:\n B.append(0)\n\nif sum(B) > N - M + 1:\n print('Yes')\nelse:\n print('No')\n", "import numpy as np\nN, M= map(int, input().split())\n\nif M == 0:\n print('No')\nif N < M:\n print('No')\n\nA = [int(input()) for i in range(N)]\n\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(0)\n else:\n B.append(1)\n\nif sum(B) > N - M + 1:\n print('No')\nelse:\n print('Yes')\n", "import numpy as np\nN, M= map(int, input().split())\n\nA = [int(input()) for i in range(N)]\n\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(0)\n else:\n B.append(1)\n\nif sum(B) > N - M + 1:\n print('No')\nelse:\n print('Yes')\n", "\nN, M= map(int, input().split())\n\nC = map(int, input().split())\n\nA = list(C)\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(1)\n else:\n B.append(0)\n\nif sum(B) >= M:\n print('No')\nelse:\n print('Yes')\n", "import sys\nsys.setrecursionlimit(10**3)\n\nN, M= map(int, input().split())\n\nA = [int(input()) for i in range(N)]\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(1)\n else:\n B.append(0)\n\nif sum(B) >= M:\n print('Yes')\nelse:\n print('No')", "\nN, M= map(int, input().split())\n\nC = map(int, input().split())\n\nA = list(C)\n\nB = []\nfor i in range(len(A)):\n if A[i] > sum(A)/4/M:\n B.append(1)\n else:\n B.append(0)\n\nif sum(B) > N - M +1:\n print('Yes')\nelse:\n print('No')\n", "\nN, M= map(int, input().split())\n\nC = map(int, input().split())\n\nA = list(C)\n\n#if N < M:\n# print('No')\n#if M == 0:\n# print('No')\n\nB = []\nfor i in range(len(A)):\n if A[i] >= sum(A)/4/M:\n B.append(1)\n else:\n B.append(0)\n\nif sum(B) >= M:\n print('Yes')\nelse:\n print('No')\n"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s015561952', 's053930148', 's543115720', 's606658142', 's607992340', 's661937616', 's725790744', 's784350164', 's942656797', 's980775751', 's634323224']
|
[3060.0, 3188.0, 13560.0, 3060.0, 12448.0, 12444.0, 21532.0, 2940.0, 3064.0, 3060.0, 2940.0]
|
[17.0, 17.0, 148.0, 17.0, 156.0, 152.0, 304.0, 17.0, 18.0, 18.0, 17.0]
|
[288, 288, 314, 276, 315, 315, 261, 241, 274, 248, 300]
|
p02718
|
u845847173
| 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(e) for e in input().split()]\n\ns = sum(a) / (4 * m)\nans = 0\nfor i in range(len(a)):\n if a[i] >= s:\n ans += 1\n else:\n ans += 0\n if ans >= n:\n print("Yes")\n else:\n print("No")', 'n, m = map(int, input().split())\na = [int(e) for e in input().split()]\n\ns = sum(a) / (4 * m)\nans = 0\nfor i in range(len(a)):\n if a[i] >= s:\n ans += 1\n else:\n ans += 0\n if ans == n:\n print("Yes")\n else:\n print("No")', 'n, m = map(int, input().split())\na = [int(e) for e in input().split()]\n\ns = sum(a) / (4 * m)\nans = 0\nfor i in range(n):\n if a[i] >= s:\n ans += 1\n else:\n ans += 0\nif ans >= m:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s354821663', 's974683733', 's258478224']
|
[3064.0, 3060.0, 3060.0]
|
[18.0, 17.0, 17.0]
|
[254, 254, 233]
|
p02718
|
u846385882
| 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=int(input())\nA=list(map(int, input().split()))\nS=sum(A)\n\nA.sort(reverse=True)\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\tprint("Yes")\nelse:\n\tprint("No")\n']
|
['Runtime Error', 'Accepted']
|
['s583986484', 's521988359']
|
[3060.0, 2940.0]
|
[18.0, 20.0]
|
[136, 156]
|
p02718
|
u846516787
| 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\ndef main():\n n, m = map(int, input().split())\n l = list(map(int, input().split()))\n d = sum(l) / 4 / m\n l.sort()\n for li in l:\n if li < d:\n print ("No")\n return\n print ("Yes")\n return\n\nif __name__ == \'__main__\':\n main()', 'def main():\n n, m = map(int, input().split())\n l = list(map(int, input().split()))\n d = sum(l) / 4 / m\n l.sort()\n for i in l:\n if l[i] < d:\n print ("No")\n return\n print ("Yes")\n return\n\nif __name__ == \'__main__\':\n main()', 'import sys\ndef main():\n n, m = map(int, input().split())\n l = list(map(int, input().split()))\n d = sum(l) / (4 * m)\n cnt = 0;\n for li in l:\n if li >= d:\n cnt = cnt + 1\n if cnt >= m :\n print ("Yes")\n else :\n print ("No")\n return\n\nif __name__ == \'__main__\':\n main()']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s372457722', 's679801125', 's433850232']
|
[3060.0, 3060.0, 3064.0]
|
[17.0, 17.0, 17.0]
|
[253, 243, 288]
|
p02718
|
u846813901
| 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`.
|
['#!/usr/bin/env python3\nimport sys\n\ndef main():\n \n n,m = map(int,input().split())\n a = list(map(int,input().split()))\n t=sum(a)\n a.sort()\n a.reverse()\n print(a[m])\n \n if a[m-1]>=t/(4*m):\n print("Yes")\n else:\n print("No")\n\nmain()\n\n', '#!/usr/bin/env python3\nimport sys\n\ndef main():\n \n n,m = map(int,input().split())\n a = list(map(int,input().split()))\n t=sum(a)\n a.sort()\n a.reverse()\n \n if a[m-1]>=t/(4*m):\n print("Yes")\n else:\n print("No")\n\nmain()\n\n']
|
['Runtime Error', 'Accepted']
|
['s701746096', 's842138694']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[273, 257]
|
p02718
|
u849151695
| 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`.
|
['\nN, M = map(int,input().split())\nA = list(map(int,input().split()))\n\n#print(M)\nA.sort()\n#print(A)\nlimit = sum(A)/(4*M)\n#print(limit)\ncount = 0\nfor i in range(N):\n if A[i] > limit:\n count +=1\n\nprint(count)\n\n#print(N-n-1)\nif count > M:\n print("Yes")\nelse:\n print("No")', '#input\nN, M = map(int,input().split())\nA = list(map(int,input().split()))\n\n#count num\ncount = 0\nfor i in range(N):\n if A[i] * 4 * M >= sum(A): #A[i] = sum(A)/(4*M)\n count +=1\n\n\nif count >= M:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s551548480', 's383644375']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[282, 258]
|
p02718
|
u851125702
| 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()))\nnew_A= sorted(A,reverse=True)\nif(new_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()))\nnew_A= sorted(A,reverse=True)\nif(new_A[M-1]>=sum(A)/(4*M)):\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Accepted']
|
['s440006615', 's044897217']
|
[2940.0, 3060.0]
|
[17.0, 18.0]
|
[159, 160]
|
p02718
|
u853728588
| 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()\ntotal = sum(a)\nif total/(4*m) > a[m]:\n print("No")\nelse:\n print("Yes")', 'n, m = map(int,input().split())\na = list(map(int,input().split()))\na.sort()\ntotal = sum(a)\nif total/(4*m) > a[-m]:\n print("No")\nelse:\n print("Yes")']
|
['Runtime Error', 'Accepted']
|
['s278627527', 's858118932']
|
[9156.0, 9036.0]
|
[30.0, 30.0]
|
[148, 149]
|
p02718
|
u854612823
| 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()))\nsum_a = sum(a)\nborder = sum_a / (4*m)\nkosu = 0\nfor i in a:\n if i >= border:\n kosu += 1\nif kosu >= m:\n print('Yes')\nelse:\n print('No')", "n,m = map(int,input().split())\na = list(map(int,input().split()))\nsum_a = sum(a)\nborder = sum_a / (4*m)\nkosu = 0\nfor i in a:\n if i >= border\n kosu += 1\nif kosu >= m:\n print('Yes')\nelse:\n print('No')\n ", "n,m = map(int,input().split())\na = list(map(int,input().split()))\nsum_a = sum(a)\nborder = sum_a / (4*m)\nkosu = 0\nfor i in a:\n if i >= border:\n \tkosu += 1\nif kosu >= m:\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s462774615', 's787204277', 's115046287']
|
[2940.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[203, 205, 204]
|
p02718
|
u854780853
| 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`.
|
['line = input().rstrip().split(" ")\nN = [str(i) for i in line]\n\nvote = input().rstrip().split(\' \')\nV = [str(i) for i in vote]\nflag = 0\nC = N[0]\nfor i in range(int(C)):\n if int(V[i]) > (1/(4*int(N[1]))):\n flag = flag + 1\n \nif flag == int(N[1]):\n print("Yes")\n \nelif flag != 1:\n print(\'No\')\n ', "N, M = map(int, input().split())\nvote = list(map(int,input().split()))\n\nvotes = sum(vote)\nans = [i for i in L if i * 4 * M >= votes]\n\nif len(ans) >= M:\n print('Yes')\n \nelse:\n print('No')", "N, M = map(int, input().split())\nvote = list(map(int,input().split()))\n\nvotes = sum(vote)\nans = [i for i in vote if i * 4 * M >= votes]\n\nif len(ans) >= M:\n print('Yes')\n \nelse:\n print('No')"]
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s208185871', 's860403869', 's562151335']
|
[3064.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0]
|
[308, 195, 198]
|
p02718
|
u856282038
| 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())\n\nall_vote = sum(A)\nminimum = all_vote/(4*M)\ncount = 0\nfor i in A:\n if i >= minimum:\n count += 1\nif count >= M:\n print("Yes")\nelse:\n print("No")\n', 'N, M = map(int,input().split())\nA = map(int,input().split())\n\nall_vote = sum(A)\nminimum = all_vote//(4*M)\ncount = 0\nfor i in A:\n if i >= minimum:\n count += 1\nif count >= M:\n print("Yes")\nelse:\n print("No")\n', 'N, M = map(int,input().split())\nA = map(int,input().split())\n\nall_vote = sum(A)\nminimum = all_vote//(4*M)\ncount = 0\nfor i in A:\n if i > minimum:\n count += 1\nif count >= M:\n print("Yes")\nelse:\n print("No")\n', 'N, M = map(int,input().split())\nA = list(map(int,input().split()))\n\nall_vote = sum(A)\nminimum = all_vote/(4*M)\ncount = 0\nfor i in A:\n if i >= minimum:\n count += 1\nif count >= M:\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s269446203', 's755025945', 's983654066', 's862470802']
|
[3060.0, 3060.0, 3060.0, 3060.0]
|
[18.0, 17.0, 17.0, 17.0]
|
[211, 212, 211, 217]
|
p02718
|
u860966226
| 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`.
|
['data = input().split()\n\nn = int(data[0])\nm = int(data[1])\n\npro = [int(s) for s in input().split()]\n\nvote = 0\nfor i in pro:\n vote += i\n\npro.sort(reverse=true)\n\nif pro[m - 1] < 1 / (4 * vote):\n print("No")\nelse:\n print("Yes")\n', 'data = input().split()\n \nn = int(data[0])\nm = int(data[1])\n \npro = [int(s) for s in input().split()]\n \nvote = 0\nfor i in pro:\n vote += i\n \ns_pro = sorted(pro, reverse=True)\n\nif s_pro[m - 1] < vote * 1 / (4 * m):\n print("No")\nelse:\n print("Yes")']
|
['Runtime Error', 'Accepted']
|
['s761941758', 's339228008']
|
[3060.0, 3064.0]
|
[17.0, 17.0]
|
[227, 247]
|
p02718
|
u863721754
| 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 = int(input())\nb = int(input())\nc = list(map(int,input().split()))\nsum = 0\nfor i in range c:\n sum = sum + i\ncount = 0\nvote = (1/(4*b))*sum\nfor j in c:\n if j>=vote:\n count = count + 1\nif count>=b:\n print("Yes")\nelse:\n print("No")', 'a = int(input())\nb = int(input())\nc = list(map(int,input().split()))\nsum = 0\nfor i in c:\n sum = sum + i\ncount = 0\nvote = (1/(4*b))*sum\nfor j in c:\n if j>=vote:\n count = count + 1\nif count>=b:\n print("Yes")\nelse:\n print("No")', 'a,b = map(int,input().split())\nc = list(map(int,input().split()))\nsum = 0\nfor i in range(0,n,1):\n sum = sum + c[i]\ncount = 0\nvote = (1/(4*b))*sum\nfor j in c:\n if j>=vote:\n count = count + 1\nif count>=b:\n print("Yes")\nelse:\n print("No")', 'a,b = map(int,input().split())\nc = list(map(int,input().split()))\nsum = 0\nfor i in c:\n sum = sum + i\nvote = (1/(4*b))*sum\ncount = 0\nfor j in c:\n if j>=vote:\n count = count + 1\n\nif count>=b:\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s099353321', 's307916628', 's983397094', 's870951320']
|
[2940.0, 3060.0, 3064.0, 3064.0]
|
[17.0, 18.0, 18.0, 18.0]
|
[237, 231, 242, 229]
|
p02718
|
u863964720
| 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 = [int(N) for N in input().split()]\nX=0\nF=int(sum(A)/(4*M))\nfor i in range(N):\n if A[i] >= F:\n X+=1\nif X>=M:\n print('Yes')\nelse:\n print('No')", "N,M = map(int, input().split())\nA = [int(N) for N in input().split()]\nX=0\nF=sum(A)/(4*M)\nfor i in range(N):\n if A[i] >= F:\n X+=1\nif X>=M:\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Accepted']
|
['s610648550', 's205243059']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[189, 186]
|
p02718
|
u864085306
| 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()))\nvotes.sort(reverse=True) \nfor i in range(M):\n if(votes[i]/sum(votes) < 1/(4*M)):\n print("No")\n \n \n\n\n', 'N,M = map(int,input().split())\nvotes = list(map(int,input().split()))\nvotes.sort(reverse=True) \nans ="Yes"\nfor i in range(M):\n if(votes[i]/sum(votes) < 1/(4*M)):\n ans = "No"\n break;\nprint(ans)\n\n\n']
|
['Wrong Answer', 'Accepted']
|
['s972357338', 's606181880']
|
[8928.0, 9164.0]
|
[26.0, 24.0]
|
[187, 209]
|
p02718
|
u866769581
| 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)\nsum_vote = sum(a)\njudge = sum_vote / (4*m)\nans = 'Yes'\nfor x in a[:m:]:\n print(x,judge)\n if x < judge:\n ans = 'No'\n break\nprint(ans)", "n,m = map(int,input().split())\na = list(map(int,input().split()))\na.sort(reverse=True)\nsum_vote = sum(a)\njudge = sum_vote / (4*m)\nans = 'Yes'\nfor x in a[:m:]:\n if x < judge:\n ans = 'No'\n break\nprint(ans)"]
|
['Wrong Answer', 'Accepted']
|
['s591596732', 's485206554']
|
[3060.0, 3064.0]
|
[17.0, 18.0]
|
[240, 221]
|
p02718
|
u875449556
| 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()))\nS = sum(A)\nx = S/(4*m)\n\ncount = 0\n\nfor i in A:\n if i >= x:\n count += 1\n\nif count>=M:\n print("Yes")\nelse:\n print("No")', 'N,M = map(int, input().split())\nA = sorted(map(int, input().split()), reverse=True)\nS = sum(A)\n\n\nif A[M-1]>=S/(4*M):\n print("Yes")\nelse:\n print("No") \n\n']
|
['Runtime Error', 'Accepted']
|
['s603430952', 's897134610']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[202, 158]
|
p02718
|
u876225099
| 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)\nsu = 0\ncorrect = True\nfor i in alist:\n su += i\nfor i in range[M-1]:\n if alist[i] < 1/(4*M) :\n print("No")\n correct = False\nif correct:\n print("Yes")\n', 'N, M=map(int,input().split())\nalist = list(map(int,input().split()))\nalist.sort(reverse = True)\nsum = 0\ncorrect = True\nfor i in alist:\n sum += i\nfor i in range[M-1]:\n if alist[i] < 1/(4*M) :\n print("No")\n correct = False\nif correct:\n print("Yes")', 'N, M=map(int,input().split())\nalist = list(map(int,input().split()))\nalist.sort(reverse = True)\nabc = sum(alist)\nif alist[M-1] >= abc/(4*M):\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s150444291', 's704262378', 's852980106']
|
[3064.0, 3064.0, 3060.0]
|
[17.0, 18.0, 17.0]
|
[268, 269, 179]
|
p02718
|
u878212264
| 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`.
|
['arrayNM = list(map(int, input.split()))\narray = list(map(int, input.split()))\ntokuhyousuu = 1 / (4 * array[1])\nninnkiCounter = 0\nfor num in array:\n if ((float)num >= tokuhyosuu):\n ninnkiCounter += 1\n \n\nif (arrayNM[1] <= ninnkiCounter):\n print("Yes")\nelse:\n print("No")', 'arrayNM = list(map(int, input().split()))\narray = list(map(int, input().split()))\nsoutoku = 0\nfor num in array:\n soutoku += num\ntokuhyousuu = soutokuku / (4 * float(array[1]))\nninnkiCounter = 0\nfor num in array:\n if (float(num) >= tokuhyousuu):\n ninnkiCounter += 1\n \n\nif (arrayNM[1] <= ninnkiCounter):\n print("Yes")\nelse:\n print("No")', 'arrayNM = list(map(int, input().split()))\narray = list(map(int, input().split()))\nsoutoku = 0\nfor num in array:\n soutoku += num\ntokuhyousuu = soutoku / (4 * float(arrayNM[1]))\nninnkiCounter = 0\nfor num in array:\n if (float(num) >= tokuhyousuu):\n ninnkiCounter += 1\n \n\nif (arrayNM[1] <= ninnkiCounter):\n print("Yes")\nelse:\n print("No")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s213381871', 's880500712', 's477169702']
|
[2940.0, 3064.0, 3060.0]
|
[17.0, 18.0, 18.0]
|
[277, 344, 344]
|
p02718
|
u880277518
| 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()))\nsm=sum(A)\nre=0\nfor a in A:\n if a>(sm/(4*M)):\n re+=1\nprint(re)\nif re>=M:\n print('Yes')\nelse:\n print('No')\n", "N,M=map(int,input().split())\nA=list(map(int,input().split()))\nsm=sum(A)\nre=0\nfor a in A:\n if a>(sm/(4*M)):\n re+=1\n#print(re)\nif re==M:\n print('Yes')\nelse:\n print('No')\n", "N,M=map(int,input().split())\nA=list(map(int,input().split()))\nsm=sum(A)\nre=0\nfor a in A:\n if a>=(sm/(4*M)):\n re+=1\n#print(re)\nif re>=M:\n print('Yes')\nelse:\n print('No')\n"]
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s249492791', 's766150807', 's634111389']
|
[3060.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[183, 184, 185]
|
p02718
|
u886902015
| 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())\nans=0\naaa=soted(li reverse=True)\nfor i in range(m):\n if aaa[i]*4m>=sum(li):\n ans+=1\nif ans==m:\n print("Yes")\nelse:\n print("No")\n\n', 'N,M= map(int,input().split())\nA = list(map(int, input().split()))\ncount=0\nfor i in range(M):\n if A.sort(reverse=True)[i]>=(sum(A)/4*M):\n count=count+1\nif count==M:\n print("Yes")\nelse:\n print("No")\n', 'n,m=map(int,input().split())\nli=list(map(int,input().split()))\nans=0\nq=sorted(li,reverse=True)\nfor i in range(m):\n if q[i]*4*m>=sum(li):\n ans+=1\nif ans==m:\n print("Yes")\nelse:\n print("No")\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s037428387', 's114260388', 's131747429']
|
[8844.0, 2940.0, 9076.0]
|
[27.0, 17.0, 29.0]
|
[207, 213, 205]
|
p02718
|
u892006633
| 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()))\n\nlist.sort(reverse=True)\nprint(list)\n\nif list[m-1] > sum(list)/(4*m):\n print("Yes")\nelse:\n print("No")', 'n, m = map(int, input().split())\nlist = list(map(int, input().split()))\n\nlist.sort(reverse=True)\n\nif list[m-1] >= sum(list)/(4*m):\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s721464255', 's954700926']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[180, 169]
|
p02718
|
u892340697
| 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()\n\nif A[-M]/sum(A) < 1/(2*M) :\n print("No")\nelse:\n print("Yes")', 'N,M = map(int,input().split())\nA = list(map(int,input().split()))\nA.sort()\n\nif A[-M]/sum(A) < 1/(4*M) :\n print("No")\nelse:\n print("Yes")\n ']
|
['Wrong Answer', 'Accepted']
|
['s775488484', 's594814958']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[142, 147]
|
p02718
|
u892882715
| 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\ntotal = sum(a)\nresult = "Yes"\nfor vote in a:\n if vote < 1/(4*m) * total:\n result = "No"\n break\n\nprint(result)\n', 'n, m = map(int, intput().split())\na = list(map(int, intput().split()))\n\ntotal = sum(a)\nfor vote in a:\n if vote < 1/(4*m) * total:\n print("No")\n \nprint("Yes")', 'n, m = map(int, input().split())\na = list(map(int, input().split()))\n\na.sort(reverse=True)\ntotal = sum(a)\n\nif a[m - 1] < 1/(4*m) * total:\n print("No")\nelse:\n print("Yes")\n']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s082186173', 's152988412', 's517922503']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 18.0]
|
[187, 164, 177]
|
p02718
|
u893297141
| 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()))\nsum = 0\nfor i in A:\n sum += i\nA.sort()\nif A[m-1] > sum/(4*m):\n print("Yes")\nelse:\n print("No")\n', 'n,m = map(int,input().split())\nA = list(map(int,input().split()))\nsum = 0\nfor i in A:\n sum += i\nA.sort()\nif A[m-1] >= sum/(4*m):\n print("Yes")\nelse:\n print("No")\n', 'n,m = map(int,input().split())\nA = list(map(int,input().split()))\nsum = 0\nfor i in A:\n sum += i\nA.sort(reverse=True)\nif A[m-1] >= sum/(4*m):\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s200007558', 's281226105', 's831679889']
|
[9096.0, 9000.0, 9164.0]
|
[28.0, 31.0, 29.0]
|
[164, 165, 177]
|
p02718
|
u894521144
| 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\nA.sort()\nreal = A[M-1] / sum(A)\nideal = 1 / (4 * M)\n\nif real >= ideal:\n print("Yes")\nelse:\n print("No")\n', 'N, M = list(map(int, input().split()))\nA = list(map(int, input().split()))\n\nA.sort(reverse = True)\nreal = A[M-1] / sum(A)\nideal = 1 / (4 * M)\n\nif real >= ideal:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s379370996', 's863062103']
|
[2940.0, 3064.0]
|
[17.0, 18.0]
|
[186, 199]
|
p02718
|
u900066675
| 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\tif a >= S / (4*M):\n\t\tcnt += 1\n\tif cnt >= M:\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")', 'N, M = map(int,input().split())\nA = list(map(int,input().split()))\nS = sum(A)\ncnt = 0\nfor a in A:\n\tif a >= S / (4*M):\n\t\tcnt += 1\nif cnt >= M:\n\tprint("Yes")\nelse:\n\tprint("No")']
|
['Wrong Answer', 'Accepted']
|
['s131455123', 's719665610']
|
[3064.0, 3060.0]
|
[17.0, 17.0]
|
[178, 174]
|
p02718
|
u907403674
| 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()))\nlimit = sum(l)/(4*m)\nl.sort(reverse=True)\nprint(l)\nprint(l[m-1])\nprint(sum(l))\nprint(limit)\nif l[m-1] < limit:\n print("No")\nelse:\n print("Yes")', 'n,m = map(int, input().split())\nl = list(map(int, input().split()))\nlimit = sum(l)/(4*m)\nl.sort(reverse=True)\nif l[m-1] < limit:\n print("No")\nelse:\n print("Yes")']
|
['Wrong Answer', 'Accepted']
|
['s605199317', 's586761379']
|
[3064.0, 3060.0]
|
[17.0, 17.0]
|
[217, 167]
|
p02718
|
u908243968
| 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(w) for w in input().strip().split()]\narr = [int(w) for w in input().strip().split()]\n\nss = sum(arr)\nfrac = ss//(4*m)\nflag = False\narr.sort()\nfor i in range(m):\n if arr[i] > frac:\n flag = True\n else:\n flag = False\n break\nif flag:\n print("Yes")\nelse:\n print("No")', 'n, m = [int(w) for w in input().strip().split()]\narr = [int(w) for w in input().strip().split()]\n \nss = sum(arr)\nfrac = ss/(4*m)\narr.sort(reverse=True)\nif arr[m-1] >= frac:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s284218355', 's737232379']
|
[3060.0, 3060.0]
|
[17.0, 17.0]
|
[286, 207]
|
p02718
|
u910247652
| 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(set((map(int, input().split()))))\nprint(A)\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")', "N, M = map(int, input().split())\nA = list(map(int, input().split()))\n\ncheck = ((1 / (4 * M)) * sum(A))\nx = 0\nfor item in A:\n if item < check:\n x += 1\n\nans = N - x\n\nif ans >= M :\n print('Yes')\nelse:\n print('No')\n "]
|
['Wrong Answer', 'Accepted']
|
['s993548844', 's917792667']
|
[3060.0, 3060.0]
|
[17.0, 18.0]
|
[226, 231]
|
p02718
|
u910536093
| 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`.
|
['i1 = input()\ni1 = i1.split()\ntypes = int(i1[0])\nselect = int(i1[1])\n\ni2 = input()\ni2 = [int(n) for n in i2.split()]\ni2.sort(reverse=True)\n\nsummary = sum(i2)\nthreshold = summary / (select * 4)\nprint("i2=", i2)\nprint("summary=", summary)\nprint("threshold=", threshold)\n\nif i2[select-1] < threshold :\n print("No")\nelse:\n print("Yes")\n', 'import sys\nimport math\n\nn, m = list(map(int, input().split()))\na = list(map(int, input().split()))\n\ns = sum(a)\na.sort(reverse=True)\nborder = s / (4 * m)\n\nans = True\n\nfor i in range(m):\n if (a[i] >= border):\n pass\n else:\n ans = False\n break\n\nif (ans):\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s181672706', 's441317989']
|
[3064.0, 9188.0]
|
[17.0, 27.0]
|
[337, 317]
|
p02718
|
u912208257
| 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, reverse=True)\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 = sorted(A, reverse=True)\nif A[M-1]<(sum(A)/(4*M)):\n print("No")\nelse:\n print("Yes")']
|
['Runtime Error', 'Accepted']
|
['s231071787', 's253278897']
|
[9088.0, 9180.0]
|
[27.0, 26.0]
|
[154, 158]
|
p02718
|
u915066452
| 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(float, input().split()))\nA=sum(a)/(4*m)\nN=sum(x>=A for x in a)\nif N>=m:\n print("yes")\nelse:\n print("No")', 'n,m=map(int, input().split())\na=list(map(float, input().split()))\nA=sum(a)/(4*m)\nN=sum(x>=A for x in a)\nif N>=m:\n print("Yes")\nelse:\n print("No")\n']
|
['Wrong Answer', 'Accepted']
|
['s551399960', 's964926109']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[151, 152]
|
p02718
|
u918817732
| 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()))\nALL=sum(A)\nprint(ALL)\nave=ALL/(4*M)\ncount=0\nfor i in range(N):\n if(A[i]>=ave):\n count+=1\n else:\n pass\nif(count>=M):\n print("Yes")\nelse:\n print("No")', 'N,M=map(int,input().split())\nA=list(map(int,input().split()))\nALL=sum(A)\nave=ALL/(4*M)\ncount=0\nfor i in range(N):\n if(A[i]>=ave):\n count+=1\n else:\n pass\nif(count>=M):\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s984716440', 's299792332']
|
[3064.0, 3064.0]
|
[17.0, 17.0]
|
[236, 225]
|
p02718
|
u920604133
| 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(x) for x in input().split()]\n\nthreshold = sum(A) / (4*M)\n\nprint("threshold is ",threshold)\n\ngokaku = 0\n\nfor i in A:\n if i >= threshold:\n gokaku +=1\n\nif gokaku >= M:\n print("Yes")\nelse:\n print("No")', 'N, M = map(int,input().split())\nA= [int(x) for x in input().split()]\n\nthreshold = sum(A) / (4*M)\n\ngokaku = 0\n\nfor i in A:\n if i >= threshold:\n gokaku +=1\n\nif gokaku >= M:\n print("Yes")\nelse:\n print("No")']
|
['Wrong Answer', 'Accepted']
|
['s448732401', 's644359810']
|
[3064.0, 3060.0]
|
[17.0, 17.0]
|
[243, 209]
|
p02718
|
u923415412
| 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\nn, m = map(int, input().split())\n\na_list = list(map(int, input().split()))\n\nborder = sum(a_list) / (4 * m)\n\na_choiced_list = [a for a in a_list if a > border]\n\nprint(len(a_choiced_list))\nif len(a_choiced_list) < m:\n print('No')\nelse:\n print('Yes')\n", "# coding: utf-8\n\nn, m = map(int, input().split())\n\na_list = list(map(int, input().split()))\n\nborder = sum(a_list) / (4 * m)\n\na_choiced_list = [a for a in a_list if a >= border]\n\nif len(a_choiced_list) < m:\n print('No')\nelse:\n print('Yes')\n"]
|
['Wrong Answer', 'Accepted']
|
['s207146706', 's203517706']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[271, 245]
|
p02718
|
u927860986
| 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,c=map(int,input().split())\na=list(map(int,input().split()))\nd=sum(a)\nnew_a=sorted(a)\ne=-1\nf=0\ng=4*c\n\nwhile new_a[e] >= d/g:\n e=e-1\n f=f+1\n try:\n continue\n\nif f >= c:\n print("Yes")\nelse :\n print("No")', 'b,c=map(int,input().split())\na=list(map(int,input().split()))\nd=sum(a)\nnew_a=sorted(a)\ne=-1\nf=0\ng=4*c\n\nwhile new_a[e] >= d/g:\n e=e-1\n f=f+1\n try:\n break\n\nif f >= c:\n print("Yes")\nelse :\n print("No")', 'b,c=map(int,input().split())\na=list(map(int,input().split()))\nd=sum(a)\nnew_a=sorted(a)\ne=-1\nf=0\ng=4*c\nwhile new_a[e] >= d/g:\n e=e-1\n f=f+1\nif f = c:\n print("Yes")\nelse :\n print("No")', '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])']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s240773319', 's293633217', 's791942115', 's533975519']
|
[2940.0, 2940.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[223, 220, 194, 212]
|
p02718
|
u929996201
| 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()))\n\nd = sum(c)\ne = sorted(c,reverse=True)\n\nfor i in range(a):\n if(e[i]<d/4*b):\n print("No")\n exit()\nprint("Yes")', 'a,b = map(int, input().split())\nc = list(map(int,input().split()))\n\nd = sum(c)\ne = sorted(c,reverse=True)\n\nfor i in range(b):\n if(e[i]<d/(4*b)):\n print("No")\n exit()\nprint("Yes")']
|
['Wrong Answer', 'Accepted']
|
['s403625976', 's617713881']
|
[9120.0, 8988.0]
|
[25.0, 25.0]
|
[183, 185]
|
p02718
|
u932370518
| 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\nif __name__ == "__main__":\n N, M = map(int, input().split())\n A = list(map(int, input().split()))\n A = sorted(A, reverse=True)\n a = np.asarray(A[:M])\n for i in a:\n print(i)\n print(sum(A)/(M*4))\n if i >= sum(A)/(M*4):\n ret = "Yes"\n continue\n else:\n ret = "No"\n break\n print(ret)\n\n ', 'import numpy as np\n\nif __name__ == "__main__":\n N, M = map(int, input().split())\n A = list(map(int, input().split()))\n A = sorted(A, reverse=True)\n a = np.asarray(A[:M])\n for i in a:\n if i >= sum(A)/(M*4):\n ret = "Yes"\n continue\n else:\n ret = "No"\n break\n print(ret)\n']
|
['Wrong Answer', 'Accepted']
|
['s242272776', 's784614720']
|
[20656.0, 21016.0]
|
[1643.0, 722.0]
|
[393, 343]
|
p02718
|
u932868243
| 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\nfor aa in a:\n if aa>=sum(a)/4m:\n count+=1\nif count>=m:\n print('Yes')\nelse:\n print('No')", 'n,k=map(int,input().split())\nwhile n>=0:\n n=abs(n-k)\n if n-k<=0:\n print(abs(n))\n break', "n,m=map(int,input().split())\na=list(map(int,input().split()))\ncount=0\nsum=sum(a)\nfor aa in a:\n if aa>=sum/4/m:\n count+=1\nif count>=m:\n print('Yes')\nelse:\n print('No')"]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s275583989', 's842949815', 's842888834']
|
[3064.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[163, 94, 172]
|
p02718
|
u934540356
| 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()\nA = list(map(int,input().split()))\ntv = sum(A)\ni,count=0,0\nwhile(i<N and count!=M):\n if(A[i]>int(tv/4*int(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()))\ntot_votes = sum(A)\nreq = int(tot_votes//(4*M))\ncount = 0\ni = 0\nwhile(count!=M and i<N):\n if(A[i]>req):\n count+=1\n i+=1\nif(count<=M):\n print("No")\nelse:\n print("Yes")', '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")']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s429201712', 's943877314', 's559433705']
|
[3060.0, 3060.0, 3060.0]
|
[17.0, 18.0, 17.0]
|
[196, 250, 204]
|
p02718
|
u934566927
| 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()\nb = input().split()\nsum = 0\nfor x in b:\n sum += int(x)\nprint(sum/(4.*int(n)))\nif int(b[int(m)-1]) < sum/(4.*int(n)):\n print("No")\nelse:\n print("Yes")\n', 'a,a1 = input().split()\nb = input().split()\nsum = 0\nfor _ in b:\n sum += int(_)\nif int(b[int(a1) - 1]) > sum/4:\n print(True)\nelse:\n print(False)\n', 'n, m = input().split()\nb = input().split()\nsum = 0\nfor x in b:\n sum += int(x)\nyy=0\nfor y in b:\n if int(y) >= sum//(4*int(m)):\n yy+=1\nif yy >= int(m):\n print("No")\nelse:\n print("Yes")\n', 'n,m = input().split()\nb = input().split()\nsum = 0\nfor x in b:\n sum += int(x)\nprint(sum/(4.*int(n)))\nif int(b[int(m)-1]) < sum/(4.*int(n)):\n print("No")\nelse:\n print("Yes")\n', 'a,a1 = input().split()\nb = input().split()\nsum = 0\nfor _ in b:\n sum += int(_)\nif int(b[int(a1) - 1]) < sum/4:\n print("Yes")\nelse:\n print("No")\n', 'n, m = input().split()\nb = input().split()\nsum = 0\nfor x in b:\n sum += int(x)\nyy=0\nfor y in b:\n if int(y) < sum/(4*int(n)):\n yy+=1\nif yy <= int(m):\n print("No")\nelse:\n print("Yes")\n', 'n, m = input().split()\nb = input().split()\nsum = 0\nfor x in b:\n sum += int(x)\nyy=0\nfor y in b:\n if int(y) >= sum/(4*int(m)):\n yy+=1\nif yy >= int(m):\n print("No")\nelse:\n print("Yes")\n', 'a,a1 = input().split()\nb = input().split()\nsum = 0\nfor _ in b:\n sum += int(_)\nif int(b[int(a1) - 1]) >= sum/(4*a1):\n print("Yes")\nelse:\n print("No")\n', 'n, m = input().split()\nb = input().split()\nsum = 0\nfor x in b:\n sum += int(x)\nyy=0\nfor y in b:\n if int(y) >= sum/(4*int(m)):\n yy+=1\nif yy < int(m):\n print("No")\nelse:\n print("Yes")']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s106946906', 's204829965', 's587743887', 's618664238', 's638700361', 's750497789', 's805491166', 's869637703', 's387089194']
|
[2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0]
|
[181, 152, 202, 181, 152, 200, 201, 158, 199]
|
p02718
|
u935642171
| 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\nvotes = sum(A)\nA.sort()\nif A[m-1] < votes/4*m:\n print('No')\nelse:\n print('Yes')", "n,m = map(int, input().split())\nA = list(map(int, input().split()))\n\nvotes = sum(A)\nA.sort(reverse=True)\nif A[m-1] < votes/(4*m):\n print('No')\nelse:\n print('Yes')"]
|
['Wrong Answer', 'Accepted']
|
['s277497035', 's149594084']
|
[9144.0, 9172.0]
|
[29.0, 28.0]
|
[150, 164]
|
p02718
|
u938051273
| 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,b= map(int, input().split())\n \na= list(map(int, input().split()))\n \nnew_list = sorted(a, reverse=True)\n\nprint(new_list[b-1])\nif new_list[b-1] > b*4:\n \tprint("Yes")\nelse:\n \tprint("No")\n', 'n,b= map(int, input().split())\n \na= list(map(int, input().split()))\n \nnew_list = sorted(a)\n \nif new_list[b-1] > b*4:\n \tprint("Yes")\nelse:\n \tprint("No")', 'n,b= map(int, input().split())\n \na= list(map(int, input().split()))\n \nnew_list = sorted(a, reverse=True)\nsums = sum(a)\n\nif new_list[b-1] >= sums/(b*4):\n \tprint("Yes")\nelse:\n \tprint("No")']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s136840302', 's376900916', 's932006103']
|
[2940.0, 2940.0, 3060.0]
|
[17.0, 17.0, 18.0]
|
[192, 157, 192]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.