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 | n, m = map(int, input().split())
a = list(map(int, input().split()))
print("Yes") if len([a[i] for i in range(m) if a[i] > sum(a) / 4 / m]) >= m else print("No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
print("Yes") if len([a[i] for i in range(n) if a[i] >= sum(a) / 4 / m]) >= m else print("No") | [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operator.compare.change"
] | 483,256 | 483,255 | u860002137 | python |
p02718 | N,M=map(int,input().split())
L=list(map(int,input().split()))
S=sum(L)
L.sort()
a=L[N-M]
if a*4*M<S:
print('NO')
else:
print('Yes') | N,M=map(int,input().split())
L=list(map(int,input().split()))
S=sum(L)
L.sort()
a=L[N-M]
if a*4*M<S:
print('No')
else:
print('Yes') | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 483,263 | 483,264 | u830162518 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
vote = sum(A)
cnt = 0
for i in range(N-1):
if A[i] >= vote / 4 / M:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A = list(map(int, input().split()))
vote = sum(A)
cnt = 0
for i in range(N):
if A[i] >= vote / 4 / M:
cnt += 1
else:
continue
if cnt >= M:
print('Yes')
else:
print('No') | [
"expression.operation.binary.remove",
"control_flow.continue.add"
] | 483,269 | 483,270 | u174181999 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
vote = sum(A)
cnt = 0
for i in range(1, N):
if A[i] >= vote / 4 / M:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A = list(map(int, input().split()))
vote = sum(A)
cnt = 0
for i in range(N):
if A[i] >= vote / 4 / M:
cnt += 1
else:
continue
if cnt >= M:
print('Yes')
else:
print('No') | [
"call.arguments.change",
"control_flow.continue.add"
] | 483,271 | 483,270 | u174181999 | python |
p02718 | n, m = map(int, input().split())
l = list(map(int,input().split()))
l = sorted(l)[::-1]
check = l[m - 1] >= (sum(l) // 4 // m)
print("Yes" if check else "No") | n, m = map(int, input().split())
l = list(map(int,input().split()))
l = sorted(l)[::-1]
check = l[m - 1] >= sum(l) / (4 * m)
print("Yes" if check else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,282 | 483,283 | u119655368 | python |
p02718 | n, m = map(int, input().split())
l = list(map(int,input().split()))
l = sorted(l)[::-1]
check = l[m - 1] > (sum(l) / 4 / m)
print("Yes" if check else "No") | n, m = map(int, input().split())
l = list(map(int,input().split()))
l = sorted(l)[::-1]
check = l[m - 1] >= sum(l) / (4 * m)
print("Yes" if check else "No") | [
"expression.operator.compare.change",
"assignment.value.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 483,284 | 483,283 | u119655368 | python |
p02718 | import numpy as np
[N, M] = list(map(int, input().split()))
A = list(map(int, input().split()))
threshold = int(np.sum(A) / (4 * M))
#print(threshold)
Th = [a for a in A if threshold <= a]
#print(Th)
if len(Th) < M:
ans = 'No'
else:
ans = 'Yes'
print(ans) | import numpy as np
[N, M] = list(map(int, input().split()))
A = list(map(int, input().split()))
threshold = np.sum(A) / (4 * M)
#print(threshold)
Th = [a for a in A if threshold <= a]
#print(Th)
if len(Th) < M:
ans = 'No'
else:
ans = 'Yes'
print(ans) | [
"call.remove",
"call.arguments.change"
] | 483,304 | 483,305 | u674736819 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
a = sorted(a,reverse=True)
ans = ''
for i in range(m):
if a[i] < sum(a)/4*m:
ans = 'No'
break
else:
ans = 'Yes'
print(ans) | n,m = map(int,input().split())
a = list(map(int,input().split()))
a = sorted(a,reverse=True)
ans = ''
for i in range(m):
if a[i] < sum(a)/(4*m):
ans = 'No'
break
else:
ans = 'Yes'
print(ans) | [
"control_flow.branch.if.condition.change"
] | 483,318 | 483,319 | u548093253 | python |
p02718 | n, m = map(int, input().split())
plist = list(map(int, input().split()))
plist.sort(reverse=True)
if(plist[m-1]<sum(plist)/4/m):
print('no')
else:
print('yes') | n, m = map(int, input().split())
plist = list(map(int, input().split()))
plist.sort(reverse=True)
if(plist[m-1]<sum(plist)/4/m):
print('No')
else:
print('Yes') | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 483,337 | 483,338 | u343823529 | python |
p02718 | n, m = map(int, input().split())
rank = list(map(int, input().split()))
rank.sort(reverse=True)
cnt = 0
for r in rank:
if r >= (sum(rank)//(4*m)):
cnt += 1
if cnt >= m:
break
if cnt >= m :
print('Yes')
else:
print('No') | n, m = map(int, input().split())
rank = list(map(int, input().split()))
rank.sort(reverse=True)
cnt = 0
for r in rank:
if r >= (sum(rank)/(4*m)):
cnt += 1
if cnt >= m:
break
if cnt >= m :
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 483,341 | 483,342 | u550567766 | python |
p02718 | N, M = map(int, input().split())
vote_result_list = sorted(list(map(int,input().split())))[::-1]
border = sum(vote_result_list)//(4*M)
print("Yes" if vote_result_list[M-1] >= border else "No") | N, M = map(int, input().split())
vote_result_list = sorted(list(map(int,input().split())))[::-1]
border = sum(vote_result_list)/(4*M)
print("Yes" if vote_result_list[M-1] >= border else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,348 | 483,349 | u634934338 | python |
p02718 | N, M = map(int, input().split())
vote_result_list = sorted(list(map(int,input().split())))[::-1]
border = sum(vote_result_list)//(4*M)
print("Yes" if vote_result_list[M] >= border else "No") | N, M = map(int, input().split())
vote_result_list = sorted(list(map(int,input().split())))[::-1]
border = sum(vote_result_list)/(4*M)
print("Yes" if vote_result_list[M-1] >= border else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,350 | 483,349 | u634934338 | python |
p02718 | N,M= map(int,input().split())
a = list(map(int, input().split()))
count = 0
for i in range(N):
if a[i] > sum(a)/(4*M):
count +=1
print("Yes" if count>=M else "No")
| N,M= map(int,input().split())
a = list(map(int, input().split()))
count = 0
for i in range(N):
if a[i] >= sum(a)/(4*M):
count +=1
print("Yes" if count>=M else "No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,352 | 483,353 | u552201227 | python |
p02718 | N ,M= map(int,input().split())
a = list(map(int, input().split()))
count = 0
for i in range(N):
if a[i] > sum(a)/(4*M):
count +=1
print("Yes" if count>=M else "No")
| N,M= map(int,input().split())
a = list(map(int, input().split()))
count = 0
for i in range(N):
if a[i] >= sum(a)/(4*M):
count +=1
print("Yes" if count>=M else "No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,354 | 483,353 | u552201227 | python |
p02718 | N ,M= map(int,input().split())
a = list(map(int, input().split()))
count = 0
for i in range(N):
if a[i] > sum(a)/(4*M):
count +=1
print("Yes" if count>=M else "No") | N,M= map(int,input().split())
a = list(map(int, input().split()))
count = 0
for i in range(N):
if a[i] >= sum(a)/(4*M):
count +=1
print("Yes" if count>=M else "No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,355 | 483,353 | u552201227 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
count=0
for i in range(N):
if A[i] >= int(sum(A)/(4*M)):
count+=1
if count>= M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
count=0
for i in range(N):
if A[i] >= sum(A)/(4*M):
count+=1
if count >= M:
print("Yes")
else:
print("No") | [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 483,356 | 483,357 | u383508661 | python |
p02718 | N,M=map(int,input().split())
A=sorted(map(int,input().split()))
count=0
for i in range(N):
if A[i-1] >= int(sum(A)/(4*M)):
count+=1
if count>= M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
count=0
for i in range(N):
if A[i] >= sum(A)/(4*M):
count+=1
if count >= M:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"call.remove",
"control_flow.branch.if.condition.change"
] | 483,358 | 483,357 | u383508661 | python |
p02718 | N,M= map(int, input().split())
item_list=sorted(list(map(int,input().split())))
possible_choice = len([1 for x in item_list if x>(sum(item_list)/(4*M))])
if possible_choice >= M:
print('Yes')
else:
print('No') | N,M= map(int, input().split())
item_list=sorted(list(map(int,input().split())))
possible_choice = len([1 for x in item_list if x>=(sum(item_list)/(4*M))])
if possible_choice >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 483,367 | 483,368 | u773686010 | python |
p02718 | def main():
N, M = map(int, input().split())
A = [int(a) for a in input().split()]
total = sum(A)
cnt = 0
for i in range(N):
if A[i] < total*1.0/(4.0*M):
pass
else:
cnt += 1
if cnt >= M:
print("Yes")
else:
print("NO")
main() | def main():
N, M = map(int, input().split())
A = [int(a) for a in input().split()]
total = sum(A)
cnt = 0
for i in range(N):
if A[i] < total*1.0/(4.0*M):
pass
else:
cnt += 1
if cnt >= M:
print("Yes")
else:
print("No")
main() | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 483,371 | 483,372 | u835283937 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
def fun(n, m, a):
total = sum(a)
num = float(total)/(4*m)
flag = sum([i > num for i in a])
return flag >= m
ans = fun(n, m, a)
if ans:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
def fun(n, m, a):
total = sum(a)
num = float(total)/(4*m)
flag = sum([i >= num for i in a])
return flag >= m
ans = fun(n, m, a)
if ans:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 483,380 | 483,381 | u130203301 | python |
p02718 | nm = [int(x) for x in input().split(' ')]
vote = [int(v) for v in input().split(' ')]
sum_vote = sum(vote)
thresh = sum_vote / (4 * nm[1])
vote_valid = [True if v > thresh else False
for v in vote]
sum_vote_valid = sum(vote_valid)
if sum_vote_valid >= nm[1]:
print('Yes')
else:
print('No') | nm = [int(x) for x in input().split(' ')]
vote = [int(v) for v in input().split(' ')]
sum_vote = sum(vote)
thresh = sum_vote / (4 * nm[1])
vote_valid = [True if v >= thresh else False
for v in vote]
sum_vote_valid = sum(vote_valid)
if sum_vote_valid >= nm[1]:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"assignment.value.change"
] | 483,386 | 483,387 | u685641906 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
L=sum(A)/(4*M)
j=0
A1=sorted(A,reverse=True)
for i in range(M):
if A1[i]>L:
j+=0
else:
j+=1
if j==0:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
L=sum(A)/(4*M)
j=0
A1=sorted(A,reverse=True)
for i in range(M):
if A1[i]>=L:
j+=0
else:
j+=1
if j==0:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,388 | 483,389 | u235598818 | python |
p02718 | N,M = map(int, input().split())
num_list = list(map(int, input().split()))
sum_num=sum(num_list)
sum=0
for i in range(N):
item_no=num_list[i]
if(item_no>sum_num/(4*M)):
sum=sum+1
if(sum>=M):
print('Yes')
else:
print('No')
| N,M = map(int, input().split())
num_list = list(map(int, input().split()))
sum_num=sum(num_list)
sum=0
for i in range(N):
item_no=num_list[i]
if(item_no>=sum_num/(4*M)):
sum=sum+1
if(sum>=M):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,390 | 483,391 | u051218477 | python |
p02718 | N,M = map(int, input().split())
num_list = list(map(int, input().split()))
sum_num=sum(num_list)
sum=0
for i in range(N):
item_no=num_list[i]
if(item_no>sum_num/4*M):
sum=sum+1
if(sum>=M):
print('Yes')
else:
print('No') | N,M = map(int, input().split())
num_list = list(map(int, input().split()))
sum_num=sum(num_list)
sum=0
for i in range(N):
item_no=num_list[i]
if(item_no>=sum_num/(4*M)):
sum=sum+1
if(sum>=M):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,392 | 483,391 | u051218477 | python |
p02718 | n, m = map(int, input().split())
array = list(map(int, input().split()))
array.sort(reverse = True)
std = int(sum(array) / (4 * m))
if array[m - 1] < std:
print("No")
else:
print("Yes")
| n, m = map(int, input().split())
array = list(map(int, input().split()))
array.sort(reverse = True)
std = sum(array) / (4 * m)
if array[m - 1] < std:
print("No")
else:
print("Yes")
| [
"call.remove",
"call.arguments.change"
] | 483,422 | 483,423 | u268674745 | python |
p02718 | n, m = map(int, input().split())
array = list(map(int, input().split()))
array.sort(reverse = True)
std = int(sum(array) / 4 * m)
if array[m - 1] < std:
print("No")
else:
print("Yes") | n, m = map(int, input().split())
array = list(map(int, input().split()))
array.sort(reverse = True)
std = sum(array) / (4 * m)
if array[m - 1] < std:
print("No")
else:
print("Yes")
| [
"call.remove"
] | 483,424 | 483,423 | u268674745 | python |
p02718 | M,N=map(int,input().split())
A = list(map(int,input().split()))
b=sum(A)
s=sorted(A)
if s[-M]>=(b/(4*M)):
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A = list(map(int,input().split()))
b=sum(A)
s=sorted(A)
if s[-M]>=(b/(4*M)):
print("Yes")
else:
print("No") | [] | 483,431 | 483,432 | u455642216 | python |
p02718 | N,M = map(int,input().split())
L = list(map(int,input().split()))
S = sum(L)
L = sorted(L)
A = 0
#print(L)
for i in L:
print(i)
if i >= S/4/M:
A += 1
#print(A)
if A >= M:
print("Yes")
else:
print("No") | N,M = map(int,input().split())
L = list(map(int,input().split()))
S = sum(L)
L = sorted(L)
A = 0
#print(L)
for i in L:
#print(i)
if i >= S/4/M:
A += 1
#print(A)
if A >= M:
print("Yes")
else:
print("No") | [
"call.remove"
] | 483,441 | 483,442 | u379424722 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
total_vote=sum(A)/(4*M)
sele=0
for i in A:
if i > total_vote:
sele+=1
else:
pass
if M<=sele:
print('Yes')
else:
print('No') | N,M=map(int,input().split())
A=list(map(int,input().split()))
total_vote=sum(A)/(4*M)
sele=0
for i in A:
if i >= total_vote:
sele+=1
else:
pass
if M<=sele:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,445 | 483,446 | u182898140 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
count=0
for i in A:
if i>sum(A)/(4*M):
count+=1
if count>=M:
print('Yes')
else:
print('No') | N,M=map(int,input().split())
A=list(map(int,input().split()))
count=0
for i in A:
if i>=sum(A)/(4*M):
count+=1
if count>=M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,447 | 483,448 | u182898140 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
l = sum(a) / (4 * m)
s = 0
for i in a:
if i > l:
s += 1
if s >= m:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
l = sum(a) / (4 * m)
s = 0
for i in a:
if i >= l:
s += 1
if s >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,449 | 483,450 | u344959886 | python |
p02718 | N,M = list(map(int,input().split()))
number = list(map(int,input().split()))
number.sort(reverse=True)
total = sum(number) / (4*M)
for i in range(M):
if number[i] > total:
pass
else:
print("No")
exit()
print("Yes") | N,M = list(map(int,input().split()))
number = list(map(int,input().split()))
number.sort(reverse=True)
total = sum(number) / (4*M)
for i in range(M):
if number[i] >= total:
pass
else:
print("No")
exit()
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,454 | 483,455 | u188745744 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
sumA = sum(A)
if A[M - 1] > sumA / (4 * M):
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
sumA = sum(A)
if A[M - 1] >= sumA / (4 * M):
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,456 | 483,457 | u486251525 | python |
p02718 | n, m = list(map(int, input().split()))
aa = list(map(int, input().split()))
total = sum(aa)
r = (1//(4*m)) * total
c = 0
for i in aa:
if i >= r:
c += 1
if c >= m:
print("Yes")
else:
print("No")
| n, m = list(map(int, input().split()))
aa = list(map(int, input().split()))
total = sum(aa)
r = (1/(4*m)) * total
c = 0
for i in aa:
if i >= r:
c += 1
if c >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,469 | 483,470 | u010439424 | python |
p02718 | n, m = list(map(int, input().split()))
aa = list(map(int, input().split()))
total = sum(aa)
r = 1/4/m * total
c = 0
for i in aa:
if i > r:
c += 1
if c >= m:
print("Yes")
else:
print("No")
| n, m = list(map(int, input().split()))
aa = list(map(int, input().split()))
total = sum(aa)
r = (1/(4*m)) * total
c = 0
for i in aa:
if i >= r:
c += 1
if c >= 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"
] | 483,471 | 483,470 | u010439424 | python |
p02718 | N, M = map(int, input().split())
An = list(map(int, input().split()))
votes = sum(An)
least = votes / (4 * M)
count = 0
for v in An:
if v > least:
count += 1
print("Yes") if count >= M else print("No") | N, M = map(int, input().split())
An = list(map(int, input().split()))
votes = sum(An)
least = votes / (4 * M)
count = 0
for v in An:
if v >= least:
count += 1
print("Yes") if count >= M else print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,476 | 483,477 | u526771595 | python |
p02718 | N, M = map(int, input().split(" "))
A = list(map(int, input().split(" ")))
count_flag = sum(A) / (4 * M)
popular_count = sum([a > count_flag for a in A])
if popular_count >= M:
print("Yes")
else:
print("No") | N, M = map(int, input().split(" "))
A = list(map(int, input().split(" ")))
count_flag = sum(A) / (4 * M)
popular_count = sum([a >= count_flag for a in A])
if popular_count >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 483,484 | 483,485 | u668642853 | python |
p02718 | N,M=map(int,input().split())
a=list(map(int,input().split()))
SUM=sum(a)
ninnki=SUM/(4*M)
count=0
for i in a:
if i>ninnki:
count+=1
if count>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
a=list(map(int,input().split()))
SUM=sum(a)
ninnki=SUM/(4*M)
count=0
for i in a:
if i>=ninnki:
count+=1
if count>=M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,486 | 483,487 | u199588618 | python |
p02718 | N,M=map(int,input().split())
a=list(map(int,input().split()))
SUM=sum(a)
ninnki=SUM/(4*M)
count=0
for i in (a):
if i>ninnki:
count+=1
if count>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
a=list(map(int,input().split()))
SUM=sum(a)
ninnki=SUM/(4*M)
count=0
for i in a:
if i>=ninnki:
count+=1
if count>=M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,488 | 483,487 | u199588618 | python |
p02718 | N,M=map(int,input().split())
a=list(map(int,input().split()))
SUM=sum(a)
ninnki=SUM/(4*M)
count=0
for i in (a):
if i>ninnki:
count+=1
if count>M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
a=list(map(int,input().split()))
SUM=sum(a)
ninnki=SUM/(4*M)
count=0
for i in a:
if i>=ninnki:
count+=1
if count>=M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,489 | 483,487 | u199588618 | python |
p02718 | N, M = [int(n) for n in input().split()]
X = [int(n) for n in input().split()]
cnt = 0
for n in X:
if n > (sum(X) / (4 * M)):
cnt = cnt + 1
if cnt >= M:
break
print("Yes" if cnt >= M else "No")
| N, M = [int(n) for n in input().split()]
X = [int(n) for n in input().split()]
cnt = 0
for n in X:
if n >= (sum(X) / (4 * M)):
cnt = cnt + 1
if cnt >= M:
break
print("Yes" if cnt >= M else "No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,501 | 483,502 | u308787251 | python |
p02718 | n,m=map(int,input().split())
item=list(map(int,input().split()))
x=0
y=sum(item)
for i in item:
if 4*m*i>=m:
x=x+1
if x>=m:
print('Yes')
else:
print('No') | n,m=map(int,input().split())
item=list(map(int,input().split()))
x=0
y=sum(item)
for i in item:
if 4*m*i>=y:
x=x+1
if x>=m:
print('Yes')
else:
print('No') | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 483,512 | 483,513 | u692498898 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
sum = 0
count = 0
for i in range(n):
sum += a[i]
sum //= 4*m
for i in range(n):
if a[i] >= sum:
count +=1
if count >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
a = list(map(int,input().split()))
sum = 0
count = 0
for i in range(n):
sum += a[i]
sum /= 4*m
for i in range(n):
if a[i] >= sum:
count +=1
if count >= m:
print("Yes")
else:
print("No") | [
"expression.operator.change"
] | 483,534 | 483,535 | u953110527 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
sum = 0
for i in range(n):
sum += A[i]
counter = 0
rate = 4 * m
rate = sum / rate
for i in range(n):
if A[i] > rate:
counter += 1
if counter >= m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
A = list(map(int, input().split()))
sum = 0
for i in range(n):
sum += A[i]
counter = 0
rate = 4 * m
rate = sum / rate
for i in range(n):
if A[i] >= rate:
counter += 1
if counter >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,547 | 483,548 | u347452770 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
sum = 0
for i in range(n):
sum += A[i]
counter = 0
rate = 4 * m
rate = sum / rate
for i in range(n):
if A[i] > rate:
counter += 1
if counter > m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
A = list(map(int, input().split()))
sum = 0
for i in range(n):
sum += A[i]
counter = 0
rate = 4 * m
rate = sum / rate
for i in range(n):
if A[i] >= rate:
counter += 1
if counter >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,549 | 483,548 | u347452770 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
sum = 0
for i in range(n):
sum += A[i]
counter = 0
rate = 4 * m
rate = 1 / rate
for i in range(n):
if A[i] > rate:
counter += 1
if counter > m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
A = list(map(int, input().split()))
sum = 0
for i in range(n):
sum += A[i]
counter = 0
rate = 4 * m
rate = sum / rate
for i in range(n):
if A[i] >= rate:
counter += 1
if counter >= m:
print('Yes')
else:
print('No') | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,550 | 483,548 | u347452770 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
b = []
for i in range(0, len(a)):
if a[i]>1/(4*m)*sum(a):
b.append(a[i])
if len(b) >= m:
print('Yes')
else:
print('No') | n,m = map(int, input().split())
a = list(map(int, input().split()))
b = []
for i in range(0, len(a)):
if a[i]>=1/(4*m)*sum(a):
b.append(a[i])
if len(b) >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,551 | 483,552 | u174766008 | python |
p02718 | #商品数を取り込む
line_num = input()
line = line_num.split(" ")
#全得票数を計算する
line2 = input().split(" ")
sum_vote = 0
for i in line2:
# print(i)
sum_vote += int(i)
#規定得票数を算出する。
numa = sum_vote/int(line[1])
num= numa/4
list =[]
for i in line2:
if int(i) >=num:
list.append(i)
else:
pass
if... | #商品数を取り込む
line_num = input()
line = line_num.split(" ")
#全得票数を計算する
line2 = input().split(" ")
sum_vote = 0
for i in line2:
# print(i)
sum_vote += int(i)
#規定得票数を算出する。
numa = sum_vote/int(line[1])
num= numa/4
list =[]
for i in line2:
if int(i) >=num:
list.append(i)
else:
pass
if... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,556 | 483,557 | u385649291 | python |
p02718 | #商品数を取り込む
line_num = input()
line = line_num.split(" ")
#全得票数を計算する
line2 = input().split(" ")
sum_vote = 0
for i in line2:
# print(i)
sum_vote += int(i)
#規定得票数を算出する。
numa = sum_vote/int(line[1])
num= numa/4
list =[]
for i in line2:
if int(i) >num:
list.append(i)
else:
pass
if ... | #商品数を取り込む
line_num = input()
line = line_num.split(" ")
#全得票数を計算する
line2 = input().split(" ")
sum_vote = 0
for i in line2:
# print(i)
sum_vote += int(i)
#規定得票数を算出する。
numa = sum_vote/int(line[1])
num= numa/4
list =[]
for i in line2:
if int(i) >=num:
list.append(i)
else:
pass
if... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,559 | 483,557 | u385649291 | python |
p02718 | line_num = input()
line = line_num.split(" ")
#全得票数を計算する
line2 = input().split(" ")
sum_vote = 0
for i in line2:
# print(i)
sum_vote += int(i)
#規定得票数を算出する。
num = sum_vote/int(line[1])/4
list =[]
for i in line2:
if int(i) >num:
list.append(i)
else:
pass
if len(list)>int(line[1]... | #商品数を取り込む
line_num = input()
line = line_num.split(" ")
#全得票数を計算する
line2 = input().split(" ")
sum_vote = 0
for i in line2:
# print(i)
sum_vote += int(i)
#規定得票数を算出する。
numa = sum_vote/int(line[1])
num= numa/4
list =[]
for i in line2:
if int(i) >=num:
list.append(i)
else:
pass
if... | [
"assignment.variable.change",
"identifier.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,560 | 483,557 | u385649291 | python |
p02718 | from sys import stdin
if __name__ == "__main__":
_in = [_.rstrip() for _ in stdin.readlines()]
N, M = list(map(int,_in[0].split(' '))) # type:list(int)
A_arr = list(map(int,_in[1].split(' '))) # type:list(int)
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
A_arr.sort(reverse=True)
vot... | from sys import stdin
if __name__ == "__main__":
_in = [_.rstrip() for _ in stdin.readlines()]
N, M = list(map(int,_in[0].split(' '))) # type:list(int)
A_arr = list(map(int,_in[1].split(' '))) # type:list(int)
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
A_arr.sort(reverse=True)
vot... | [
"expression.operator.compare.change",
"assignment.value.change"
] | 483,563 | 483,564 | u503227287 | python |
p02718 | N,M=map(int,input().split())
l=list(map(int,input().split()))
limit=sum(l)/(M*4)
num=0
for i in l:
if i >= limit:
num+=0
if num >=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
l=list(map(int,input().split()))
limit=sum(l)/(M*4)
num=0
for i in l:
if i >= limit:
num+=1
if num >=M:
print("Yes")
else:
print("No") | [
"literal.number.integer.change"
] | 483,582 | 483,583 | u108918063 | python |
p02718 | N,M=map(int,input().split())
l=list(map(int,input().split()))
limit=sum(l)/(M*3)
num=0
for i in l:
if i >= limit:
num+=0
if num >=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
l=list(map(int,input().split()))
limit=sum(l)/(M*4)
num=0
for i in l:
if i >= limit:
num+=1
if num >=M:
print("Yes")
else:
print("No") | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,584 | 483,583 | u108918063 | python |
p02718 | N,M=int(input().split())
l=list(map(int,input().split()))
limit=sum(l)/(M*3)
num=0
for i in l:
if i >= limit:
num+=0
if num >=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
l=list(map(int,input().split()))
limit=sum(l)/(M*4)
num=0
for i in l:
if i >= limit:
num+=1
if num >=M:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.add",
"literal.number.integer.change",
"expression.operation.binary.change"
] | 483,585 | 483,583 | u108918063 | python |
p02718 | i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]
th = sum(A)/(4 * M)
##print(threshhold)
c = 0
for val in A:
if val >= th:
##print(val)
c += 1
if M >= c:
print('No')
else:
print('Yes')
| i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]
th = sum(A)/(4 * M)
##print(threshhold)
c = 0
for val in A:
if val >= th:
##print(val)
c += 1
if M > c:
print('No')
else:
print('Yes')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,589 | 483,590 | u597626771 | python |
p02718 | i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]
th = sum(A)/(4 * M)
##print(threshhold)
c = 0
for val in A:
if val > th:
##print(val)
c += 1
if M > c:
print('No')
else:
print('Yes')
| i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]
th = sum(A)/(4 * M)
##print(threshhold)
c = 0
for val in A:
if val >= th:
##print(val)
c += 1
if M > c:
print('No')
else:
print('Yes')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,591 | 483,590 | u597626771 | python |
p02718 | i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]
th = int(sum(A)/(4 * M))
##print(threshhold)
c = 0
for val in A:
if val > th:
##print(val)
c += 1
if M >= c:
print('No')
else:
print('Yes')
| i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]
th = sum(A)/(4 * M)
##print(threshhold)
c = 0
for val in A:
if val >= th:
##print(val)
c += 1
if M > c:
print('No')
else:
print('Yes')
| [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,592 | 483,590 | u597626771 | python |
p02718 | i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]
th = int(sum(A)/(4 * M))
##print(threshhold)
c = 0
for val in A:
if val > th:
##print(val)
c += 1
if M > c:
print('No')
else:
print('Yes')
| i = input().split()
i_int = [int(n) for n in i]
a = input().split()
A = [int(m) for m in a]
N = i_int[0]
M = i_int[1]
th = sum(A)/(4 * M)
##print(threshhold)
c = 0
for val in A:
if val >= th:
##print(val)
c += 1
if M > c:
print('No')
else:
print('Yes')
| [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,593 | 483,590 | u597626771 | python |
p02718 | n, m = map(int, input().split())
votes = list(map(int, input().split()))
k = (1/(4*m))*sum(votes)
items = []
for i in range(n):
if votes[i] >= k:
items.append(i)
if len(items) > m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
votes = list(map(int, input().split()))
k = (1/(4*m))*sum(votes)
items = []
for i in range(n):
if votes[i] >= k:
items.append(i)
if len(items) >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,601 | 483,602 | u566321790 | python |
p02718 | n , m = map(int,input().split())
arr = list(map(int,input().split()))
add = sum(arr)
miniVotes = int(add/(4*m))
cnt = 0
for i in range(len(arr)):
if arr[i]>=miniVotes:
cnt+=1
if(cnt>=m):
print("Yes")
else:
print("No") | n , m = map(int,input().split())
arr = list(map(int,input().split()))
add = sum(arr)
miniVotes = add/(4*m)
cnt = 0
for i in range(len(arr)):
if arr[i]>=miniVotes:
cnt+=1
if(cnt>=m):
print("Yes")
else:
print("No") | [
"call.remove",
"call.arguments.change"
] | 483,608 | 483,609 | u691446391 | python |
p02718 | n , m = map(int,input().split())
arr = list(map(int,input().split()))
add = sum(arr)
miniVotes = add*(1//(4*m))
cnt = 0
for i in range(len(arr)):
if arr[i]>=miniVotes:
cnt+=1
if(cnt>=m):
print("Yes")
else:
print("No") | n , m = map(int,input().split())
arr = list(map(int,input().split()))
add = sum(arr)
miniVotes = add/(4*m)
cnt = 0
for i in range(len(arr)):
if arr[i]>=miniVotes:
cnt+=1
if(cnt>=m):
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,610 | 483,609 | u691446391 | python |
p02718 | n,m = (int(x) for x in input().split())
s = list(map(int, input().split()))
t = sum(x>=(1/(4*m)) for x in s)
if t >=m:
print("Yes")
else:
print("No")
|
n,m = (int(x) for x in input().split())
s = list(map(int, input().split()))
t = sum(x>=(sum(s)/(4*m)) for x in s)
if t >= m:
print("Yes")
else:
print("No")
| [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change",
"call.arguments.add"
] | 483,633 | 483,634 | u423193302 | python |
p02718 | def main():
n, m = map(int, input().split())
a = [int(x) for x in input().split()]
threshold = sum(a) / (4 * m)
if sum(1 for i in a if i >= threshold):
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
| def main():
n, m = map(int, input().split())
a = [int(x) for x in input().split()]
threshold = sum(a) / (4 * m)
if sum(1 for i in a if i >= threshold) >= m:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
| [
"control_flow.branch.if.condition.change"
] | 483,641 | 483,642 | u471898432 | python |
p02718 | N, M = map(int,input().split())
A = map(int,input().split())
all_vote = sum(A)
minimum = all_vote/(4*M)
count = 0
for i in A:
if i >= minimum:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| N, M = map(int,input().split())
A = list(map(int,input().split()))
all_vote = sum(A)
minimum = all_vote/(4*M)
count = 0
for i in A:
if i >= minimum:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| [
"call.add",
"call.arguments.change"
] | 483,643 | 483,644 | u856282038 | python |
p02718 | N, M = map(int,input().split())
A = map(int,input().split())
all_vote = sum(A)
minimum = all_vote//(4*M)
count = 0
for i in A:
if i >= minimum:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| N, M = map(int,input().split())
A = list(map(int,input().split()))
all_vote = sum(A)
minimum = all_vote/(4*M)
count = 0
for i in A:
if i >= minimum:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| [
"call.add",
"call.arguments.change",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,645 | 483,644 | u856282038 | python |
p02718 | N, M = map(int,input().split())
A = map(int,input().split())
all_vote = sum(A)
minimum = all_vote//(4*M)
count = 0
for i in A:
if i > minimum:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| N, M = map(int,input().split())
A = list(map(int,input().split()))
all_vote = sum(A)
minimum = all_vote/(4*M)
count = 0
for i in A:
if i >= minimum:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| [
"call.add",
"call.arguments.change",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,646 | 483,644 | u856282038 | python |
p02718 | N, M =map(int, input().split())
lst = list(map(int, input().split()))
count = 0
for i in range(N):
if lst[i] > sum(lst)/(4*M):
count+=1
if count>=M:
print("Yes")
else:
print("No")
| N, M =map(int, input().split())
lst = list(map(int, input().split()))
count = 0
for i in range(N):
if lst[i] >= sum(lst)/(4*M):
count+=1
if count>=M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,653 | 483,654 | u216306899 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
sum_vote = sum(a)
judge = sum_vote / (4*m)
ans = 'Yes'
for x in a[:m:]:
print(x,judge)
if x < judge:
ans = 'No'
break
print(ans) | n,m = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
sum_vote = sum(a)
judge = sum_vote / (4*m)
ans = 'Yes'
for x in a[:m:]:
if x < judge:
ans = 'No'
break
print(ans) | [
"call.remove"
] | 483,663 | 483,664 | u866769581 | python |
p02718 | import sys
N, M = map(int, sys.stdin.readline().split())
A = sorted(list(map(int, sys.stdin.readline().split())), reverse=True)
S = sum(A)
if A[M] < S / (4 * M):
print("No")
else:
print("Yes") | import sys
N, M = map(int, sys.stdin.readline().split())
A = sorted(list(map(int, sys.stdin.readline().split())), reverse=True)
S = sum(A)
if A[M - 1] < S / (4 * M):
print("No")
else:
print("Yes") | [
"control_flow.branch.if.condition.change"
] | 483,670 | 483,671 | u189397279 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
a_sum = sum(a)
t = a_sum / (4*m)
cnt = 0
for i in range(n):
if a[i] > t:
cnt += 1
else :
break
if cnt >= m:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
a_sum = sum(a)
t = a_sum / (4*m)
cnt = 0
for i in range(n):
if a[i] >= t:
cnt += 1
else :
break
if cnt >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,672 | 483,673 | u235027735 | python |
p02718 | n, m = map(int, input().split(" "))
a = list(map(int, input().split(" ")))
a.sort()
thresh = sum(a)//(4*m)
ok = 0
for i in range(len(a)):
if a[i]>=thresh:
ok +=1
print("Yes" if ok >= m else "No") | n, m = map(int, input().split(" "))
a = list(map(int, input().split(" ")))
a.sort()
thresh = sum(a)/(4*m)
ok = 0
for i in range(len(a)):
if a[i]>=thresh:
ok +=1
print("Yes" if ok >= m else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,676 | 483,677 | u125365353 | python |
p02718 | n, m = map(int, input().split(" "))
a = list(map(int, input().split(" ")))
a.sort()
thresh = sum(a)//(4*m)
ok = 0
for i in range(len(a)):
if a[i]>thresh:
ok +=1
print("Yes" if ok > m else "No") | n, m = map(int, input().split(" "))
a = list(map(int, input().split(" ")))
a.sort()
thresh = sum(a)/(4*m)
ok = 0
for i in range(len(a)):
if a[i]>=thresh:
ok +=1
print("Yes" if ok >= m else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"io.output.change"
] | 483,678 | 483,677 | u125365353 | python |
p02718 | n, m = map(int, input().split(" "))
a = list(map(int, input().split(" ")))
a.sort()
thresh = sum(a)//(4*m)
ok = 0
for i in range(len(a)):
if a[i]>thresh:
ok +=1
print("Yes" if ok >= m else "No") | n, m = map(int, input().split(" "))
a = list(map(int, input().split(" ")))
a.sort()
thresh = sum(a)/(4*m)
ok = 0
for i in range(len(a)):
if a[i]>=thresh:
ok +=1
print("Yes" if ok >= m else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,679 | 483,677 | u125365353 | python |
p02718 | n, m =map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)//(4*m)
ans = 0
for i in range(n):
if a[i] >k:
ans +=1
print('Yes' if m<=ans else 'No') | n, m =map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)/(4*m)
ans = 0
for i in range(n):
if a[i] >=k:
ans +=1
print('Yes' if m<=ans else 'No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,680 | 483,681 | u464912173 | python |
p02718 | n, m =map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)//(4*m)
ans = 0
for i in range(n):
if a[i] >=k:
ans +=1
print('Yes' if m<=ans else 'No') | n, m =map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)/(4*m)
ans = 0
for i in range(n):
if a[i] >=k:
ans +=1
print('Yes' if m<=ans else 'No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,682 | 483,681 | u464912173 | python |
p02718 | N,M = (int(x) for x in input().split())
list = [int(x) for x in input().split()]
sum = 0
result = 0
for i in range(N):
sum = sum + list[i]
for i in range(N):
if list[i] >= sum/4:
result = result + 1
#print(result)
#print(sum)
if result >= M:
print("Yes")
else:
print("No")
| N,M = (int(x) for x in input().split())
list = [int(x) for x in input().split()]
sum = 0
result = 0
for i in range(N):
sum = sum + list[i]
for i in range(N):
#print(list[i])
if list[i] >= sum/4/M:
result = result + 1
#print(result)
#print(sum/4)
if result >= M:
print("Yes")
else:
print("... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 483,686 | 483,687 | u916662650 | python |
p02718 | n,m = map(int,input().split())
s = list(map(int,input().split()))
a = []
for i in s:
if i > sum(s)/(4*m):
a.append(i)
if len(a) >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
s = list(map(int,input().split()))
a = []
for i in s:
if i >= sum(s)/(4*m):
a.append(i)
if len(a) >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,700 | 483,701 | u048521352 | python |
p02718 | n,m=list(map(int,input().split()))
a=list(map(int,input().split()))
a.sort(reverse=True)
flg=1
for i in range(m):
if 4*m*a[i]<=sum(a):
flg=0
break
if flg:
print('Yes')
else:
print('No') | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
flg=1
for i in range(m):
if 4*m*a[i]<sum(a):
flg=0
break
if flg:
print('Yes')
else:
print('No') | [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,702 | 483,703 | u260764792 | python |
p02718 | n,m=list(map(int,input().split()))
a=list(map(int,input().split()))
a.sort(reverse=True)
flg=1
for i in range(m):
if 4*m*a[i]<=sum(a):
flg=0
if flg:
print('Yes')
else:
print('No') | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
flg=1
for i in range(m):
if 4*m*a[i]<sum(a):
flg=0
break
if flg:
print('Yes')
else:
print('No') | [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.break.add"
] | 483,704 | 483,703 | u260764792 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
asum = sum(a)
cnt = 0
for i in a:
if i > asum / (4 * m):
cnt = cnt + 1
if (m==cnt):
print('Yes')
exit(0)
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
asum = sum(a)
cnt = 0
for i in a:
if i >= asum / (4 * m):
cnt = cnt + 1
if (m==cnt):
print('Yes')
exit(0)
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,724 | 483,725 | u294013922 | 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"
] | 483,726 | 483,727 | u411865056 | python |
p02718 | a,b=map(int,input().split())
n=list(map(int,input().split()))
c=sum(n)/4*b
d=[i for i in n if i>=c]
if b>len(d):
print('No')
else:
print('Yes') | a,b=map(int,input().split())
n=list(map(int,input().split()))
c=sum(n)/(4*b)
d=[i for i in n if i>=c]
if b>len(d):
print('No')
else:
print('Yes') | [] | 483,728 | 483,729 | u115877451 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
a_sum=sum(a)
count=0
for i in range(m):
if not a[i] <= a_sum/(4*m):
count+=1
if count==m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
a_sum=sum(a)
count=0
for i in range(m):
if a[i] >= a_sum/(4*m):
count+=1
if count==m:
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 483,743 | 483,744 | u651946953 | python |
p02718 | N,M=(int(x) for x in input().split())
A=[int(x) for x in input().split()]
num=0
for i in range(N):
if A[i]>=sum(A)*0.25/M:
num+=1
if num>=M:
print("yes")
else:
print("no")
| N,M=(int(x) for x in input().split())
A=[int(x) for x in input().split()]
num=0
for i in range(N):
if A[i]>=sum(A)*0.25/M:
num+=1
if num>=M:
print("Yes")
else:
print("No")
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 483,745 | 483,746 | u588268040 | python |
p02718 | N, M = map(int, input().split())
A = [int(i) for i in input().split()]
vote = sum(A)
ans = 0
for i in A:
if i >= vote/4*M:
ans += 1
if ans >= M:
print("Yes")
else:
print("No") | N, M = map(int, input().split())
A = [int(i) for i in input().split()]
vote = sum(A)
ans = 0
for i in A:
if i >= vote/(4*M):
ans += 1
if ans >= M:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 483,747 | 483,748 | u884323674 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
votes = sum(a)
selected = [i for i in a if i >= votes / (4 * m)]
print("Yes" if len(selected) > m else "No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
votes = sum(a)
selected = [i for i in a if i >= votes / (4 * m)]
print("Yes" if len(selected) >= m else "No") | [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 483,751 | 483,752 | u731322489 | python |
p02718 | if __name__ == '__main__':
n, m = map(int, input().split())
a = list(map(int, input().split()))
bound = sum(a) // (4 * m)
if len([i for i in a if i >= bound]) >= m:
print("Yes")
else:
print("No")
| if __name__ == '__main__':
n, m = map(int, input().split())
a = list(map(int, input().split()))
bound = sum(a) / (4 * m)
if len([i for i in a if i >= bound]) >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 483,766 | 483,767 | u505420467 | python |
p02718 | x,y = map(int,input().split())
li = list(map(int,input().split()))
cnt = 0
for i in range(len(li)):
if li[i] > sum(li) * (1/(4*y)):
cnt += 1
else:
pass
if cnt >= y:
print("Yes")
else:
print("No") | x,y = map(int,input().split())
li = list(map(int,input().split()))
cnt = 0
for i in range(len(li)):
if li[i] >= sum(li) / (4*y):
cnt += 1
else:
pass
if cnt >= y:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 483,772 | 483,771 | u571647099 | python |
p02718 | x,y = map(int,input().split())
li = list(map(int,input().split()))
cnt = 0
for i in range(len(li)):
if li[i] > sum(li) * (1/float(4*y)):
cnt += 1
else:
pass
if cnt >= y:
print("Yes")
else:
print("No")
| x,y = map(int,input().split())
li = list(map(int,input().split()))
cnt = 0
for i in range(len(li)):
if li[i] >= sum(li) / (4*y):
cnt += 1
else:
pass
if cnt >= y:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 483,773 | 483,771 | u571647099 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
S=0
for i in range(N):
if A[i]>=sum(A)//(4*M):
S += 1
if S>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
S=0
for i in range(N):
if A[i]>=sum(A)/(4*M):
S += 1
if S>=M:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 483,780 | 483,781 | u443577878 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
k = 0
for i in range(N-1):
if A[i]/sum(A) >= 1/(4*M):
k = k+1
if k >= M:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
k = 0
for i in range(N):
if A[i]/sum(A) >= 1/(4*M):
k = k+1
if k >= M:
print('Yes')
else:
print('No') | [
"expression.operation.binary.remove"
] | 483,782 | 483,783 | u431349272 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
k = 0
for i in range(N-1):
if A[i]/sum(A) > 1/(4*M):
k = k+1
if k >= M:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
k = 0
for i in range(N):
if A[i]/sum(A) >= 1/(4*M):
k = k+1
if k >= M:
print('Yes')
else:
print('No') | [
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,784 | 483,783 | u431349272 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
k = 0
for i in range(N-1):
if A[i]/sum(A) > 1/(4*M):
k = k+1
if k >= M:
print('Yes')
else:
peint('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
k = 0
for i in range(N):
if A[i]/sum(A) >= 1/(4*M):
k = k+1
if k >= M:
print('Yes')
else:
print('No') | [
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change",
"call.function.change"
] | 483,785 | 483,783 | u431349272 | python |
p02718 |
n,m = map(int,input().split())
a = list(map(int,input().split()))
voder = sum(a)*(1/(4*m))
count = 0
for i in range(n):
if a[i] >= voder:
count += 1
if count <= m:
print("No")
else:
print("Yes") |
n,m = map(int,input().split())
a = list(map(int,input().split()))
voder = sum(a)/(4*m)
count = 0
for i in range(n):
if a[i] >= voder:
count += 1
if count < m:
print("No")
else:
print("Yes") | [
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,788 | 483,789 | u102242691 | python |
p02718 | def resolve():
N, M = map(int, input().split())
A_list = list(map(int, input().split()))
A_SUM = sum(A_list)
THRESHOLD = int(A_SUM * (1 / (4 * M)))
count = 0
for a in A_list:
if THRESHOLD <= a:
count += 1
if M <= count:
print("Yes")
else:
print("No... | def resolve():
N, M = map(int, input().split())
A_list = list(map(int, input().split()))
A_SUM = sum(A_list)
THRESHOLD = A_SUM * (1 / (4 * M))
count = 0
for a in A_list:
if THRESHOLD <= a:
count += 1
if M <= count:
print("Yes")
else:
print("No")
i... | [
"call.remove",
"call.arguments.change"
] | 483,797 | 483,798 | u644546699 | python |
p02718 | N, M=map(int,input().split())
alist = list(map(int,input().split()))
alist.sort(reverse = True)
abc = sum(alist)
if alist[M-1] >= 1/(4*abc):
print("Yes")
else:
print("No")
| N, M=map(int,input().split())
alist = list(map(int,input().split()))
alist.sort(reverse = True)
abc = sum(alist)
if alist[M-1] >= abc/(4*M):
print("Yes")
else:
print("No") | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 483,802 | 483,803 | u876225099 | python |
p02718 | N,M = map(int,input().split())
a = sorted(list(map(int,input().split())),reverse=True)
s = sum(a)
if a[M-1] >= s*M/4:
print("Yes")
else:
print("No") | N,M = map(int,input().split())
a = sorted(list(map(int,input().split())),reverse=True)
a
s = sum(a)
if a[M-1] >= s/(4*M):
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 483,804 | 483,805 | u425762225 | python |
p02718 | M,N=map(int,input().split())
a_list=list(map(int,input().split()))
b_list=sorted(a_list)
B=b_list[-1*N]
C=sum(a_list)/(4*M)
if B >= C:
print("Yes")
else:
print("No") | M,N=map(int,input().split())
a_list=list(map(int,input().split()))
b_list=sorted(a_list)
B=b_list[-1*N]
C=sum(a_list)/(4*N)
if B >= C:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 483,807 | 483,808 | u922769680 | python |
p02718 | a,b=map(int,input().split())
c=list(map(int,input().split()))
ans=0
c.sort()
c.reverse()
for i in range(b):
if c[i]>sum(c)/(4*b):
ans+=1
if ans==b:
print("Yes")
else:
print("No")
exit()
| a,b=map(int,input().split())
c=list(map(int,input().split()))
ans=0
c.sort()
c.reverse()
for i in range(b):
if c[i]>=sum(c)/(4*b):
ans+=1
if ans==b:
print("Yes")
else:
print("No")
exit()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,809 | 483,810 | u464689569 | python |
p02718 | N,M=map(int,input().split())
A=[int(i) for i in input().split()]
wa=sum(A)
count=0
for i in A:
if(i>1/(4*M)*wa):
count=count+1
if(count>=M):
print('Yes')
else:
print('No')
| N,M=map(int,input().split())
A=[int(i) for i in input().split()]
wa=sum(A)
count=0
for i in A:
if(i>=1/(4*M)*wa):
count=count+1
if(count>=M):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 483,811 | 483,812 | u750822433 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.