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
s = [input() for i in range(2)] n = int(s[0].split()[0]) m = int(s[0].split()[1]) a = list(map(int, s[1].split())) sumVote = sum(a) border = 1 / (4 * m) select = 0 for item in a: if border <= item: select += 1 if select == m: print("Yes") exit() print("No")
s = [input() for i in range(2)] n = int(s[0].split()[0]) m = int(s[0].split()[1]) a = list(map(int, s[1].split())) sumVote = sum(a) border = 1 / (4 * m) * sumVote select = 0 for item in a: if border <= item: select += 1 if select == m: print("Yes") exit() print("No")
[ "assignment.change" ]
483,813
483,814
u761062383
python
p02718
s = [input() for i in range(2)] n = int(s[0].split()[0]) m = int(s[0].split()[1]) a = list(map(int, s[1].split())) sumVote = sum(a) border = 1 / 4 * m select = 0 for item in a: if border <= item: select += 1 if select == m: print("Yes") exit() print("No")
s = [input() for i in range(2)] n = int(s[0].split()[0]) m = int(s[0].split()[1]) a = list(map(int, s[1].split())) sumVote = sum(a) border = 1 / (4 * m) * sumVote select = 0 for item in a: if border <= item: select += 1 if select == m: print("Yes") exit() print("No")
[ "assignment.change" ]
483,815
483,814
u761062383
python
p02718
s = [input() for i in range(2)] n = int(s[0].split()[0]) m = int(s[0].split()[1]) a = list(map(int, s[1].split())) sumVote = sum(a) border = 1 / 4 * m select = 0 for item in a: if border < item: select += 1 if select == m: print("Yes") exit() print("No")
s = [input() for i in range(2)] n = int(s[0].split()[0]) m = int(s[0].split()[1]) a = list(map(int, s[1].split())) sumVote = sum(a) border = 1 / (4 * m) * sumVote select = 0 for item in a: if border <= item: select += 1 if select == m: print("Yes") exit() print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
483,816
483,814
u761062383
python
p02718
def resolve(): n,m=map(int, input().split()) l=list(map(int, input().split())) sou=sum(l) cnt=0 l.sort(reverse=True) for i in range(n): if l[i]>=sou*1/(4*m): cnt+=1 if cnt>m: print('Yes') else: print('No') resolve()
def resolve(): n,m=map(int, input().split()) l=list(map(int, input().split())) sou=sum(l) cnt=0 l.sort(reverse=True) for i in range(n): if l[i]>=sou*1/(4*m): cnt+=1 if cnt>=m: print('Yes') else: print('No') resolve()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
483,827
483,828
u057964173
python
p02718
def main(): n, m = map(int, input().split()) arr = tuple(map(int, input().split())) threshold = sum(arr) / (4 * m) ans = "Yes" if len(tuple(filter(lambda a: a > threshold, arr))) >= m else "No" print(ans) main()
def main(): n, m = map(int, input().split()) arr = tuple(map(int, input().split())) threshold = sum(arr) / (4 * m) ans = "Yes" if len(tuple(filter(lambda a: a >= threshold, arr))) >= m else "No" print(ans) main()
[ "expression.operator.compare.change", "assignment.value.change", "call.arguments.change" ]
483,833
483,834
u002625175
python
p02718
def main(): n, m = map(int, input().split()) arr = tuple(map(int, input().split())) threshold = sum(arr) * m / 4 ans = "Yes" if len(tuple(filter(lambda a: a > threshold, arr))) >= m else "No" print(ans) main()
def main(): n, m = map(int, input().split()) arr = tuple(map(int, input().split())) threshold = sum(arr) / (4 * m) ans = "Yes" if len(tuple(filter(lambda a: a >= threshold, arr))) >= m else "No" print(ans) main()
[ "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "call.arguments.change" ]
483,835
483,834
u002625175
python
p02718
N,M=map(int,input().split()) a=list(map(int,input().split())) cnt=0 X=int(sum(a)) for i in range(N): if a[i]>X/(4*M): cnt+=1 if cnt>=M: print("Yes") else: print("No")
N,M=map(int,input().split()) a=list(map(int,input().split())) cnt=0 X=int(sum(a)) for i in range(N): if a[i]>=X/(4*M): cnt+=1 if cnt>=M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
483,842
483,843
u440113208
python
p02718
N,M=map(int,input().split()) a=list(map(int,input().split())) cnt=0 X=int(sum(a)) for i in range(N): if a[i]>X/(4*M): cnt+=1 if cnt>=M: print("Yes") else: print("No")
N,M=map(int,input().split()) a=list(map(int,input().split())) cnt=0 X=int(sum(a)) for i in range(N): if a[i]>=X/(4*M): cnt+=1 if cnt>=M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
483,844
483,843
u440113208
python
p02718
n, m = map(int, input().split()) vote = list(map(int, input().split())) vote.sort(reverse=True) popular = vote[0:m-1] sum = sum(vote) yes = True for win in popular: if win < sum / (4*m): print('No') yes = False break if yes: print('Yes')
n, m = map(int, input().split()) vote = list(map(int, input().split())) vote.sort(reverse=True) popular = vote[0:m] sum = sum(vote) yes = True for win in popular: if win < sum / (4*m): print('No') yes = False break if yes: print('Yes')
[ "expression.operation.binary.remove" ]
483,847
483,848
u542190960
python
p02718
n, m = map(int, input().split()) vote = list(map(int, input().split())) vote.sort(reverse=True) popular = vote[0:m-1] sum = sum(vote) yes = True for win in popular: if win < sum / (4*m): print('No') yes = False stop if yes: print('Yes')
n, m = map(int, input().split()) vote = list(map(int, input().split())) vote.sort(reverse=True) popular = vote[0:m] sum = sum(vote) yes = True for win in popular: if win < sum / (4*m): print('No') yes = False break if yes: print('Yes')
[ "expression.operation.binary.remove" ]
483,849
483,848
u542190960
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse = True) if sum(A)/(4*M) < A[M -1]: print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse = True) if sum(A)/(4*M) <= A[M -1]: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
483,867
483,868
u382639013
python
p02718
# coding: utf-8 # Your code here! N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse = True) quart = sum(A) / N for i in range(M): if A[i] < quart: print('No') exit() else: print('Yes')
# coding: utf-8 # Your code here! N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse = True) quart = sum(A) / (4 * M) for i in range(M): if A[i] < quart: print('No') exit() else: print('Yes')
[ "assignment.value.change", "expression.operation.binary.change" ]
483,879
483,880
u671252250
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) flg = False A.sort(reverse=True) for i in range(M): if 1 / 4 * M <= A[i]: flg = True else: flg = False if flg: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) flg = False A.sort(reverse=True) for i in range(M): if sum(A) / 4 / M <= A[i]: flg = True else: flg = False if flg: print('Yes') else: print('No')
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.arguments.add", "expression.operator.arithmetic.change" ]
483,891
483,892
u254221913
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) flg = False A.sort(reverse=True) for i in range(M): if 1 / 4 / M <= A[i]: flg = True else: flg = False if flg: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) flg = False A.sort(reverse=True) for i in range(M): if sum(A) / 4 / M <= A[i]: flg = True else: flg = False if flg: print('Yes') else: print('No')
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.arguments.add" ]
483,893
483,892
u254221913
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a = sorted(a, reverse=True) total = 0 for i in range(n): total += a[i] min = total // (4 * m) bool = True for i in range(m): if a[i] >= min: continue else: bool = False if bool == True: print('Yes') else: print('...
n, m = map(int, input().split()) a = list(map(int, input().split())) a = sorted(a, reverse=True) total = 0 for i in range(n): total += a[i] min = total / (4 * m) bool = True for i in range(m): if a[i] >= min: continue else: bool = False if bool == True: print('Yes') else: print('N...
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
483,903
483,904
u160169132
python
p02718
import numpy as np n, m = map(int, input().split()) A = np.array([int(i) for i in input().split()], dtype=int) A -= sum(A) // (4 * m) print('Yes' if np.sum(A > 0) >= m else 'No')
import numpy as np n, m = map(int, input().split()) A = np.array([int(i) for i in input().split()], dtype=int) low = sum(A)/(4*m) print('Yes' if np.sum(A >= low) >= m else 'No')
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
483,911
483,912
u706786134
python
p02718
n,m = map(int, input().split()) s = input() t = s.rstrip().split(' ') c = 0 for a in t: c += int(a) d = 0 for a in t: if int(a) >= c: d += 1 if d < m: print('No') else: print('Yes')
n,m = map(int, input().split()) s = input() t = s.rstrip().split(' ') c = 0 for a in t: c += int(a) d = 0 for a in t: if int(a) >= c/4/m : d += 1 if d < m: print('No') else: print('Yes')
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
483,913
483,914
u227085629
python
p02718
N, M = map(int, input().split()) vote = list(map(int,input().split())) votes = sum(vote) ans = [i for i in L if i * 4 * M >= votes] if len(ans) >= M: print('Yes') else: print('No')
N, M = map(int, input().split()) vote = list(map(int,input().split())) votes = sum(vote) ans = [i for i in vote if i * 4 * M >= votes] if len(ans) >= M: print('Yes') else: print('No')
[ "assignment.value.change", "identifier.change" ]
483,917
483,918
u854780853
python
p02718
N, M = map(int,input().split()) An = list(map(int,input().split())) S = sum(An) A = [a for a in An if a * 4 * M >= S] if len(A)>=M: print('Yes') else: print('NO')
N, M = map(int,input().split()) An = list(map(int,input().split())) S = sum(An) A = [a for a in An if a * 4 * M >= S] if len(A)>=M: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
483,919
483,920
u124499550
python
p02718
[N,M]=list(map(int,input().split())) A=list(map(int,input().split())) print(["No","Yes"][int(len (list(filter(lambda Ai:Ai>sum(A)/4/M,A)))>M-1)])
[N,M]=list(map(int,input().split())) A=list(map(int,input().split())) print(["No","Yes"][int(len(list(filter(lambda Ai:Ai>=sum(A)/4/M,A)))>M-1)])
[ "expression.operator.compare.change", "variable_access.subscript.index.change", "call.arguments.change" ]
483,924
483,925
u435788772
python
p02718
[N,M]=list(map(int,input().split())) A=list(map(int,input().split())) print(["No","Yes"][int(len (list(filter(lambda Ai:Ai>sum(A)/4/M,A)))>M-1)])
[N,M]=list(map(int,input().split())) A=list(map(int,input().split())) print(["No","Yes"] [int(len(list(filter(lambda Ai:Ai>=sum(A)/4/M,A)))>M-1)])
[ "expression.operator.compare.change", "variable_access.subscript.index.change", "call.arguments.change" ]
483,924
483,926
u435788772
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) G=sum(A)/(4*M) A.sort() A.reverse() m=0 i=0 while A[i]>G: m+=1 if m==M: print("Yes") exit() i+=1 print("No")
N,M=map(int,input().split()) A=list(map(int,input().split())) G=sum(A)/(4*M) A.sort() A.reverse() m=0 i=0 while A[i]>=G: m+=1 if m==M: print("Yes") exit() i+=1 print("No")
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
483,929
483,930
u109617108
python
p02718
#import numpy as np import math def solve(): tv = sum(a) min_votes = math.ceil(tv * 1/4 / m) print(min_votes) cnt = 0 for ai in a: if ai>=min_votes: cnt+=1 if cnt>=m: print("Yes") else: print("No") return #s = input() n, m = [int(i) for i in input...
#import numpy as np import math def solve(): tv = sum(a) min_votes = math.ceil(tv * 1/4 / m) cnt = 0 for ai in a: if ai>=min_votes: cnt+=1 if cnt>=m: print("Yes") else: print("No") return #s = input() n, m = [int(i) for i in input().split(" ")] a = [i...
[ "call.remove" ]
483,935
483,936
u618101737
python
p02718
#import numpy as np import math def solve(): tv = sum(a) min_votes = math.ceil(tv * 1/4 * m) cnt = 0 for ai in a: if ai>=min_votes: cnt+=1 if cnt>=m: print("Yes") else: print("No") return #s = input() n, m = [int(i) for i in input().split(" ")] a = [i...
#import numpy as np import math def solve(): tv = sum(a) min_votes = math.ceil(tv * 1/4 / m) cnt = 0 for ai in a: if ai>=min_votes: cnt+=1 if cnt>=m: print("Yes") else: print("No") return #s = input() n, m = [int(i) for i in input().split(" ")] a = [i...
[ "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
483,937
483,936
u618101737
python
p02718
import numpy as np N, M = map(int, input().split()) A = list(map(int, input().split())) min_ = sum(A) / (4*M) item = sum(x>min_ for x in A) print("Yes" if item>= M else "No")
import numpy as np N, M = map(int, input().split()) A = list(map(int, input().split())) min_ = sum(A) / (4*M) item = sum(x>=min_ for x in A) print("Yes" if item>= M else "No")
[ "expression.operator.compare.change", "assignment.value.change" ]
483,981
483,982
u959567386
python
p02718
import numpy as np N, M = map(int, input().split()) A = list(map(int, input().split())) min_ = sum(A) / (4*M) item = sum(x>min_ for x in A) print("Yes" if item>M else "No")
import numpy as np N, M = map(int, input().split()) A = list(map(int, input().split())) min_ = sum(A) / (4*M) item = sum(x>=min_ for x in A) print("Yes" if item>= M else "No")
[ "expression.operator.compare.change", "assignment.value.change", "call.arguments.change", "io.output.change" ]
483,983
483,982
u959567386
python
p02718
x = input().split(" ") a = input().split(" ") n = int(x[0]) m = int(x[1]) sum = 0 counter = 0 for i in a: sum += int(i) bunsu = sum / 4 / m for i in a: if float(i) > bunsu: if counter <= m: counter += 1 if counter >= m: print("Yes") else: print("No")
x = input().split(" ") a = input().split(" ") n = int(x[0]) m = int(x[1]) sum = 0 counter = 0 for i in a: sum += int(i) bunsu = sum / 4 / m for i in a: if float(i) >= bunsu: if counter <= m: counter += 1 if counter >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,005
484,006
u911612669
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) comp = 1 / (4 * m) total = 0 suma = sum(a) for i in range(n): if a[i] / suma > comp: total += 1 if total >= m: print('Yes') else: print('No')
n, m = map(int, input().split()) a = list(map(int, input().split())) comp = 1 / (4 * m) total = 0 suma = sum(a) for i in range(n): if a[i] / suma >= comp: total += 1 if total >= m: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,011
484,012
u084261177
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) < trigger: F = F + 1 if N - F > M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) < trigger: F = F + 1 if N - F >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,032
484,033
u042558137
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) < trigger: F = F + 1 if F < M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) < trigger: F = F + 1 if N - F >= M: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
484,034
484,033
u042558137
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) > trigger: F = F + 1 if F >= M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) < trigger: F = F + 1 if N - F >= M: print('Yes') else: print('No')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,035
484,033
u042558137
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) > trigger: F = F + 1 if F > M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) < trigger: F = F + 1 if N - F >= M: print('Yes') else: print('No')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,036
484,033
u042558137
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) > trigger: F = F + 1 if F >= M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) >= trigger: F = F + 1 if F >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,035
484,037
u042558137
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) > trigger: F = F + 1 if F > M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) F = 0 trigger = 1 / (4 * M) for i in range(len(A)): if A[i]/sum(A) >= trigger: F = F + 1 if F >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,036
484,037
u042558137
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) S=sum(A) ans=0 for i in range(N): if A[i]>=1/(4*M): ans+=1 if ans>=M: print('Yes') else: print('No')
N,M=map(int,input().split()) A=list(map(int,input().split())) S=sum(A) ans=0 for i in range(N): if A[i]>=S/(4*M): ans+=1 if ans>=M: print('Yes') else: print('No')
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
484,038
484,039
u111652094
python
p02718
n=[int(i) for i in input().split()] m=[int(j) for j in input().split()] a=sum(m)*1/(4*n[1]) l=[] for k in m: if k>=a: l.append(k) if len(l)>n[1]: print("Yes") else: print("No")
n=[int(i) for i in input().split()] m=[int(j) for j in input().split()] a=sum(m)*1/(4*n[1]) l=[] for k in m: if k>=a: l.append(k) if len(l)>=n[1]: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,052
484,053
u067447457
python
p02718
n=[int(i) for i in input().split()] m=[int(j) for j in input().split()] a=sum(m)*1/(4*n[1]) l=[] for k in m: if k>a: l.append(k) if len(l)>n[1]: print("Yes") else: print("No")
n=[int(i) for i in input().split()] m=[int(j) for j in input().split()] a=sum(m)*1/(4*n[1]) l=[] for k in m: if k>=a: l.append(k) if len(l)>=n[1]: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,054
484,053
u067447457
python
p02718
N,M=(int(x) for x in input().split()) a=list(map(int, input().split())) b=0 c=0 for i in range(N-1): b+=a[i] for i in range(N-1): if(a[i]>=b/(4*M)):c+=1 if(c>=M):print('Yes') else:print('No')
N,M=(int(x) for x in input().split()) a=list(map(int, input().split())) b=0 c=0 for i in range(N): b+=a[i] #print(i) for i in range(N): if(a[i]>=b/(4*M)):c+=1 #print(i) if(c>=M):print('Yes') else:print('No')
[ "expression.operation.binary.remove" ]
484,055
484,056
u531374611
python
p02718
N,M = map(int,input().split()) a = input().split() for i in a: if int(i) >= sum(map(int,a))* 1/(4*M): ans+=1 if ans >= M: print("Yes") else: print("No")
N,M = map(int,input().split()) a = input().split() ans =0 for i in a: if int(i) >= sum(map(int,a))* 1/(4*M): ans+=1 if ans >= M: print("Yes") else: print("No")
[ "assignment.add" ]
484,059
484,060
u762755436
python
p02718
n , m = map(int , input().split()) a = input().split() print(a) ans = 0 for i in a: if int(i) >= sum(map(int , a)) * 1/(4*m): ans += 1 if ans >= m: print("Yes") else: print("No")
n , m = map(int , input().split()) a = input().split() ans = 0 for i in a: if int(i) >= sum(map(int , a)) * 1/(4*m): ans += 1 if ans >= m: print("Yes") else: print("No")
[ "call.remove" ]
484,061
484,062
u643498327
python
p02718
N,M = map(int,input().split()) A =list(map(int,input().split())) c =0 s = sum(A) for x in range(M): if A[x] > s/(4*M): c+=1 if c >= M : print("Yes") else: print("No")
N,M = map(int,input().split()) A =list(map(int,input().split())) c =0 s = sum(A) for x in range(N): if A[x] >= s/(4*M): c+=1 if c >= M : print("Yes") else: print("No")
[ "identifier.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,071
484,072
u948521599
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse = True) print('Yes' if a[m-1] >= 1/4/m else 'No')
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse = True) print('Yes' if a[m-1] >= sum(a)/4/m else 'No')
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "call.arguments.add" ]
484,076
484,077
u044459372
python
p02718
NM = list(map(int, input().split())) A = list(map(int, input().split())) count = 0 sumA = sum(A) board = sumA // (4*NM[1]) # print(sumA) # print(board) for i in range(len(A)): if A[i] > board: count += 1 else: continue if count >= NM[1]: print("Yes") else: print("No")
NM = list(map(int, input().split())) A = list(map(int, input().split())) count = 0 sumA = sum(A) board = sumA / (4*NM[1]) # print(sumA) # print(board) for i in range(len(A)): if float(A[i]) >= board: count += 1 else: continue if count >= NM[1]: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.add" ]
484,086
484,087
u282652245
python
p02718
NM = list(map(int, input().split())) A = list(map(int, input().split())) count = 0 sumA = sum(A) board = sumA // (4*NM[1]) # print(sumA) # print(board) for i in range(len(A)): if A[i] > board: count += 1 else: continue if count > NM[1]: print("Yes") else: print("No")
NM = list(map(int, input().split())) A = list(map(int, input().split())) count = 0 sumA = sum(A) board = sumA / (4*NM[1]) # print(sumA) # print(board) for i in range(len(A)): if float(A[i]) >= board: count += 1 else: continue if count >= NM[1]: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.add", "expression.operator.compare.change" ]
484,088
484,087
u282652245
python
p02718
NM = list(map(int, input().split())) A = list(map(int, input().split())) count = 0 sumA = sum(A) board = sumA // (4*NM[1]) # print(sumA) # print(board) for i in range(len(A)): if A[i] >= board: count += 1 else: continue if count > NM[1]: print("Yes") else: print("No")
NM = list(map(int, input().split())) A = list(map(int, input().split())) count = 0 sumA = sum(A) board = sumA / (4*NM[1]) # print(sumA) # print(board) for i in range(len(A)): if float(A[i]) >= board: count += 1 else: continue if count >= NM[1]: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.add", "expression.operator.compare.change" ]
484,089
484,087
u282652245
python
p02718
NM = list(map(int, input().split())) A = list(map(int, input().split())) count = 0 sumA = sum(A) board = sumA // (4*NM[1]) # print(sumA) # print(board) for i in range(len(A)): if A[i] >= board: count+=1 else: continue if count >= NM[1]: print("Yes") else: print("No")
NM = list(map(int, input().split())) A = list(map(int, input().split())) count = 0 sumA = sum(A) board = sumA / (4*NM[1]) # print(sumA) # print(board) for i in range(len(A)): if float(A[i]) >= board: count += 1 else: continue if count >= NM[1]: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.add" ]
484,090
484,087
u282652245
python
p02718
N,M = map(int,input().split()) A = list(map(int,input().split())) S = sum(A) cnt = 0 for a in A: if a<=S/(4*M): cnt += 1 print("Yes" if cnt>=M else "No")
N,M = map(int,input().split()) A = list(map(int,input().split())) S = sum(A) cnt = 0 for a in A: if a>=S/(4*M): cnt += 1 print("Yes" if cnt>=M else "No")
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,091
484,092
u039189422
python
p02718
def main(): n, m = (int(x) for x in input().split()) a_list = list(map(int, input().split())) sum_num = 0 sum_num = sum(a_list) count = 0 for i in a_list: if(i >= sum_num/(4 * m)): count += 1 print(count) if(count >= m): print('Yes') else: print('No') if __name__ == '__main__': m...
def main(): n, m = (int(x) for x in input().split()) a_list = list(map(int, input().split())) sum_num = 0 sum_num = sum(a_list) count = 0 for i in a_list: if(i >= sum_num/(4 * m)): count += 1 if(count >= m): print('Yes') else: print('No') if __name__ == '__main__': main()
[ "call.remove" ]
484,112
484,113
u250554058
python
p02718
def main(): n, m = (int(x) for x in input().split()) a_list = list(map(int, input().split())) sum_num = 0 sum_num = sum(a_list) count = 0 for i in a_list: if(i >= sum_num/4): count += 1 if(count >= m): print('Yes') else: print('No') if __name__ == '__main__': main()
def main(): n, m = (int(x) for x in input().split()) a_list = list(map(int, input().split())) sum_num = 0 sum_num = sum(a_list) count = 0 for i in a_list: if(i >= sum_num/(4 * m)): count += 1 if(count >= m): print('Yes') else: print('No') if __name__ == '__main__': main()
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
484,114
484,113
u250554058
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) a.sort() if a[-m+1]<(sum(a)/(4*m)): print("No") else: print("Yes")
n,m=map(int,input().split()) a=list(map(int,input().split())) a.sort() if a[-m]<(sum(a)/(4*m)): print("No") else: print("Yes")
[ "expression.operation.binary.remove" ]
484,129
484,130
u032222383
python
p02718
N,M = map(int,input().split()) A = list(map(int,input().split())) num = 0 for i in range(N): if A[i] >= 1/(4*M): num += 1 if num >= M: print('Yes') else: print('No')
N,M = map(int,input().split()) A = list(map(int,input().split())) num = 0 for i in range(N): if A[i] >= sum(A) * 1/(4*M): num += 1 if num >= M: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
484,135
484,136
u216752093
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) count=0 sum=0 for i in range(n): sum = sum + a[i] for i in range(n): if a[i] >= int(sum*(1/(4*m))): count +=1 else: pass if count>=m: print('Yes') else: print('No')
n,m = map(int,input().split()) a = list(map(int,input().split())) count=0 sum=0 for i in range(n): sum = sum + a[i] for i in range(n): if a[i] >= sum*(1/(4*m)): count +=1 else: pass if count>=m: print('Yes') else: print('No')
[ "control_flow.loop.for.condition.change", "call.remove", "control_flow.branch.if.condition.change" ]
484,165
484,166
u559112776
python
p02718
n, m = map(int, input().split()) an = list(map(int, input().split())) counter = 0 for i in an: if i >= 1/(4*m): counter += 1 if counter >= m: print('Yes') else: print('No')
n, m = map(int, input().split()) an = list(map(int, input().split())) counter = 0 for i in an: if i >= sum(an)/(4*m): counter += 1 if counter >= m: print('Yes') else: print('No')
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.arguments.add" ]
484,167
484,168
u086438369
python
p02718
n, m = map(int, input().split()) an = list(map(int, input().split())) counter = 0 for i in an: if i >= 1/4*m: counter += 1 if counter >= m: print('Yes') else: print('No')
n, m = map(int, input().split()) an = list(map(int, input().split())) counter = 0 for i in an: if i >= sum(an)/(4*m): counter += 1 if counter >= m: print('Yes') else: print('No')
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.arguments.add" ]
484,169
484,168
u086438369
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) s = sum(a) print(a,s) if a[m-1] < s/(4*m): print("No") else: print("Yes")
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("No") else: print("Yes")
[ "call.remove" ]
484,170
484,171
u354281482
python
p02718
n, m= input().split() n, m= int(n), int(m) eq=0 soma=0 cont=0 lista=[] for x in input().split(): x= int(x) lista.append(x) soma+=x eq= soma/4*m for x in range(n): if lista[x] >= eq: cont+=1 if cont < m: print('No') else: print('Yes')
n, m= input().split() n, m= int(n), int(m) eq=0 soma=0 cont=0 lista=[] for x in input().split(): x= int(x) lista.append(x) soma+=x eq= soma/(4*m) for x in range(n): if lista[x] >= eq: cont+=1 if cont < m: print('No') else: print('Yes')
[]
484,179
484,180
u132266749
python
p02718
# coding: utf-8 DATA = """ 12 3 4 56 78 901 2 345 67 890 123 45 6 789 """.split("\n") def get_debug_line(): for i in DATA: yield i if 1: get_line = input else: get_line = get_debug_line().__next__ get_line() N, M = [int(i) for i in get_line().strip().split(" ")] A = [int(i) for i in get_line().strip().split(" ...
# coding: utf-8 DATA = """ 12 3 4 56 78 901 2 345 67 890 123 45 6 789 """.split("\n") def get_debug_line(): for i in DATA: yield i if 1: get_line = input else: get_line = get_debug_line().__next__ get_line() N, M = [int(i) for i in get_line().strip().split(" ")] A = [int(i) for i in get_line().strip().split(" ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,202
484,203
u712052023
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("No") else: print("Yes")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
484,208
484,209
u720636500
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("No") else: print("Yes")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
484,210
484,209
u720636500
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("No") else: print("Yes")
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("No") else: print("Yes")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
484,211
484,209
u720636500
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) s = sum(a) a.sort(reversed = True) k = s/(4*m) if a[m-1] < k: print("No") else: print("Yes")
n, m = map(int, input().split()) a = list(map(int, input().split())) s = sum(a) a.sort(reverse = True) k = s/(4*m) if a[m-1] < k: print("No") else: print("Yes")
[ "identifier.change", "call.arguments.change", "call.arguments.keyword_argument.near.change" ]
484,212
484,213
u720636500
python
p02718
import sys N, M = map(int, input().split()) A = list(map(int, input().split())) A = sorted(A,reverse=True) for i in range(M): if A[i] < sum(A)*1//(4*M): # print(A[i]) print('No') sys.exit() print('Yes')
import sys N, M = map(int, input().split()) A = list(map(int, input().split())) A = sorted(A,reverse=True) for i in range(M): if A[i] < sum(A)*1/(4*M): #print(A[i],sum(A)*1/(4*M)) print('No') sys.exit() print('Yes') #print(sum(A)*1/(4*M))
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
484,224
484,225
u529106146
python
p02718
num = [] vote = [] num = list(map(int,input().split())) vote = list(map(int,input().split())) N = num[0] M = num[1] j = int(sum(vote)/(4*M)) #print(j) cnt = 0 for i in vote: if i>=j: cnt += 1 if M<=cnt: print("Yes") else: print("No")
num = [] vote = [] num = list(map(int,input().split())) vote = list(map(int,input().split())) N = num[0] M = num[1] j = sum(vote)/(4*M) #print(j) cnt = 0 for i in vote: if i>=j: cnt += 1 else: pass #print(cnt) if M<=cnt: print("Yes") else: print("No")
[ "call.remove", "call.arguments.change", "control_flow.pass.add" ]
484,254
484,255
u347920118
python
p02718
num = [] vote = [] num = list(map(int,input().split())) vote = list(map(int,input().split())) N = num[0] M = num[1] j = int(sum(vote)/(4*M)) #print(j) cnt = 0 for i in vote: if i>=j: cnt += 1 else: pass #print(cnt) if M<=cnt: print("Yes") else: print("No")
num = [] vote = [] num = list(map(int,input().split())) vote = list(map(int,input().split())) N = num[0] M = num[1] j = sum(vote)/(4*M) #print(j) cnt = 0 for i in vote: if i>=j: cnt += 1 else: pass #print(cnt) if M<=cnt: print("Yes") else: print("No")
[ "call.remove", "call.arguments.change" ]
484,256
484,255
u347920118
python
p02718
import sys nm=input().split() a=input() n=int(nm[0]) m=int(nm[1]) lista=[] for i in a: lista.append(int(i)) count=0 suma=sum(lista) thre=suma/4/m for i in lista: if i >= thre: count+=1 if count >= m: print('Yes') sys.exit() print('No')
import sys nm=input().split() a=input().split() n=int(nm[0]) m=int(nm[1]) lista=[] for i in a: lista.append(int(i)) count=0 suma=sum(lista) thre=suma/4/m for i in lista: if i >= thre: count+=1 if count >= m: print('Yes') sys.exit() print('No')
[ "call.add" ]
484,261
484,262
u246907970
python
p02718
n,m = map(int, input().split()) nums = [int(i) for i in input().split()] tot = 0 for i in nums: tot+= i cons = m/(4*tot) count = 0 for i in nums: if i>= cons: count+=1 if count>= m: print('Yes') else: print("No")
n,m = map(int, input().split()) nums = [int(i) for i in input().split()] tot = 0 for i in nums: tot+= i cons = tot/(4*m) count = 0 for i in nums: if i>= cons: count+=1 if count>= m: print('Yes') else: print("No")
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
484,293
484,294
u940592576
python
p02718
import sys input = sys.stdin.readline n, m = map(int, input().split()) A = list(map(int, input().split())) sm = sum(A) cnt = 0 for a in A: if 4 * m * a > sm: cnt += 1 can = "Yes" if cnt >= m else "No" print(can)
import sys input = sys.stdin.readline n, m = map(int, input().split()) A = list(map(int, input().split())) sm = sum(A) cnt = 0 for a in A: if 4 * m * a >= sm: cnt += 1 can = "Yes" if cnt >= m else "No" print(can)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,305
484,306
u831294922
python
p02718
data = input().split() n = int(data[0]) m = int(data[1]) pro = [int(s) for s in input().split()] vote = 0 for i in pro: vote += i s_pro = sorted(pro, reverse=True) if s_pro[m - 1] < 1 / (4 * vote): print("No") else: print("Yes")
data = input().split() n = int(data[0]) m = int(data[1]) pro = [int(s) for s in input().split()] vote = 0 for i in pro: vote += i s_pro = sorted(pro, reverse=True) if s_pro[m - 1] < vote * 1 / (4 * m): print("No") else: print("Yes")
[ "control_flow.branch.if.condition.change", "identifier.change" ]
484,307
484,308
u860966226
python
p02718
N,M = map(int,input().split()) A = list(map(int, input().split())) total = sum(A) cutoff = total/4*M over=[] for i in A: if i>=cutoff: over.append(i) if len(over)>=M: print('Yes') else: print('No')
N,M = map(int,input().split()) A = list(map(int, input().split())) total = sum(A) cutoff = total/(4*M) over=[] for i in A: if i>=cutoff: over.append(i) if len(over)>=M: print('Yes') else: print('No')
[]
484,309
484,310
u640922335
python
p02718
N,M = map(int,input().split()) A = list(map(int, input().split())) total = sum(A) cutoff = total/(4*N) over=[] for i in A: if i>=cutoff: over.append(i) if len(over)>=M: print('Yes') else: print('No')
N,M = map(int,input().split()) A = list(map(int, input().split())) total = sum(A) cutoff = total/(4*M) over=[] for i in A: if i>=cutoff: over.append(i) if len(over)>=M: print('Yes') else: print('No')
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
484,311
484,310
u640922335
python
p02718
N,M = map(int,input().split()) A = list(map(int, input().split())) total = sum(A) cutoff = total/N over=[] for i in A: if i>=cutoff: over.append(i) if len(over)>=M: print('Yes') else: print('No')
N,M = map(int,input().split()) A = list(map(int, input().split())) total = sum(A) cutoff = total/(4*M) over=[] for i in A: if i>=cutoff: over.append(i) if len(over)>=M: print('Yes') else: print('No')
[ "assignment.value.change", "expression.operation.binary.change" ]
484,313
484,310
u640922335
python
p02718
#!/usr/bin/python3 import sys # input = sys.stdin.readline sys.setrecursionlimit(100000) INF = float('inf') MOD = 10**9+7 EPS = 10**-7 #N = int(input()) #A = [int(x) for x in input().split()] #V = [[0] * 100 for _ in range(100)] N, M = [int(x) for x in input().split()] A = [int(x) for x in input().split()] s = sum(...
#!/usr/bin/python3 import sys # input = sys.stdin.readline sys.setrecursionlimit(100000) INF = float('inf') MOD = 10**9+7 EPS = 10**-7 #N = int(input()) #A = [int(x) for x in input().split()] #V = [[0] * 100 for _ in range(100)] N, M = [int(x) for x in input().split()] A = [int(x) for x in input().split()] s = sum(...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
484,318
484,319
u607865971
python
p02718
n,m = map(int,input().split()) a=list(map(int,input().split())) s=sum(a) l=int(s/(4*m)) # print(a,s,l) a.sort(reverse=True) if(a[m-1]>=l): print("Yes") else: print("No")
n,m = map(int,input().split()) a=list(map(int,input().split())) s=sum(a) l=s/(4*m) # print(a,s,l) a.sort(reverse=True) if(a[m-1]>=l): print("Yes") else: print("No")
[ "call.remove", "call.arguments.change" ]
484,327
484,328
u483130221
python
p02718
n,m = map(int,input().split()) lis = list(map(int,input().split())) lis.sort() t = sum(lis) c=0 condition = 1/(4*m) cost = t*condition for i in range(len(lis)): if(lis[i]>cost): c+=1 if(c>=m): print("Yes") else: print("No")
n,m = map(int,input().split()) lis = list(map(int,input().split())) lis.sort() t = sum(lis) c=0 condition = 1/(4*m) cost = t*condition for i in range(len(lis)): if(lis[i]>=cost): c+=1 if(c>=m): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,341
484,342
u396707099
python
p02718
n,m = map(int,input().split()) lis = list(map(int,input().split())) lis.sort() t = sum(lis) c=0 condition = 1/(4*m) cost = t*condition for i in range(len(lis)): if(lis[i]>cost): c+=1 if(c>=m): print("YES") else: print("NO")
n,m = map(int,input().split()) lis = list(map(int,input().split())) lis.sort() t = sum(lis) c=0 condition = 1/(4*m) cost = t*condition for i in range(len(lis)): if(lis[i]>=cost): c+=1 if(c>=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" ]
484,343
484,342
u396707099
python
p02718
n,m = map(int,input().split()) lis = list(map(int,input().split())) lis.sort() t = sum(lis) c=0 condition = 1/(2*m) cost = t*condition for i in range(len(lis)): if(lis[i]>cost): c+=1 if(c>=m): print("Yes") else: print("No")
n,m = map(int,input().split()) lis = list(map(int,input().split())) lis.sort() t = sum(lis) c=0 condition = 1/(4*m) cost = t*condition for i in range(len(lis)): if(lis[i]>=cost): c+=1 if(c>=m): print("Yes") else: print("No")
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,344
484,342
u396707099
python
p02718
import numpy as np n_m = [int(i) for i in input().split()] ai = np.array([int(i) for i in input().split()]) n = n_m[0] m = n_m[1] asum = ai.sum() thread = asum / (4 * asum) real_m = 0 for a in ai: if a < thread: continue else: real_m += 1 print("No") if real_m < m else print("Yes")
import numpy as np n_m = [int(i) for i in input().split()] ai = np.array([int(i) for i in input().split()]) n = n_m[0] m = n_m[1] asum = ai.sum() thread = asum / (4 * m) real_m = 0 for a in ai: if a < thread: continue else: real_m += 1 print("No") if real_m < m else print("Yes")
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
484,349
484,350
u617779302
python
p02718
import numpy as np n_m = [int(i) for i in input().split()] ai = np.array([int(i) for i in input().split()]) n = n_m[0] m = n_m[1] asum = ai.sum() thread = asum / (4 * asum) real_m = 0 for a in ai: if a < thread: continue else: real_m += 1 print("Yes") if real_m > m else print("No")
import numpy as np n_m = [int(i) for i in input().split()] ai = np.array([int(i) for i in input().split()]) n = n_m[0] m = n_m[1] asum = ai.sum() thread = asum / (4 * m) real_m = 0 for a in ai: if a < thread: continue else: real_m += 1 print("No") if real_m < m else print("Yes")
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change", "literal.string.change", "call.arguments.change", "io.output.change", "misc.opposites", "expression.operator.compare.change" ]
484,351
484,350
u617779302
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) cnt = 0 for i in a: if i >= (1/(4*m)): cnt += 1 if cnt >= m: print("Yes") else: print("No")
n, m = map(int, input().split()) a = list(map(int, input().split())) cnt = 0 for i in a: if i >= sum(a)*(1/(4*m)): cnt += 1 if cnt >= m: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
484,354
484,355
u511449169
python
p02718
#!/usr/bin/env python3 import pandas as pd n ,m = map(int, input().split()) a = pd.Series(list(map(int, input().split()))) t = a >= a.sum() * 1/(4*m) if t.sum() >= m: print('Yes') else: print('No')
#!/usr/bin/env python3 import numpy as np n ,m = map(int, input().split()) a = np.array(list(map(int, input().split()))) t = a >= a.sum() * 1/(4*m) if t.sum() >= m: print('Yes') else: print('No')
[ "identifier.change", "assignment.value.change" ]
484,362
484,363
u998741086
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) A.sort(reverse=True) c=0 for i in range(M): if A[i]<sum(A)*(1/4*M):c+=0 else:c+=1 if c==0:print('Yes') else:print('No')
N,M=map(int,input().split()) A=list(map(int,input().split())) A.sort(reverse=True) c=0 for i in range(M): if A[i]<sum(A)/(4*M):c+=1 else:c+=0 if c==0:print('Yes') else:print('No')
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change", "literal.number.integer.change" ]
484,364
484,365
u212242633
python
p02718
N, M = map(int, input().split()) A = sorted(map(int, input().split()), reverse=True) t = sum(A) if t/(4*M) <= A[M-1]: print("YES") else: print("NO")
N, M = map(int, input().split()) A = sorted(map(int, input().split()), reverse=True) t = sum(A) if t/(4*M) <= A[M-1]: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
484,373
484,374
u085910248
python
p02718
n, m = [int(x) for x in input().split()] a = [int(x) for x in input().split()] total_vote = sum(a) popular = [p for p in a if p*4 >= total_vote] if len(popular) >= m: print("Yes") else: print("No")
n, m = [int(x) for x in input().split()] a = [int(x) for x in input().split()] total_vote = sum(a) popular = [p for p in a if p >= total_vote/4/m] if len(popular) >= m: print("Yes") else: print("No")
[ "expression.operation.binary.remove" ]
484,382
484,383
u378407062
python
p02718
n, m = [int(x) for x in input().split()] a = [int(x) for x in input().split()] total_vote = sum(a) popular = [p for p in a if p >= total_vote/4] if len(popular) >= m: print("Yes") else: print("No")
n, m = [int(x) for x in input().split()] a = [int(x) for x in input().split()] total_vote = sum(a) popular = [p for p in a if p >= total_vote/4/m] if len(popular) >= m: print("Yes") else: print("No")
[ "assignment.change" ]
484,384
484,383
u378407062
python
p02718
n, m = [int(x) for x in input().split()] a = [int(x) for x in input().split()] total_vote = sum(a) popular = [p for p in a if p >= total_vote/4] if len(popular) >= 2: print("Yes") else: print("No")
n, m = [int(x) for x in input().split()] a = [int(x) for x in input().split()] total_vote = sum(a) popular = [p for p in a if p >= total_vote/4/m] if len(popular) >= m: print("Yes") else: print("No")
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
484,385
484,383
u378407062
python
p02718
n, m = list(map(int, input().split(" "))) a = list(map(int, input().split(" "))) l = list(x for x in a if x >= (sum(a)/4*m)) print("Yes" if len(l) >= m else "No")
n, m = list(map(int, input().split(" "))) a = list(map(int, input().split(" "))) l = list(x for x in a if x >= (sum(a)/(4*m))) print("Yes" if len(l) >= m else "No")
[]
484,400
484,401
u080081119
python
p02718
N,M = map(int,input().split(" ")) MER = list(map(int,input().split(" "))) mer_sum = sum(MER) threshold = mer_sum / (4 * M) mer_over = [1 if i < threshold else 0 for i in MER] mer_threshold = sum(mer_over) if M <= mer_threshold: print("Yes") else: print("No")
N,M = map(int,input().split(" ")) MER = list(map(int,input().split(" "))) mer_sum = sum(MER) threshold = mer_sum / (4 * M) mer_over = [1 if i >= threshold else 0 for i in MER] mer_threshold = sum(mer_over) if M <= mer_threshold: print("Yes") else: print("No")
[ "expression.operator.compare.change", "assignment.value.change" ]
484,411
484,412
u213155373
python
p02718
N,M = map(int,input().split(" ")) MER = map(int,input().split(" ")) mer_sum = sum(MER) threshold = mer_sum / (4 * M) mer_over = [1 if i >= threshold else 0 for i in MER] mer_threshold = sum(mer_over) if N <= mer_threshold: print("Yes") else: print("No")
N,M = map(int,input().split(" ")) MER = list(map(int,input().split(" "))) mer_sum = sum(MER) threshold = mer_sum / (4 * M) mer_over = [1 if i >= threshold else 0 for i in MER] mer_threshold = sum(mer_over) if M <= mer_threshold: print("Yes") else: print("No")
[ "call.add", "call.arguments.change", "identifier.change", "control_flow.branch.if.condition.change" ]
484,413
484,412
u213155373
python
p02718
N,M = map(int,input().split(" ")) MER = map(int,input().split(" ")) mer_sum = sum(MER) threshold = mer_sum / (4 * M) mer_over = [1 if i < threshold else 0 for i in MER] mer_threshold = sum(mer_over) if N <= mer_threshold: print("Yes") else: print("No")
N,M = map(int,input().split(" ")) MER = list(map(int,input().split(" "))) mer_sum = sum(MER) threshold = mer_sum / (4 * M) mer_over = [1 if i >= threshold else 0 for i in MER] mer_threshold = sum(mer_over) if M <= mer_threshold: print("Yes") else: print("No")
[ "call.add", "call.arguments.change", "expression.operator.compare.change", "assignment.value.change", "identifier.change", "control_flow.branch.if.condition.change" ]
484,414
484,412
u213155373
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: print('No') else: print('Yes')
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('No') else: print('Yes')
[ "control_flow.branch.if.condition.change" ]
484,423
484,424
u252964975
python
p02718
N ,M = map(int, input().split()) List = list(map(int, input().split())) stand = 1 / (4 * M) * sum(List) arr = [] for i in range(List): if List[i] >= stand: arr.append(List[i]) if len(arr) >= M: print("Yes") else: print("No")
N ,M = map(int, input().split()) List = list(map(int, input().split())) stand = 1 / (4 * M) * sum(List) arr = [] for i in range(len(List)): if List[i] >= stand: arr.append(List[i]) if len(arr) >= M: print("Yes") else: print("No")
[ "call.add", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
484,425
484,426
u348432940
python
p02718
n, m=map(int, input().split()) a = input().split() point = [int(s) for s in a] point.sort(reverse=True) if sum(point)/(4*m) < point[m-1]: print("Yes") else: print("No")
n, m=map(int, input().split()) a = input().split() point = [int(s) for s in a] point.sort(reverse=True) if sum(point)/(4*m) <= point[m-1]: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,427
484,428
u799528852
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) sum_A =0 for i in range(N): sum_A += A[i] ans = 0 for i in range(N): if (4*M*A[i] > sum_A): ans+=1 else: ans+=0 if (ans >= M): print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) sum_A =0 for i in range(N): sum_A += A[i] ans = 0 for i in range(N): if (4*M*A[i] >= sum_A): ans+=1 else: ans+=0 if (ans >= M): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,431
484,432
u281334626
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) sum_A =0 for i in range(N): sum_A += A[i] ans = 0 for i in range(N): if (4*M*A[i] < sum_A): ans+=1 else: ans+=0 if (ans >= M): print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) sum_A =0 for i in range(N): sum_A += A[i] ans = 0 for i in range(N): if (4*M*A[i] >= sum_A): ans+=1 else: ans+=0 if (ans >= M): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,433
484,432
u281334626
python
p02718
n, m = map(int, input().split()) A = list(map(int,input().split())) total = sum(A) A.sort(reverse = True) print(A) judge = True for i in range(m): if (total / (4*m)) < A[i]: continue else: judge = not judge break if judge: print("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int,input().split())) total = sum(A) A.sort(reverse = True) judge = True for i in range(m): if (total / (4*m)) <= A[i]: continue else: judge = not judge break if judge: print("Yes") else: print("No")
[ "call.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,434
484,435
u603939330
python
p02718
n, m = map(int, input().split()) A = list(map(int,input().split())) total = sum(A) A.sort(reverse = True) print(A) judge = True for i in range(m): if (total / (4*m)) < A[i]: continue else: judge = not judge if judge: print("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int,input().split())) total = sum(A) A.sort(reverse = True) judge = True for i in range(m): if (total / (4*m)) <= A[i]: continue else: judge = not judge break if judge: print("Yes") else: print("No")
[ "call.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.break.add" ]
484,436
484,435
u603939330
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) ans=0 inf=sum(A)/4*M for i in range(N): if A[i]>=inf:ans+=1 print("Yes" if ans>=M else "No")
N,M=map(int,input().split()) A=list(map(int,input().split())) ans=0 inf=sum(A)/(4*M) for i in range(N): if A[i]>=inf:ans+=1 print("Yes" if ans>=M else "No")
[]
484,437
484,438
u684305751
python
p02718
N,M=map(int,input().split()) hoge=list(map(int,input().split())) if sorted(hoge)[-M] > sum(hoge)/(4*M): print('Yes') else: print('No')
N,M=map(int,input().split()) hoge=list(map(int,input().split())) if sorted(hoge)[-M] >= sum(hoge)/(4*M): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,441
484,442
u311113280
python
p02718
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_...
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,447
484,448
u285891772
python
p02718
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_...
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
484,449
484,448
u285891772
python