Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02718
from collections import defaultdict, deque import sys import heapq import bisect import itertools import queue import copy import time sys.setrecursionlimit(10**8) INF = float('inf') mod = 10**9+7 eps = 10**-7 def inp(): return int(sys.stdin.readline()) def inpl(): return list(map(int, sys.stdin.readline().split())) ...
from collections import defaultdict, deque import sys import heapq import bisect import itertools import queue import copy import time sys.setrecursionlimit(10**8) INF = float('inf') mod = 10**9+7 eps = 10**-7 def inp(): return int(sys.stdin.readline()) def inpl(): return list(map(int, sys.stdin.readline().split())) ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
486,543
486,540
u998082063
python
p02718
n,m=map(int,input().split()) a=sorted(list(map(int,input().split())),reverse=1) print("Yes" if 4*m*a[m-1]>sum(a) else "No")
n,m=map(int,input().split()) a=sorted(list(map(int,input().split())),reverse=1) print("Yes" if 4*m*a[m-1]>=sum(a) else "No")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
486,552
486,553
u225388820
python
p02718
N,M = (int(x) for x in input().split()) a = list(map(int,input().split())) x = sum(a)*1/(4*M) pick = 0 for (a_i) in a: if (a_i) > x: pick += 1 if pick >= M: print("Yes") else: print("No")
N,M = (int(x) for x in input().split()) a = list(map(int,input().split())) x = sum(a)*1/(4*M) pick = 0 for (a_i) in a: if (a_i) >= x: pick += 1 if pick >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,564
486,565
u635141733
python
p02718
N,M = (int(x) for x in input().split()) a = list(map(int,input().split())) x = sum(a)*1/(4*M) pick = 0 for (a_i) in a: if (a_i) > x: pick += 1 if pick >= M: print("yes") else: print("no")
N,M = (int(x) for x in input().split()) a = list(map(int,input().split())) x = sum(a)*1/(4*M) pick = 0 for (a_i) in a: if (a_i) >= x: pick += 1 if pick >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
486,566
486,565
u635141733
python
p02718
n,m=[int(x) for x in input().split()] a=[int(x) for x in input().split()] print("Yes" if len([x for x in a if x>sum(a)/(4*m)])>=m else "No")
n,m=[int(x) for x in input().split()] a=[int(x) for x in input().split()] print("Yes" if len([x for x in a if x>=sum(a)/(4*m)])>=m else "No")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
486,567
486,568
u920103253
python
p02718
n,m=[int(x) for x in input().split()] a=[int(x) for x in input().split()] a.sort() a.reverse() ans="Yes" for i in range(m+1): if a[i]<sum(a)/(4*m): ans="No" break; print(ans)
n,m=[int(x) for x in input().split()] a=[int(x) for x in input().split()] a.sort() a.reverse() ans="Yes" for i in range(m): if a[i]<sum(a)/(4*m): ans="No" break; print(ans)
[ "expression.operation.binary.remove" ]
486,569
486,570
u920103253
python
p02718
def getInput(): return [int(i) for i in input().rstrip().split(' ')] N, M = getInput() A = getInput() _4M = math.ceil(sum(A) / (4*M)) A.sort(reverse=True) cnt = 0 for i in A: if i >= _4M: cnt += 1 print('Yes') if cnt >= M else print('No')
import math def getInput(): return [int(i) for i in input().rstrip().split(' ')] N, M = getInput() A = getInput() _4M = math.ceil(sum(A) / (4*M)) A.sort(reverse=True) cnt = 0 for i in A: if i >= _4M: cnt += 1 print('Yes') if cnt >= M else print('No')
[]
486,576
486,577
u199290844
python
p02718
def getInput(): return [int(i) for i in input().rstrip().split(' ')] N, M = getInput() A = getInput() _4M = int(sum(A)/(4*M)) A.sort(reverse=True) cnt = 0 for i in A: if i >= _4M: cnt += 1 print('Yes') if cnt >= M else print('No')
import math def getInput(): return [int(i) for i in input().rstrip().split(' ')] N, M = getInput() A = getInput() _4M = math.ceil(sum(A) / (4*M)) A.sort(reverse=True) cnt = 0 for i in A: if i >= _4M: cnt += 1 print('Yes') if cnt >= M else print('No')
[ "assignment.value.change" ]
486,578
486,577
u199290844
python
p02718
def getInput(): return [int(i) for i in input().rstrip().split(' ')] N, M = getInput() A = getInput() _4M = int(sum(A)/(4*M)) A.sort(reverse=True) cnt = 0 for i in A: if i >= _4M: cnt += 1 print('Yes') if cnt >= M else print('No')
def getInput(): return [int(i) for i in input().rstrip().split(' ')] N, M = getInput() A = getInput() _4M = sum(A) / (4*M) A.sort(reverse=True) cnt = 0 for i in A: if i >= _4M: cnt += 1 print('Yes') if cnt >= M else print('No')
[ "call.remove", "call.arguments.change" ]
486,578
486,580
u199290844
python
p02718
N,M = map(int, input().split()) A = list(map(int, input().split())) all=0 for i in range(N): all+=A[i] all = int(all/(4*M)) count=0 for j in range(N): if A[j] >= all: count+=1 if count < M: print('No') else : print('Yes')
N,M = map(int, input().split()) A = list(map(int, input().split())) all=0 for i in range(N): all+=A[i] all = all/(4*M) count=0 for j in range(N): if A[j] >= all: count+=1 if count < M: print('No') else : print('Yes')
[ "call.remove", "call.arguments.change" ]
486,586
486,587
u427163848
python
p02718
n, m = list(map(int, input().split())) a = list(map(int, input().split())) aa = sorted(a, reverse=True) suma = sum(aa) threshold = suma / (4 * m) if aa[m-1] > threshold: print("Yes") else: print("No")
n, m = list(map(int, input().split())) a = list(map(int, input().split())) aa = sorted(a, reverse=True) suma = sum(aa) threshold = suma / (4 * m) if aa[m-1] >= threshold: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,592
486,593
u301908263
python
p02718
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print("YNeos"[sum(a[i]>sum(a)/(4*m)for i in range(m))<m::2])
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print("YNeos"[sum(a[i]>=sum(a)/(4*m)for i in range(m))<m::2])
[ "expression.operator.compare.change", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
486,596
486,597
u137667583
python
p02718
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print("YNeos"[sum(a[i]<sum(a)/(4*m)for i in range(m))<m::2])
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print("YNeos"[sum(a[i]>=sum(a)/(4*m)for i in range(m))<m::2])
[ "expression.operator.compare.change", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
486,598
486,597
u137667583
python
p02718
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print("YNeos"[sum(a[i]<sum(a)/(4*m)for i in range(m))>=m::2])
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print("YNeos"[sum(a[i]>=sum(a)/(4*m)for i in range(m))<m::2])
[ "expression.operator.compare.change", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
486,599
486,597
u137667583
python
p02718
n, m = map(int,input().split()) a = list(map(int,input().split())) a.sort(reverse = True) s = sum(a) if a[m-1] >= s//(4*m): print("Yes") else: print("No")
n, m = map(int,input().split()) a = list(map(int,input().split())) a.sort(reverse = True) s = sum(a) if a[m-1] >= s/(4*m): print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
486,612
486,613
u270144704
python
p02718
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print("YNeos"[sum([sum(a)/(4*m)>=a[i] for i in range(m)])==m::2])
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print("YNeos"[sum([sum(a)/(4*m)<=a[i] for i in range(m)])!=m::2])
[ "misc.opposites", "expression.operator.compare.change", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
486,620
486,621
u552122040
python
p02718
n, m = map(int, input().split()) ai = list(map(int, input().split())) required = sum(ai) / (4 * m) print(required) count = 0 for a in sorted(ai, reverse=True): if a >= required: count += 1 else: break print("YNeos"[count < m::2])
n, m = map(int, input().split()) ai = list(map(int, input().split())) required = sum(ai) / (4 * m) count = 0 for a in sorted(ai, reverse=True): if a >= required: count += 1 else: break print("YNeos"[count < m::2])
[ "call.remove" ]
486,629
486,630
u977855674
python
p02718
N, M = map(int, input().split()) A = sorted(list(map(int, input().split()))) ans = sum(x > (sum(A) / (4 * M)) for x in A) print('No' if ans < M else 'Yes')
N, M = map(int, input().split()) A = sorted(list(map(int, input().split()))) ans = sum(x >= (sum(A) / (4 * M)) for x in A) print('No' if ans < M else 'Yes')
[ "expression.operator.compare.change", "assignment.value.change" ]
486,641
486,642
u765758367
python
p02718
N, M = map(int, input().split()) A = sorted(list(map(int, input().split()))) ans = sum(x > (sum(A) // (4 * M)) for x in A) print('No' if ans < M else 'Yes')
N, M = map(int, input().split()) A = sorted(list(map(int, input().split()))) ans = sum(x >= (sum(A) / (4 * M)) for x in A) print('No' if ans < M else 'Yes')
[ "expression.operator.compare.change", "assignment.value.change", "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
486,643
486,642
u765758367
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = 0 for i in range(N): if A[i]*4*M > sum(A): ans += 1 if ans >= M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = 0 for i in range(N): if A[i]*4*M >= sum(A): ans += 1 if ans >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,644
486,645
u765758367
python
p02718
N,M = (int(x) for x in input().split()) A_list = [int(x) for x in input().split()] A_sum = sum(A_list) Bool_list = [] for A in A_list: if A >= int(A_sum/(4*M)): Bool_list.append("True") if (len(Bool_list)) >= M: print("Yes") else: print("No")
N,M = (int(x) for x in input().split()) A_list = [int(x) for x in input().split()] A_sum = sum(A_list) Bool_list = [] for A in A_list: if A >= (A_sum/(4*M)): Bool_list.append("True") if (len(Bool_list)) >= M: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
486,662
486,663
u776864893
python
p02718
N,M = (int(x) for x in input().split()) A_list = [int(x) for x in input().split()] A_sum = sum(A_list) Bool_list = [] for A in A_list: if A >= int(A_sum/(N*M)): Bool_list.append("True") if (len(Bool_list)) >= M: print("Yes") else: print("No")
N,M = (int(x) for x in input().split()) A_list = [int(x) for x in input().split()] A_sum = sum(A_list) Bool_list = [] for A in A_list: if A >= (A_sum/(4*M)): Bool_list.append("True") if (len(Bool_list)) >= M: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "identifier.replace.remove", "literal.replace.add" ]
486,664
486,663
u776864893
python
p02718
N,M = (int(x) for x in input().split()) A_list = [int(x) for x in input().split()] A_sum = sum(A_list) Bool_list = [] for A in A_list: if A >= A_sum/(N*M): Bool_list.append("True") if (len(Bool_list)) >= M: print("Yes") else: print("No")
N,M = (int(x) for x in input().split()) A_list = [int(x) for x in input().split()] A_sum = sum(A_list) Bool_list = [] for A in A_list: if A >= (A_sum/(4*M)): Bool_list.append("True") if (len(Bool_list)) >= M: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "identifier.replace.remove", "literal.replace.add" ]
486,665
486,663
u776864893
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) vote_sum = sum(A) cnt = 0 y = "Yes" n = "no" for i in range(N): if (A[i]*4*M) >= vote_sum: cnt += 1 if cnt >= M: print(y) else: print(n)
N, M = map(int, input().split()) A = list(map(int, input().split())) vote_sum = sum(A) cnt = 0 y = "Yes" n = "No" for i in range(N): if (A[i]*4*M) >= vote_sum: cnt += 1 if cnt >= M: print(y) else: print(n)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
486,687
486,688
u601575292
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) vote_sum = sum(A) cnt = 0 y = "Yes" n = "no" for i in range(N): if (A[i]*4*M) >= T: cnt += 1 if cnt >= M: print(y) else: print(n)
N, M = map(int, input().split()) A = list(map(int, input().split())) vote_sum = sum(A) cnt = 0 y = "Yes" n = "No" for i in range(N): if (A[i]*4*M) >= vote_sum: cnt += 1 if cnt >= M: print(y) else: print(n)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change", "identifier.change", "control_flow.branch.if.condition.change" ]
486,689
486,688
u601575292
python
p02718
import math N,M = map(int,input().split()) l = [int(i) for i in input().split()] l.sort(reverse = True) l_sum = sum(l) d = (1/(4*M))*l_sum cnt = 0 for i in range(N): if l[i] > d: cnt += 1 else: break if cnt >= M: print("Yes") else: print("No")
import math N,M = map(int,input().split()) l = [int(i) for i in input().split()] l.sort(reverse = True) l_sum = sum(l) d = (1/(4*M))*l_sum cnt = 0 for i in range(N): if l[i] >= d: cnt += 1 else: break if cnt >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,738
486,739
u562015767
python
p02718
n, m = map(int, input().split()) a_lst = [] a_lst = list(map(int, input().split())) # print() percent = sum(a_lst) // (4 * m) cnt = 0 for i in range(n): if a_lst[i] > percent: cnt += 1 if cnt >= m: print('Yes') else: print('No')
n, m = map(int, input().split()) a_lst = [] a_lst = list(map(int, input().split())) # print() percent = sum(a_lst) / (4 * m) cnt = 0 for i in range(n): # print("a", a_lst[i]) # 同値の場合を書いてなくて1WAあほまぬけ if a_lst[i] >= percent: cnt += 1 if cnt >= m: print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,742
486,743
u373703188
python
p02718
n, m = (int(x) for x in input().split()) num_point = [int(x) for x in input().split()] count = 0 for n in num_point: if n > (sum(num_point) / (4 * m)): count += 1 if count >= m: print("Yes") else: print("No")
n, m = (int(x) for x in input().split()) num_point = [int(x) for x in input().split()] count = 0 for n in num_point: if n >= (sum(num_point) / (4 * m)): count += 1 if count >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,748
486,749
u402342597
python
p02718
n, m = (int(x) for x in input().split()) num_point = [int(x) for x in input().split()] count = 0 for n in num_point: if n > (sum(num_point) / (4 * m)): count += 1 if count < m: print("No") else: print("Yes")
n, m = (int(x) for x in input().split()) num_point = [int(x) for x in input().split()] count = 0 for n in num_point: if n >= (sum(num_point) / (4 * m)): count += 1 if count >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove", "call.add" ]
486,751
486,749
u402342597
python
p02718
n, m = (int(x) for x in input().split()) num_point = [int(x) for x in input().split()] count = 0 for n in num_point: if n > (sum(num_point) / (4 * m)): count += 1 if count >= m: print("Yes") elif count < m: print("No")
n, m = (int(x) for x in input().split()) num_point = [int(x) for x in input().split()] count = 0 for n in num_point: if n >= (sum(num_point) / (4 * m)): count += 1 if count >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,752
486,749
u402342597
python
p02718
n, m = (int(x) for x in input().split()) num_point = [int(x) for x in input().split()] count = 0 for n in num_point: if n > (sum(num_point)/(4*m)): count += 1 if count >= m: print("Yes") else: print("No")
n, m = (int(x) for x in input().split()) num_point = [int(x) for x in input().split()] count = 0 for n in num_point: if n >= (sum(num_point) / (4 * m)): count += 1 if count >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,753
486,749
u402342597
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) sum_ = 0 for i in a: sum_ +=i if(a[m-1]>=(sum_/4*m)): print('Yes') else: print('No')
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) sum_ = 0 for i in a: sum_ +=i if(a[m-1]>=sum_/(4*m)): print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
486,776
486,777
u572425901
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) sum_ = 0 for i in a: sum_ +=i if(a[m-1]>(sum_/4*m)): print('Yes') else: print('No')
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) sum_ = 0 for i in a: sum_ +=i if(a[m-1]>=sum_/(4*m)): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,778
486,777
u572425901
python
p02718
#!/usr/bin/env python3 import sys import numpy as np YES = "Yes" # type: str NO = "No" # type: str def solve(N: int, M: int, A: "List[int]"): A = np.array(A) n_sum = np.sum(A)/4/M if (A > n_sum).sum() >= M: print(YES) else: print(NO) return # Generated by 1.1.6 https://github...
#!/usr/bin/env python3 import sys import numpy as np YES = "Yes" # type: str NO = "No" # type: str def solve(N: int, M: int, A: "List[int]"): A = np.array(A) n_sum = np.sum(A)/4/M if (A >= n_sum).sum() >= M: print(YES) else: print(NO) return # Generated by 1.1.6 https://githu...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,793
486,794
u166727624
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) for i in range(M): if A[i] < sum(A) * 1 / 4*M: print('No') exit() print('Yes')
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) for i in range(M): if A[i] < sum(A) / (4*M): print('No') exit() print('Yes')
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
486,795
486,796
u766566560
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) for i in range(M): if A[i] < 1 / 4*M: print('No') exit() print('Yes')
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) for i in range(M): if A[i] < sum(A) / (4*M): print('No') exit() print('Yes')
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.arguments.add" ]
486,797
486,796
u766566560
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) new_a=sorted(a,reverse=True) sums=sum(a) if new_a[m-1]>=sums/(b*4): print("Yes") else: print("No")
n,m=map(int,input().split()) a=list(map(int,input().split())) new_a=sorted(a,reverse=True) sums=sum(a) if new_a[m-1]>=sums/(m*4): print("Yes") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
486,798
486,799
u113991073
python
p02718
n,m=(map(int,input().split())) a=list(map(int,input().split())) new_a=sorted(a,reverse=True) sums=sum(a) if new_a[m-1]>sums/(b*4): print("Yes") else: print("No")
n,m=map(int,input().split()) a=list(map(int,input().split())) new_a=sorted(a,reverse=True) sums=sum(a) if new_a[m-1]>=sums/(m*4): print("Yes") else: print("No")
[ "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.change" ]
486,800
486,799
u113991073
python
p02718
N, M = map(int, input().split()) list=[int(i) for i in input().split()] vote = 0 for v in list : vote = vote + v judge = vote // (4 * M) pop = 0 for x in range(0, N) : if list[x] > judge : pop = pop + 1 if pop >= M : print("Yes") else : print("No")
N, M = map(int, input().split()) list=[int(i) for i in input().split()] vote = 0 for v in list : vote = vote + v judge = vote / (4 * M) pop = 0 for x in range(0, N) : if list[x] >= judge : pop = pop + 1 if pop >= M : print("Yes") else : print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,816
486,817
u062808720
python
p02718
N, M = map(int, input().split()) list=[int(i) for i in input().split()] vote = 0 for v in list : vote = vote + v judge = vote / (4 * M) pop = 0 for x in range(0, N) : if list[x] > judge : pop = pop + 1 if pop >= M : print("Yes") else : print("No")
N, M = map(int, input().split()) list=[int(i) for i in input().split()] vote = 0 for v in list : vote = vote + v judge = vote / (4 * M) pop = 0 for x in range(0, N) : if list[x] >= judge : pop = pop + 1 if pop >= M : print("Yes") else : print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,818
486,817
u062808720
python
p02718
N, M = map(int, input().split()) list=[int(i) for i in input().split()] vote = 0 for v in list : vote = vote + v judge = vote // 4 // M pop = 0 for x in range(0, N) : if list[x] > judge : pop = pop + 1 if pop >= M : print("Yes") else : print("No")
N, M = map(int, input().split()) list=[int(i) for i in input().split()] vote = 0 for v in list : vote = vote + v judge = vote / (4 * M) pop = 0 for x in range(0, N) : if list[x] >= judge : pop = pop + 1 if pop >= M : print("Yes") else : print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,819
486,817
u062808720
python
p02718
N,M = map(int,input().split()) score = list(map(int,input().split())) score = sorted(score,reverse=True) if score[M]*4*M < sum(score): print("No") else: print("Yes")
N,M = map(int,input().split()) score = list(map(int,input().split())) score = sorted(score,reverse=True) if score[M-1]*4*M < sum(score): print("No") else: print("Yes")
[ "control_flow.branch.if.condition.change" ]
486,824
486,823
u521271655
python
p02718
def calc(): summ = sum(A) #print(summ) low = summ / (4*M) #print(low) newlist = [i for i in A if i >= low] #print(newlist) num = len(newlist) #print(num) if M <= num: print ("Yes") else: print ("No") N, M = map(int,input().split()) A = list(map(int, inpu...
def calc(): summ = sum(A) low = summ / (4*M) newlist = [i for i in A if i >= low] num = len(newlist) if M <= num: print ("Yes") else: print ("No") N, M = map(int,input().split()) A = list(map(int,input().split())) #N, M = 5, 2 #A = [110, 2, 20, 10, 0] calc()
[ "call.add" ]
486,831
486,832
u015845133
python
p02718
#def calc(): #summ = sum(A) #print(summ) #low = summ / (4*M) #print(low) #newlist = [i for i in A if i >= low] #print(newlist) #num = len(newlist) #print(num) #if M <= num: #print ("Yes") #else: #print ("No") N, M = map(int,input().split()) A = list(map(...
#def calc(): #summ = sum(A) #print(summ) #low = summ / (4*M) #print(low) #newlist = [i for i in A if i >= low] #print(newlist) #num = len(newlist) #print(num) #if M <= num: #print ("Yes") #else: #print ("No") N, M = map(int,input().split()) A = list(map(...
[ "call.add" ]
486,833
486,834
u015845133
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) t=sum(a) a=list(filter(lambda x: t//(4*m) < x, a)) print('Yes' if m <= len(a) else 'No')
n,m=map(int,input().split()) a=list(map(int,input().split())) t=sum(a) a=list(filter(lambda x: t/(4*m) <= x, a)) print('Yes' if m <= len(a) else 'No')
[ "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change", "expression.operator.compare.change" ]
486,835
486,836
u698849142
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) t=sum(a) a=list(filter(lambda x: t/(4*m) < x, a)) print('Yes' if m <= len(a) else 'No')
n,m=map(int,input().split()) a=list(map(int,input().split())) t=sum(a) a=list(filter(lambda x: t/(4*m) <= x, a)) print('Yes' if m <= len(a) else 'No')
[ "expression.operator.compare.change", "assignment.value.change", "call.arguments.change" ]
486,837
486,836
u698849142
python
p02718
n ,m = list(map(int,input().split())) A = list(map(int,input().split())) S= sum(A) count = 0 for i in range(n): if A[i]>=S/4*m: count+=1 if count>=m: print("Yes") if count<m: print("No")
n ,m = list(map(int,input().split())) A= list(map(int,input().split())) S= sum(A) count = 0 for i in range(n): if A[i]>=S*1/4*1/m: count+=1 if count>=m: print("Yes") if count<m: print("No")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
486,869
486,870
u231038326
python
p02718
N,M = map(int,input().split()) A = list(map(int,input().split())) def check(A,M): flag = 0 condition = sum(A)/(4*M) if(M==1 and max(A)>condition): return "Yes" for i in A: if(i < condition): continue elif(i > condition): flag+=1 if(flag==M):...
N,M = map(int,input().split()) A = list(map(int,input().split())) def check(A,M): flag = 0 condition = sum(A)/(4*M) if(M==1 and max(A)>condition): return "Yes" for i in A: if(i < condition): continue elif(i >= condition): flag+=1 if(flag==M)...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,895
486,896
u780147002
python
p02718
import math n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= math.floor(sum(A)//(4*m)): print("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= (sum(A)/(4*m)): print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
486,919
486,920
u030278108
python
p02718
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= (sum(A) // (4 * m)): print("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= (sum(A)/(4*m)): print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
486,921
486,920
u030278108
python
p02718
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m] >= (sum(A) / (4 * m)): print("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= (sum(A)/(4*m)): print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
486,922
486,920
u030278108
python
p02718
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m+1] >= (sum(A) // (4 * m)): print("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= (sum(A)/(4*m)): print("Yes") else: print("No")
[ "misc.opposites", "expression.operator.arithmetic.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
486,923
486,920
u030278108
python
p02718
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m] >= (sum(A) // (4 * m)): print("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= (sum(A)/(4*m)): print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
486,924
486,920
u030278108
python
p02718
N,M=map(int,input().split()) a=list(map(int,input().split())) s=sum(a) k=0 for x in a: if x>=s//(M*4):k+=1 if k>=M: print("Yes") else: print("No")
N,M=map(int,input().split()) a=list(map(int,input().split())) s=sum(a) k=0 for x in a: if x>=s/(M*4):k+=1 if k>=M: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
486,925
486,926
u172147273
python
p02718
n, m = map(int, input().split()) P = sorted(list(map(int, input().split()))) lmt = sum(P) / (4*m) if lmt < P[-1*m]: print('Yes') else: print('No')
#!/usr/bin/env python3 n, m = map(int, input().split()) P = sorted(list(map(int, input().split()))) lmt = sum(P) / (4*m) if lmt <= P[-1*m]: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,939
486,940
u848701708
python
p02718
N, M = [int(i) for i in input().split()] A = [int(i) for i in input().split()] total = sum(A) print('Yes' if len(1 for a in A if a * 4 * M >= total) >= M else 'No')
N, M = [int(i) for i in input().split()] A = [int(i) for i in input().split()] total = sum(A) print('Yes' if len([1 for a in A if a * 4 * M >= total]) >= M else 'No')
[ "call.arguments.change" ]
486,943
486,944
u952708174
python
p02718
n,m=list(map(int,input().split())) a=list(map(int,input().split())) a.sort(reverse=True) cnt=0 for j in range(n): cnt+=a[j] b=[] for i in range(n): if a[i]>(cnt*(1/(4*m))): b.append(a[i]) if len(b) >= m: print("Yes") else: print("No")
n,m=list(map(int,input().split())) a=list(map(int,input().split())) a.sort(reverse=True) cnt=0 for j in range(n): cnt+=a[j] b=[] for i in range(n): if a[i]>=(cnt*(1/(4*m))): b.append(a[i]) if len(b)>= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,951
486,952
u172780602
python
p02718
n,m=list(map(int,input().split())) a=list(map(int,input().split())) a.sort(reverse=True) cnt=0 for j in range(n): cnt+=a[j] b=[] for i in range(n): if a[i]>(cnt*(1/(4*m))): b.append(a[i]) if len(b) >= m: print("Yes") else: print("No")
n,m=list(map(int,input().split())) a=list(map(int,input().split())) a.sort(reverse=True) cnt=0 for j in range(n): cnt+=a[j] b=[] for i in range(n): if a[i]>=(cnt*(1/(4*m))): b.append(a[i]) if len(b)>= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,953
486,952
u172780602
python
p02718
n,m=list(map(int,input().split())) a=list(map(int,input().split())) a.sort(reverse=True) cnt=0 for j in range(n): cnt+=a[j] b=[] for i in range(n): if a[i]>(cnt*(1/(4*m))): b.append(a[i]) if len(b) > m: print("Yes") else: print("No")
n,m=list(map(int,input().split())) a=list(map(int,input().split())) a.sort(reverse=True) cnt=0 for j in range(n): cnt+=a[j] b=[] for i in range(n): if a[i]>=(cnt*(1/(4*m))): b.append(a[i]) if len(b)>= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,954
486,952
u172780602
python
p02718
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] > A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] >= A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,975
486,976
u812576525
python
p02718
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): #print(A_sum/(4*M),A_sum//(4*M)) if A[i] > A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] >= A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,977
486,976
u812576525
python
p02718
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N-1): #print(A_sum/(4*M),A_sum//(4*M)) if A[i] > A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] >= A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
[ "expression.operation.binary.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,978
486,976
u812576525
python
p02718
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] >= int(A_sum/(4*M)): ans += 1 if ans >= M: print('Yes') else: print('No')
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] >= A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
[ "control_flow.loop.for.condition.change", "call.remove", "control_flow.branch.if.condition.change" ]
486,980
486,976
u812576525
python
p02718
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] > int(A_sum/(4*M)): ans += 1 if ans >= M: print('Yes') else: print('No')
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] >= A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.remove" ]
486,981
486,976
u812576525
python
p02718
N, M = list(map(int, input().split())) A = list(map(int, input().split())) #A = sorted(A,reverse= True) A_sum =sum(A) ans = 0 for i in range(N): if A[i] > int(A_sum/14*M): ans += 1 if ans >= M: print('Yes') else: print('No')
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A_sum =sum(A) ans = 0 for i in range(N): if A[i] >= A_sum/(4*M): ans += 1 if ans >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.remove" ]
486,982
486,976
u812576525
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) vote = sum(a) if a[m-1] > vote*1/(4*m): print('Yes') else: print('No')
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) vote = sum(a) if a[m-1] >= vote*1/(4*m): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,985
486,984
u460009487
python
p02718
N, M = [int(x) for x in input().split()] A = [int(x) for x in input().split()] point = sum(A) / (4*M) count = 0 for a in A: if a > point: count += 1 print("Yes" if count >= M else "No")
N, M = [int(x) for x in input().split()] A = [int(x) for x in input().split()] point = sum(A) / (4*M) count = 0 for a in A: if a >= point: count += 1 print("Yes" if count >= M else "No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,986
486,987
u211286909
python
p02718
n,b= map(int, input().split()) a= list(map(int, input().split())) new_list = sorted(a, reverse=True) sums = sum(a) #print(new_list[b-1]) if new_list[b-1] > sums/(b*4): print("Yes") else: print("No")
n,b= map(int, input().split()) a= list(map(int, input().split())) new_list = sorted(a, reverse=True) sums = sum(a) if new_list[b-1] >= sums/(b*4): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
486,992
486,993
u938051273
python
p02718
NM = [int(_) for _ in input().split()] N = NM[0] M = NM[1] A = [int(_) for _ in input().split()] def solve(N, M, A): d = int(sum(A) / (4 * M)) a = [i for i in A if i>d ] if len(a) >= M: return "Yes" else: return "No" print(solve(N, M, A))
NM = [int(_) for _ in input().split()] N = NM[0] M = NM[1] A = [int(_) for _ in input().split()] def solve(N, M, A): d = sum(A) / (4 * M) a = [i for i in A if i>=d ] if len(a) >= M: return "Yes" else: return "No" print(solve(N, M, A))
[ "call.remove", "call.arguments.change", "expression.operator.compare.change", "assignment.value.change" ]
487,005
487,006
u203669169
python
p02718
NM = [int(_) for _ in input().split()] N = NM[0] M = NM[1] A = [int(_) for _ in input().split()] def solve(N, M, A): d = int(sum(A) / (4 * M)) a = [i for i in A if i>=d ] if len(a) >= M: return "Yes" else: return "No" print(solve(N, M, A))
NM = [int(_) for _ in input().split()] N = NM[0] M = NM[1] A = [int(_) for _ in input().split()] def solve(N, M, A): d = sum(A) / (4 * M) a = [i for i in A if i>=d ] if len(a) >= M: return "Yes" else: return "No" print(solve(N, M, A))
[ "call.remove", "call.arguments.change" ]
487,007
487,006
u203669169
python
p02718
nmlist = list(map(int, input().split())) svote = list(map(int, input().split())) allvote = sum(svote) maxvote = max(svote) svote.sort(reverse=True) n0 = nmlist[1] - 1 n1 = svote[n0] / allvote n2 = 1 / (4 * nmlist[1]) if n1 > n2: print("Yes") else: print("No")
nmlist = list(map(int, input().split())) svote = list(map(int, input().split())) allvote = sum(svote) maxvote = max(svote) svote.sort(reverse=True) n0 = nmlist[1] - 1 n1 = svote[n0] / allvote n2 = 1 / (4 * nmlist[1]) if n1 >= n2: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
487,011
487,012
u402077280
python
p02718
N,M = (int(y) for y in input().split()) A = list(map(int, input().split())) X = int(sum(A)/(4*M)) B = [i for i in A if i >= X] if len(B) >= M: print("Yes") else: print("No")
import math N,M = (int(y) for y in input().split()) A = list(map(int, input().split())) X = math.ceil(sum(A)/(4*M)) B = [i for i in A if i >= X] if len(B) >= M: print("Yes") else: print("No")
[ "assignment.value.change" ]
487,021
487,022
u611033537
python
p02718
# coding: utf-8 # Your code here! N,M = map(int, input().split()) #print(M) S = list(map(int,input().split())) S.sort(reverse=True) #print(S) L = len(S) SUM = sum(S) #print(SUM) #print(L) #print(S[M-1]) if S[M-1] / SUM > 1/(4*M): print("Yes") else: print("No")
# coding: utf-8 # Your code here! N,M = map(int, input().split()) #print(M) S = list(map(int,input().split())) S.sort(reverse=True) #print(S) L = len(S) SUM = sum(S) #print(SUM) #print(L) #print(S[M-1]) if S[M-1] / SUM >= 1/(4*M): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
487,023
487,024
u859241851
python
p02718
N, M= map(int, input().split()) C = map(int, input().split()) A = list(C) #if N < M: # print('No') #if M == 0: # print('No') B = [] for i in range(len(A)): if A[i] >= sum(A)/4/M: B.append(1) else: B.append(0) if sum(B) > M: print('Yes') else: print('No')
N, M= map(int, input().split()) C = map(int, input().split()) A = list(C) #if N < M: # print('No') #if M == 0: # print('No') B = [] for i in range(len(A)): if A[i] >= sum(A)/4/M: B.append(1) else: B.append(0) if sum(B) >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
487,027
487,028
u845650912
python
p02718
N, M= map(int, input().split()) C = map(int, input().split()) A = list(C) B = [] for i in range(len(A)): if A[i] > sum(A)/4/M: B.append(1) else: B.append(0) if sum(B) > N - M +1: print('Yes') else: print('No')
N, M= map(int, input().split()) C = map(int, input().split()) A = list(C) #if N < M: # print('No') #if M == 0: # print('No') B = [] for i in range(len(A)): if A[i] >= sum(A)/4/M: B.append(1) else: B.append(0) if sum(B) >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
487,029
487,028
u845650912
python
p02718
N, M= map(int, input().split()) C = map(int, input().split()) A = list(C) B = [] for i in range(len(A)): if A[i] > sum(A)/4/M: B.append(1) else: B.append(0) if sum(B) >= M: print('No') else: print('Yes')
N, M= map(int, input().split()) C = map(int, input().split()) A = list(C) #if N < M: # print('No') #if M == 0: # print('No') B = [] for i in range(len(A)): if A[i] >= sum(A)/4/M: B.append(1) else: B.append(0) if sum(B) >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
487,030
487,028
u845650912
python
p02718
N, M= map(int, input().split()) C = map(int, input().split()) A = list(C) B = [] for i in range(len(A)): if A[i] > sum(A)/4/M: B.append(1) else: B.append(0) if sum(B) >= M: print('Yes') else: print('No')
N, M= map(int, input().split()) C = map(int, input().split()) A = list(C) #if N < M: # print('No') #if M == 0: # print('No') B = [] for i in range(len(A)): if A[i] >= sum(A)/4/M: B.append(1) else: B.append(0) if sum(B) >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
487,031
487,028
u845650912
python
p02718
import sys input = lambda: sys.stdin.readline().rstrip() yes = lambda boolean: print('Yes') if boolean else print('No') input_ints = lambda: list(map(int, input().split())) N, M = input_ints() A = input_ints() A.sort(reverse=1) yes(A[M-1]*4*M>sum(A))
import sys input = lambda: sys.stdin.readline().rstrip() yes = lambda boolean: print('Yes') if boolean else print('No') input_ints = lambda: list(map(int, input().split())) N, M = input_ints() A = input_ints() A.sort(reverse=1) yes(A[M-1]*4*M>=sum(A))
[ "expression.operator.compare.change", "call.arguments.change" ]
487,032
487,033
u264564865
python
p02718
import sys input = lambda: sys.stdin.readline().rstrip() yes = lambda boolean: print('Yes') if boolean else print('No') input_ints = lambda: list(map(int, input().split())) N, M = input_ints() A = input_ints() A.sort(reverse=1) yes(A[M-1]*4*M>1)
import sys input = lambda: sys.stdin.readline().rstrip() yes = lambda boolean: print('Yes') if boolean else print('No') input_ints = lambda: list(map(int, input().split())) N, M = input_ints() A = input_ints() A.sort(reverse=1) yes(A[M-1]*4*M>=sum(A))
[ "call.arguments.add", "call.arguments.change" ]
487,034
487,033
u264564865
python
p02718
import sys input = lambda: sys.stdin.readline().rstrip() yes = lambda boolean: print('Yes') if boolean else print('No') input_ints = lambda: list(map(int, input().split())) N, M = input_ints() A = input_ints() A.sort(reverse=1) yes(A[M-1]*4*M>_1)
import sys input = lambda: sys.stdin.readline().rstrip() yes = lambda boolean: print('Yes') if boolean else print('No') input_ints = lambda: list(map(int, input().split())) N, M = input_ints() A = input_ints() A.sort(reverse=1) yes(A[M-1]*4*M>=sum(A))
[ "call.arguments.add", "call.arguments.change" ]
487,035
487,033
u264564865
python
p02718
# -*- coding: utf-8 -*- ''' ''' import numpy as np N, M = map(int, input().split()) a = list(map(int, input().split())) a = np.array(a) s = int(a.sum()) level = 1 / (4 * M) # print(a) # print(level) cnt = (a > level * s).sum() if cnt >= M: print('Yes') else: print('No')
# -*- coding: utf-8 -*- ''' ''' import numpy as np N, M = map(int, input().split()) a = list(map(int, input().split())) a = np.array(a) s = int(a.sum()) level = 1 / (4 * M) # print(a) # print(level) cnt = (a >= level * s).sum() if cnt >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "assignment.value.change" ]
487,038
487,039
u265154666
python
p02718
# -*- coding: utf-8 -*- ''' ''' import numpy as np N, M = map(int, input().split()) a = list(map(int, input().split())) a = np.array(a) s = a.sum() level = 1 / (4 * M) # print(a) # print(level) cnt = (a > level*s).sum() if cnt > M: print('Yes') else: print('No')
# -*- coding: utf-8 -*- ''' ''' import numpy as np N, M = map(int, input().split()) a = list(map(int, input().split())) a = np.array(a) s = int(a.sum()) level = 1 / (4 * M) # print(a) # print(level) cnt = (a >= level * s).sum() if cnt >= M: print('Yes') else: print('No')
[ "call.add", "call.arguments.change", "expression.operator.compare.change", "assignment.value.change", "control_flow.branch.if.condition.change" ]
487,040
487,039
u265154666
python
p02718
# -*- coding: utf-8 -*- ''' ''' import numpy as np N, M = map(int, input().split()) a = list(map(int, input().split())) a = np.array(a) s = a.sum() level = 1 / (4 * M) # print(a) # print(level) cnt = (a > level*s).sum() if cnt >= M: print('Yes') else: print('No')
# -*- coding: utf-8 -*- ''' ''' import numpy as np N, M = map(int, input().split()) a = list(map(int, input().split())) a = np.array(a) s = int(a.sum()) level = 1 / (4 * M) # print(a) # print(level) cnt = (a >= level * s).sum() if cnt >= M: print('Yes') else: print('No')
[ "call.add", "call.arguments.change", "expression.operator.compare.change", "assignment.value.change" ]
487,041
487,039
u265154666
python
p02718
num, choice = map(int, input().split()) tmp = input().split() product_list = [int(s) for s in tmp] product_list.sort() sum = 0 for i in range(num): sum += product_list[i] if product_list[choice-1] >= sum/(choice*4): print("Yes") else: print("No")
num, choice = map(int, input().split()) tmp = input().split() product_list = [int(s) for s in tmp] product_list.sort(reverse=True) sum = 0 for i in range(num): sum += product_list[i] if product_list[choice-1] >= sum/(choice*4): print("Yes") else: print("No")
[ "call.arguments.keyword_argument.add" ]
487,042
487,043
u135632715
python
p02718
def main(): N, M = [int(x) for x in input().split()] A = [int(x) for x in input().split()] import heapq bests = heapq.nlargest(M, A) # print(bests) if bests[-1] >= sum(A)//(4*M): print("Yes") else: print("No") if __name__ == '__main__': main()
def main(): N, M = [int(x) for x in input().split()] A = [int(x) for x in input().split()] import heapq bests = heapq.nlargest(M, A) # print(bests) if bests[-1] >= sum(A)/(4*M): print("Yes") else: print("No") if __name__ == '__main__': main()
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
487,055
487,056
u185034753
python
p02718
N, M = map(int, input().split(' ')) lis1 = map(int, input().split(' ')) S = sum(lis1) thresh = S / (4 * M) lis2 = sorted(lis1) if lis2[-M] < thresh: print('No') else: print('Yes')
N, M = map(int, input().split(' ')) lis1 = list(map(int, input().split(' '))) S = sum(lis1) thresh = S / (4 * M) lis2 = sorted(lis1) if lis2[-M] < thresh: print('No') else: print('Yes')
[ "call.add", "call.arguments.change" ]
487,057
487,058
u515916750
python
p02718
n ,m = map(int, input().split()) a = list(map(int, input().split())) a.sort() total = 0 for i in a: total += i ok = 0 for i in range(1, m + 1): if a[-i] > total / (4 * m): ok += 1 if ok != m: print("No") else: print("Yes")
n ,m = map(int, input().split()) a = list(map(int, input().split())) a.sort() total = 0 for i in a: total += i ok = 0 for i in range(1, m + 1): if a[-i] >= total / (4 * m): ok += 1 if ok != m: print("No") else: print("Yes")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
487,062
487,063
u821265215
python
p02718
N, M = map(int, input().split()) item_vote = list(map(int, input().split())) total_vote = sum(item_vote) item_vote = sorted(item_vote, reverse=True) boder = int(total_vote/(4*M)) if item_vote[M-1] < boder: print('No') else: print('Yes')
N, M = map(int, input().split()) item_vote = list(map(int, input().split())) total_vote = sum(item_vote) item_vote = sorted(item_vote, reverse=True) boder = total_vote/(4*M) if item_vote[M-1] < boder: print('No') else: print('Yes')
[ "call.remove", "call.arguments.change" ]
487,066
487,067
u661439250
python
p02718
N, M = map(int, input().split()) item_vote = list(map(int, input().split())) total_vote = sum(item_vote) item_vote = sorted(item_vote, reverse=True) boder = total_vote/4*M if item_vote[M-1] > boder: print('Yes') else: print('No')
N, M = map(int, input().split()) item_vote = list(map(int, input().split())) total_vote = sum(item_vote) item_vote = sorted(item_vote, reverse=True) boder = total_vote/(4*M) if item_vote[M-1] < boder: print('No') else: print('Yes')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove", "call.add" ]
487,068
487,067
u661439250
python
p02718
N, M=map(int, input().split()) A=list(map(int, input().split())) A_sort=sorted(A)[::-1] if A_sort[M-1]/sum(A) >= 1/4*M: print("Yes") else: print("No")
N, M=map(int, input().split()) A=list(map(int, input().split())) A_sort=sorted(A)[::-1] if A_sort[M-1]/sum(A) >= 1/(4*M): print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
487,069
487,070
u209313313
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) count=0 b=sum(a) for i in range(n): if a[i]>=b//(4*m): count=count+1 if count>=m: print("Yes") else: print("No")
n,m=map(int,input().split()) a=list(map(int,input().split())) count=0 b=sum(a) for i in range(n): if a[i]>=b/(4*m): count=count+1 if count>=m: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
487,071
487,072
u445670279
python
p02718
n, m = map(int, input().split()) # n, m = map(int, "4 1".split()) # inputText2 = "5 4 2 1" inputText2 = input() input2List = list(map(int,inputText2.split())) sortList = sorted(input2List, reverse=True) # print(sortList) #380 19 1000 total = sum(sortList) # print(total) h = (1/4*m) * total # print(h) flg = False for i ...
n, m = map(int, input().split()) # n, m = map(int, "12 3".split()) # inputText2 = "4 56 78 901 2 345 67 890 123 45 6 789" inputText2 = input() input2List = list(map(int,inputText2.split())) sortList = sorted(input2List, reverse=True) # print(sortList) #380 19 1000 total = sum(sortList) # print(total) h = (1/(4*m)) * to...
[ "control_flow.break.add" ]
487,080
487,081
u963349415
python
p02718
n, m = map(int, input().split()) # n, m = map(int, "4 1".split()) # inputText2 = "5 4 2 1" inputText2 = input() input2List = list(map(int,inputText2.split())) sortList = sorted(input2List, reverse=True) # print(sortList) #380 19 1000 total = sum(sortList) # print(total) h = (1/4*m) * total # print(h) flg = False for i ...
n, m = map(int, input().split()) # n, m = map(int, "12 3".split()) # inputText2 = "4 56 78 901 2 345 67 890 123 45 6 789" inputText2 = input() input2List = list(map(int,inputText2.split())) sortList = sorted(input2List, reverse=True) # print(sortList) #380 19 1000 total = sum(sortList) # print(total) h = (1/(4*m)) * to...
[ "control_flow.break.add", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
487,082
487,081
u963349415
python
p02718
def resolve(): N, M = map(int, input().split()) A = sorted(map(int, input().split()), reverse=True) ok_line = sum(A)/(4*M) cnt = 0 for a in A: if ok_line < a: cnt += 1 ans = True if M <= cnt else False return print("Yes" if ans else "No") if __name__ == "__main__": ...
def resolve(): N, M = map(int, input().split()) A = sorted(map(int, input().split()), reverse=True) ok_line = sum(A)/(4*M) cnt = 0 for a in A: if not (a < ok_line): cnt += 1 ans = True if M <= cnt else False return print("Yes" if ans else "No") if __name__ == "__main__"...
[ "control_flow.loop.for.condition.change", "control_flow.branch.if.condition.change" ]
487,111
487,112
u581187895
python
p02718
N,M = map(int,input().split()) L= [int(x) for x in input().split()] L.sort(reverse=True) for x in range(M): if float(L[x]) < sum(L) // (4*M): print("No") exit() print("Yes")
N,M = map(int,input().split()) L= [int(x) for x in input().split()] L.sort(reverse=True) for x in range(M): if float(L[x]) < sum(L) / (4*M): print("No") exit() print("Yes")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
487,135
487,136
u748999254
python
p02718
N,M = map(int,input().split()) A = list(map(int,input().split())) K = 0 L = 0 for i in range(N): K = K + int(A[i]) j = 0 while L < M and j < N: if int(A[j]) >= (K/4*M): L = L + 1 j = j + 1 if L < M: print('No') elif L == M: print('Yes')
N,M = map(int,input().split()) A = list(map(int,input().split())) K = 0 L = 0 for i in range(N): K = K + int(A[i]) j = 0 while L < M and j < N: if int(A[j]) >= (K/(4*M)): L = L + 1 j = j + 1 if L < M: print('No') elif L == M: print('Yes')
[ "control_flow.branch.if.condition.change" ]
487,140
487,141
u418420470
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = 0 total = 0 for i in range(len(A)): total += A[i] A = sorted(A, reverse=True) for i in range(M): if(A[i] >= total/4*M): ans = 1 else: ans = 0 if(ans == 1): print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) ans = 0 total = 0 for i in range(len(A)): total += A[i] A = sorted(A, reverse=True) for i in range(M): if(A[i] >= total/(4*M)): ans += 1 else: ans += 0 if(M == ans): print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "assignment.value.change", "identifier.change", "identifier.replace.add", "literal.replace.remove" ]
487,148
487,149
u212347962
python
p02718
#!/usr/bin/env python3 def main(): N,M = map(int, input().split()) votes = [int(s) for s in input().split()] votes_sum = sum(votes) border_line = votes_sum / (4*M) result = 'Yes' votes.sort(reverse=True) for i in range(M): if votes[i] <= border_line: result = 'No' ...
#!/usr/bin/env python3 def main(): N,M = map(int, input().split()) votes = [int(s) for s in input().split()] votes_sum = sum(votes) border_line = votes_sum / (4*M) result = 'Yes' votes.sort(reverse=True) for i in range(M): if votes[i] < border_line: result = 'No' ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
487,152
487,153
u390793752
python
p02718
n,m = input().split(" ") n=int(n) m=int(m) arr = list(map(int,input().split(" "))) x = sum(arr) frac = x//(m*4) ans=0 for i in range(len(arr)): if(arr[i]>=frac): ans+=1 if(ans>=m): print("Yes") else: print("No")
n,m = input().split(" ") n=int(n) m=int(m) arr = list(map(int,input().split(" "))) x = sum(arr) frac = x/(m*4) ans=0 for i in range(len(arr)): if(arr[i]>=frac): ans+=1 if(ans>=m): print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
487,162
487,163
u968826463
python
p02718
n,m = input().split(" ") n=int(n) m=int(m) arr = list(map(int,input().split(" "))) x = sum(arr) frac = x//(m*4) ans=0 for i in range(len(arr)): if(arr[i]>frac): ans+=1 if(ans>=m): print("Yes") else: print("No")
n,m = input().split(" ") n=int(n) m=int(m) arr = list(map(int,input().split(" "))) x = sum(arr) frac = x/(m*4) ans=0 for i in range(len(arr)): if(arr[i]>=frac): ans+=1 if(ans>=m): print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
487,164
487,163
u968826463
python