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()))
a.sort(reverse=True)
ans = 0
for i in a:
if i > sum(a)/(4*m):
ans += 1
if ans == m:
print("Yes")
exit()
else:
print("No")
exit() | n,m = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
ans = 0
for i in a:
if i >= sum(a)/(4*m):
ans += 1
if ans == m:
print("Yes")
exit()
else:
print("No")
exit() | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,326 | 481,327 | u014139588 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
sum = 0
cnt = 0
for i in a:
sum += i
for i in a:
if(sum < 4*m*i):
cnt += 1
if(cnt >= m):
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
a = list(map(int,input().split()))
sum = 0
cnt = 0
for i in a:
sum += i
for i in a:
if(sum <= 4*m*i):
cnt += 1
if(cnt >= m):
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,328 | 481,329 | u867616076 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
total=0
for i in range(m):
if a[i]>(sum(a)/(4*m)):
total+=1
if total==m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
total=0
for i in range(m):
if a[i]>=(sum(a)/(4*m)):
total+=1
if total==m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,330 | 481,331 | u877389510 | python |
p02718 | N, M = map(int,input().split())
A = list(map(int,input().split()))
B = sorted(A,reverse=True)
judge = sum(A) / (4*M)
if B[M-1] <= judge:
print('No')
else:
print('Yes') | N, M = map(int,input().split())
A = list(map(int,input().split()))
B = sorted(A,reverse=True)
judge = sum(A) / (4*M)
if B[M-1] < judge:
print('No')
else:
print('Yes') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,340 | 481,341 | u201998562 | python |
p02718 | n,m = map(int,input().split())
l = list(map(int,input().split()))
l.sort(reverse=True)
for i in range(m) :
if l[i] < (sum(l))/4*m :
print('No')
exit()
else :
continue
print('Yes')
| n,m = map(int,input().split())
l = list(map(int,input().split()))
l.sort(reverse=True)
for i in range(m) :
if l[i] < sum(l)/(4*m) :
print('No')
exit()
else :
continue
print('Yes') | [
"control_flow.branch.if.condition.change"
] | 481,342 | 481,343 | u695329583 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in A:
sum += i
A.sort()
if A[m-1] >= sum/(4*m):
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in A:
sum += i
A.sort(reverse=True)
if A[m-1] >= sum/(4*m):
print("Yes")
else:
print("No")
| [
"call.arguments.keyword_argument.add"
] | 481,355 | 481,356 | u893297141 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in A:
sum += i
A.sort()
if A[m-1] > sum/(4*m):
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in A:
sum += i
A.sort(reverse=True)
if A[m-1] >= sum/(4*m):
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,357 | 481,356 | u893297141 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in A:
sum += i
A.sort()
if A[n-1] > sum/(4*m):
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in A:
sum += i
A.sort(reverse=True)
if A[m-1] >= sum/(4*m):
print("Yes")
else:
print("No")
| [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 481,358 | 481,356 | u893297141 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in A:
sum += i
A.sort()
if A[n-1] >= sum/(4*m):
print("Yes")
else:
print("No") | n,m = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in A:
sum += i
A.sort(reverse=True)
if A[m-1] >= sum/(4*m):
print("Yes")
else:
print("No")
| [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 481,359 | 481,356 | u893297141 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
if a[m] < sum(a) / (4*m):
print('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"
] | 481,362 | 481,363 | u475189661 | python |
p02718 | N,M = map(int,input().split())
array = list(map(int,input().split()))
total = sum(array)
count = 0
for i in range(N):
if array[i] < total // (4*M) :
continue
else:
count += 1
print( 'Yes' if count >= M else 'No')
| N,M = map(int,input().split())
array = list(map(int,input().split()))
total = sum(array)
count = 0
for i in range(N):
if array[i] < total / (4*M) :
continue
else:
count += 1
print('Yes' if count >= M else 'No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,366 | 481,367 | u768636516 | python |
p02718 | N,M = map(int,input().split())
array = list(map(int,input().split()))
total = sum(array)
count = 0
for i in range(N):
if array[i] >= total // (4*M) :
count += 1
print( 'Yes' if count >= M else 'No') | N,M = map(int,input().split())
array = list(map(int,input().split()))
total = sum(array)
count = 0
for i in range(N):
if array[i] < total / (4*M) :
continue
else:
count += 1
print('Yes' if count >= M else 'No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change",
"control_flow.continue.add"
] | 481,368 | 481,367 | u768636516 | python |
p02718 | N,M = map(int,input().split())
array = list(map(int,input().split()))
total = sum(array)
count = 0
for i in range(N):
if array[i] > total // (4*M) :
count += 1
print( 'Yes' if count >= M else 'No')
| N,M = map(int,input().split())
array = list(map(int,input().split()))
total = sum(array)
count = 0
for i in range(N):
if array[i] < total / (4*M) :
continue
else:
count += 1
print('Yes' if count >= M else 'No') | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change",
"control_flow.continue.add"
] | 481,369 | 481,367 | u768636516 | python |
p02718 | N,M = map(int,input().split())
array = list(map(int,input().split()))
total = sum(array)
count = 0
for i in range(N):
if array[i] > total / (4*M) :
count += 1
print( 'Yes' if count >= M else 'No')
| N,M = map(int,input().split())
array = list(map(int,input().split()))
total = sum(array)
count = 0
for i in range(N):
if array[i] < total / (4*M) :
continue
else:
count += 1
print('Yes' if count >= M else 'No') | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.continue.add"
] | 481,370 | 481,367 | u768636516 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
criteria = sum(a) / (m * 4)
ans = 0
for i in a:
if i >= criteria:
ans += 1
if ans >= m:
print('YES')
else:
print('NO')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
criteria = sum(a) / (m * 4)
ans = 0
for i in a:
if i >= criteria:
ans += 1
if ans >= m:
print('Yes')
else:
print('No')
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 481,371 | 481,372 | u792743880 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
s=sum(a)
cnt=0
for i in range(n):
if a[i] >= s*(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()))
s=sum(a)
cnt=0
for i in range(n):
if a[i] >= s/(4*m):
cnt += 1
if cnt>=m:
print('Yes')
else:
print('No') | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 481,373 | 481,374 | u546853743 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
s=sum(a)
cnt=0
for i in range(n):
if a[i] >= s*(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()))
s=sum(a)
cnt=0
for i in range(n):
if a[i] >= s/(4*m):
cnt += 1
if cnt>=m:
print('Yes')
else:
print('No') | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 481,375 | 481,374 | u546853743 | python |
p02718 | N, M = map(int, input().split())
A = sorted([int(x) for x in input().split()], reverse=True)
sumA = sum(A)
if A[M - 1] > sumA / (4 * M):
print("Yes")
else:
print('No')
| N, M = map(int, input().split())
A = sorted([int(x) for x in input().split()], 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"
] | 481,379 | 481,380 | u331105860 | python |
p02718 | import decimal
N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
base = sum(A) / decimal.Decimal(4 * M)
for Ai in A:
if Ai > base:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | import decimal
N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
base = sum(A) / (4 * M)
for Ai in A:
if Ai >= base:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,383 | 481,384 | u299645128 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
base = sum(A) / (4 * M)
for Ai in A:
if Ai > base:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | import decimal
N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
base = sum(A) / (4 * M)
for Ai in A:
if Ai >= base:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,385 | 481,384 | u299645128 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = list(reversed(sorted(A)))
print("No" if sorted_A[m] < sum(A)/(4*m) else "Yes")
| n, m = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = list(reversed(sorted(A)))
print("No" if sorted_A[m-1] < sum(A)/(4*m) else "Yes")
| [
"expression.operation.binary.add"
] | 481,395 | 481,396 | u856564576 | python |
p02718 | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
S = sum(A)
ans = "No"
for i in range(M):
if A[i] >= S // (4 * M):
ans = "Yes"
else:
ans = "No"
break
print(ans) | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
S = sum(A)
ans = "No"
for i in range(M):
if A[i] >= S / (4 * M):
ans = "Yes"
else:
ans = "No"
break
print(ans) | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,397 | 481,398 | u394950523 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
sum_A = sum(A)
for i in range(M):
if A[i] < sum_A / (4.0):
print('No')
exit()
print('Yes')
| N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
sum_A = sum(A)
for i in range(M):
if A[i] < sum_A / (4.0 * M):
print('No')
exit()
print('Yes')
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 481,411 | 481,412 | u636290142 | python |
p02718 | n, m = map(int, input().split())
in_list = input().split
vote_list = [int(i) for i in in_list]
ans = 0
for ai in vote_list:
if ai >= 1/(4*m)*sum(vote_list):
ans += 1
if ans < m :
print('no')
else:
print('yes') | n, m = map(int, input().split())
in_list = input().split()
vote_list = [int(i) for i in in_list]
ans = 0
for ai in vote_list:
if ai >= 1/(4*m)*sum(vote_list):
ans += 1
if ans < m :
print('No')
else:
print('Yes') | [
"call.add",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 481,428 | 481,429 | u320098990 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)*(1/4*m)
b = [i for i in a if i >= k]
if len(b) >= m:
print('Yes')
else:
print('No')
| n,m = map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)*(1/(4*m))
b = [i for i in a if i >= k]
if len(b) >= m:
print('Yes')
else:
print('No')
| [] | 481,430 | 481,431 | u681409497 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)//(4*m)
b = [i for i in a if i >= k]
if len(b) >= m:
print('Yes')
else:
print('No')
| n,m = map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)*(1/(4*m))
b = [i for i in a if i >= k]
if len(b) >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 481,432 | 481,431 | u681409497 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)//(4*m)
b = [i for i in a if i >= k]
if len(b) >= m:
print('Yes')
else:
print('No') | n,m = map(int,input().split())
a = list(map(int,input().split()))
k = sum(a)*(1/(4*m))
b = [i for i in a if i >= k]
if len(b) >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 481,433 | 481,431 | u681409497 | python |
p02718 | # coding=utf-8
if __name__ == '__main__':
N, M = map(int, input().split())
li = list(map(int, input().split()))
lisum = sum(li)
cnt = 0
for i in range(N):
if int(lisum / (M * 4)) <= li[i]:
cnt += 1
if M <= cnt:
print('Yes')
else:
print('No')
| # coding=utf-8
if __name__ == '__main__':
N, M = map(int, input().split())
li = list(map(int, input().split()))
lisum = sum(li)
cnt = 0
for i in range(N):
if lisum / (M * 4) <= li[i]:
cnt += 1
if M <= cnt:
print('Yes')
else:
print('No')
| [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 481,436 | 481,437 | u154997495 | python |
p02718 | # coding=utf-8
if __name__ == '__main__':
N, M = map(int, input().split())
li = list(map(int, input().split()))
lisum = sum(li)
cnt = 0
for i in range(N):
if int(lisum / (M * 4)) < li[i]:
cnt += 1
if M <= cnt:
print('Yes')
else:
print('No')
| # coding=utf-8
if __name__ == '__main__':
N, M = map(int, input().split())
li = list(map(int, input().split()))
lisum = sum(li)
cnt = 0
for i in range(N):
if lisum / (M * 4) <= li[i]:
cnt += 1
if M <= cnt:
print('Yes')
else:
print('No')
| [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 481,438 | 481,437 | u154997495 | python |
p02718 | # coding=utf-8
if __name__ == '__main__':
N, M = map(int, input().split())
li = list(map(int, input().split()))
lisum = sum(li)
cnt = 0
for i in range(N):
if lisum / (M * 4) < li[i]:
cnt += 1
if M <= cnt:
print('Yes')
else:
print('No')
| # coding=utf-8
if __name__ == '__main__':
N, M = map(int, input().split())
li = list(map(int, input().split()))
lisum = sum(li)
cnt = 0
for i in range(N):
if lisum / (M * 4) <= li[i]:
cnt += 1
if M <= cnt:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,439 | 481,437 | u154997495 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
s = sum(A)
th = s / (4*M)
cnt = 0
for a in A:
if a > th:
cnt += 1
if cnt < M:
print("No")
else:
print("Yes") | N, M = map(int, input().split())
A = list(map(int, input().split()))
s = sum(A)
th = s / (4*M)
cnt = 0
for a in A:
if a >= th:
cnt += 1
if cnt < M:
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,442 | 481,443 | u534450736 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
if A[M]>=sum(A)/(4*M):
print('Yes')
else:
print('No')
| N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
if A[M-1]>=sum(A)/(4*M):
print('Yes')
else:
print('No')
| [
"control_flow.branch.if.condition.change"
] | 481,446 | 481,447 | u687416863 | python |
p02718 | n,m = map(int,input().split())
hyo = list(map(int,input().split()))
all_hyo = sum(hyo)
hyo.sort(reverse=True)
a = True
for x in range(m):
if hyo[m] < all_hyo / 4 / m:
a = False
break
if a :
print("Yes")
else:
print("No") | n,m = map(int,input().split())
hyo = list(map(int,input().split()))
all_hyo = sum(hyo)
hyo.sort(reverse=True)
a = True
for x in range(m):
if hyo[x] < all_hyo / 4 / m:
a = False
break
if a :
print("Yes")
else:
print("No")
| [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 481,462 | 481,463 | u904331908 | python |
p02718 | def main():
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')
if __name__ == '__main__':
main() | def main():
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')
if __name__ == '__main__':
main() | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,474 | 481,475 | u878545651 | python |
p02718 | from decimal import Decimal
n,m = map(int,input().split())
A = list(map(int,input().split()))
border = float(sum(A)/(4*m))
border2 = str(border)
border3 = Decimal(border2)
ans = 0
judge = 0
for i in range(n):
if A[i] >= border3:
ans+=1
if ans > m:
print("Yes")
else:
print("No") | from decimal import Decimal
n,m = map(int,input().split())
A = list(map(int,input().split()))
border = float(sum(A)/(4*m))
border2 = str(border)
border3 = Decimal(border2)
ans = 0
judge = 0
for i in range(n):
if A[i] >= border3:
ans+=1
if ans >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,492 | 481,493 | u556589653 | python |
p02718 | from decimal import Decimal
n,m = map(int,input().split())
A = list(map(int,input().split()))
border = float(sum(A)/(4*m))
border2 = str(border)
border3 = Decimal(border2)
ans = 0
judge = 0
for i in range(n):
if A[i] > border3:
ans+=1
if ans > m:
print("Yes")
else:
print("No") | from decimal import Decimal
n,m = map(int,input().split())
A = list(map(int,input().split()))
border = float(sum(A)/(4*m))
border2 = str(border)
border3 = Decimal(border2)
ans = 0
judge = 0
for i in range(n):
if A[i] >= border3:
ans+=1
if ans >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,494 | 481,493 | u556589653 | python |
p02718 | from decimal import Decimal
n,m = map(int,input().split())
A = list(map(int,input().split()))
border = float(sum(A)/(4*m))
border2 = str(border)
border3 = Decimal(border2)
ans = 0
judge = 0
for i in range(n):
if A[i] >= border3:
ans+=1
if ans > m:
print("Yes")
else:
print("No") | from decimal import Decimal
n,m = map(int,input().split())
A = list(map(int,input().split()))
border = float(sum(A)*(1/(4*m)))
border2 = str(border)
border3 = Decimal(border2)
ans = 0
judge = 0
for i in range(n):
if A[i] >= border3:
ans+=1
if ans >= m:
print("Yes")
else:
print("No") | [
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,492 | 481,495 | u556589653 | python |
p02718 | from decimal import Decimal
n,m = map(int,input().split())
A = list(map(int,input().split()))
border = float(sum(A)/(4*m))
border2 = str(border)
border3 = Decimal(border2)
ans = 0
judge = 0
for i in range(n):
if A[i] > border3:
ans+=1
if ans > m:
print("Yes")
else:
print("No") | from decimal import Decimal
n,m = map(int,input().split())
A = list(map(int,input().split()))
border = float(sum(A)*(1/(4*m)))
border2 = str(border)
border3 = Decimal(border2)
ans = 0
judge = 0
for i in range(n):
if A[i] >= border3:
ans+=1
if ans >= m:
print("Yes")
else:
print("No") | [
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,494 | 481,495 | u556589653 | python |
p02718 | n,m = map(int, input().split())
A = list(map(int, input().split()))
rank = sum(A) / (4*m)
cnt =0
for a in A:
cnt += rank <= a
if cnt > m:
print('Yes')
else:
print('No') | n,m = map(int, input().split())
A = list(map(int, input().split()))
rank = sum(A) / (4*m)
cnt =0
for a in A:
cnt += rank <= a
if cnt >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,498 | 481,499 | u891687930 | python |
p02718 | n,m = map(int, input().split())
A = list(map(int, input().split()))
rank = sum(A) / (4*m)
cnt =0
for a in A:
cnt += rank < a
if cnt > m:
print('Yes')
else:
print('No') | n,m = map(int, input().split())
A = list(map(int, input().split()))
rank = sum(A) / (4*m)
cnt =0
for a in A:
cnt += rank <= a
if cnt >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,500 | 481,499 | u891687930 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
border = sum(a) / (4 * m)
a.sort(reverse=True)
for i in range(m):
if border >= a[i]:
pass
else:
print('No')
exit(0)
print('Yes')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
border = sum(a) / (4 * m)
a.sort(reverse=True)
for i in range(m):
if border <= a[i]:
pass
else:
print('No')
exit(0)
print('Yes')
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,506 | 481,507 | u643679148 | python |
p02718 | N,M = list(map(int,input().split()))
A = list(map(int,input().split()))
A.sort(reverse=True)
all_ =sum(A)
th = all_//(4*M)
ans='Yes'
if A[M-1] <= th:
ans='No'
print(ans) | N,M = list(map(int,input().split()))
A = list(map(int,input().split()))
A.sort(reverse=True)
all_ = sum(A)
th = all_/(4*M)
ans='Yes'
if A[M-1] < th:
ans='No'
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,510 | 481,511 | u465101448 | python |
p02718 | N,M = list(map(int,input().split()))
A = list(map(int,input().split()))
A.sort(reverse=True)
all_ =sum(A)
th = all_//(4*M)
ans='No'
if A[M-1] >= th:
ans='Yes'
print(ans) | N,M = list(map(int,input().split()))
A = list(map(int,input().split()))
A.sort(reverse=True)
all_ = sum(A)
th = all_/(4*M)
ans='Yes'
if A[M-1] < th:
ans='No'
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"literal.string.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,512 | 481,511 | u465101448 | python |
p02718 | n = input()
n = n.split()
m = int(n[1])
n = int(n[0])
a = input()
a = a.split()
c = int(a[0])
for b in range(n-1):
c = c + int(a[b+1])
c = c / (4 * m)
e = 0
for d in range(n):
if int(a[d]) > c :
e = e + 1
if e >= m:
print("Yes")
else:
print("No") | n = input()
n = n.split()
m = int(n[1])
n = int(n[0])
a = input()
a = a.split()
c = int(a[0])
for b in range(n-1):
c = c + int(a[b+1])
c = c / (4 * m)
e = 0
for d in range(n):
if int(a[d]) >= c :
e = e + 1
if e >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,527 | 481,528 | u116939152 | python |
p02718 | # coding: utf-8
kind, choose = map(int, input().split())
count = 0
total = 0
num = input().split(" ")
for i in num:
total += int(i)
ok = total / (4 * kind)
for i in num:
if int(i) >= ok:
count += 1
if count >= choose:
print("Yes")
else:
print("No") | # coding: utf-8
kind, choose = map(int, input().split())
count = 0
total = 0
num = input().split(" ")
for i in num:
total += int(i)
ok = total / (4 * choose)
for i in num:
if int(i) >= ok:
count += 1
if count >= choose:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 481,529 | 481,530 | u073606136 | python |
p02718 | # coding: utf-8
kind, choose = map(int, input().split())
count = 0
total = 0
num = input().split(" ")
for i in num:
total += int(i)
ok = total / (4 * kind)
for i in num:
if int(i) >= ok:
count += 1
if count > choose:
print("Yes")
else:
print("No") | # coding: utf-8
kind, choose = map(int, input().split())
count = 0
total = 0
num = input().split(" ")
for i in num:
total += int(i)
ok = total / (4 * choose)
for i in num:
if int(i) >= ok:
count += 1
if count >= choose:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,532 | 481,530 | u073606136 | python |
p02718 | # coding: utf-8
kind, choose = map(int, input().split())
count = 0
total = 0
num = input().split(" ")
for i in num:
total += int(i)
ok = total / (4 * kind)
for i in num:
if int(i) >= total / ok:
count += 1
if count > choose:
print("Yes")
else:
print("No") | # coding: utf-8
kind, choose = map(int, input().split())
count = 0
total = 0
num = input().split(" ")
for i in num:
total += int(i)
ok = total / (4 * choose)
for i in num:
if int(i) >= ok:
count += 1
if count >= choose:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,533 | 481,530 | u073606136 | python |
p02718 | n, m = (int(x) for x in input().split())
list_a = sorted([int(x) for x in input().split()], reverse=True)
for i in range(0, m):
if list_a[i] < sum(list_a) // (4 * m):
print('No')
exit()
print('Yes') | n, m = (int(x) for x in input().split())
list_a = sorted([int(x) for x in input().split()], reverse=True)
for i in range(0, m):
if list_a[i] < sum(list_a) / (4 * m):
print('No')
exit()
print('Yes') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,534 | 481,535 | u366939485 | python |
p02718 | nums = list(map(int,input().split()))
N = nums[0]
M = nums[1]
numss = list(map(int,input().split()))
cnt = M
summ = sum(numss)
for num in numss:
if num >= summ//(M*4):
cnt -= 1
if cnt <= 0:
print("Yes")
else:
print("No") | nums = list(map(int,input().split()))
N = nums[0]
M = nums[1]
numss = list(map(int,input().split()))
cnt = M
summ = sum(numss)
for num in numss:
if num >= summ/(M*4):
cnt -= 1
if cnt > 0:
print("No")
else:
print("Yes") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"call.remove",
"call.add"
] | 481,536 | 481,537 | u091964259 | python |
p02718 | def main():
N,M = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in range(N):
sum += A[i]
cnt = 0
tmp = sum/(4*M)
for i in range(N):
if A[i] > tmp:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No')
main()
| def main():
N,M = map(int,input().split())
A = list(map(int,input().split()))
sum = 0
for i in range(N):
sum += A[i]
cnt = 0
tmp = sum/(4*M)
for i in range(N):
if A[i] >= tmp:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No')
main()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,547 | 481,548 | u810787773 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
sum = sum(A)
limit = sum // (4 * M)
A.sort(reverse = True)
ans = True
for i in range(M):
if A[i] < limit:
ans = False
break
if ans:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
sum = sum(A)
limit = sum / (4 * M)
A.sort(reverse = True)
ans = True
for i in range(M):
if A[i] < limit:
ans = False
break
if ans:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 481,569 | 481,570 | u364555831 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
sum = sum(A)
limit = sum // (4 * M)
A.sort(reverse = True)
ans = True
for i in range(M):
if A[i] <= limit:
ans = False
break
if ans:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
sum = sum(A)
limit = sum / (4 * M)
A.sort(reverse = True)
ans = True
for i in range(M):
if A[i] < limit:
ans = False
break
if ans:
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"
] | 481,571 | 481,570 | u364555831 | python |
p02718 | n, m = map(int,input().split())
lst = list(map(int,input().split()))
lst.sort()
lst.reverse()
x = sum(lst)
if (lst[m] < x/4/m):
print("No")
else:
print("Yes")
| n, m = map(int,input().split())
lst = list(map(int,input().split()))
lst.sort()
lst.reverse()
x = sum(lst)
if (lst[m - 1] < x/4/m):
print("No")
else:
print("Yes")
| [
"control_flow.branch.if.condition.change"
] | 481,574 | 481,575 | u625864724 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
count = 0
for i in range(n):
if sum(a)/(4*m) <a[i]:
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 sum(a)/(4*m) <= a[i]:
count+=1
if count >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,580 | 481,581 | u629540524 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
count = 0
for i in range(n):
if sum(a)//(4*m) <a[i]:
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 sum(a)/(4*m) <= a[i]:
count+=1
if count >= m:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 481,582 | 481,581 | u629540524 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
count=0
for i in range(n):
if sum(a)/4 <a[i]:
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 sum(a)/(4*m) <= a[i]:
count+=1
if count >= m:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 481,583 | 481,581 | u629540524 | python |
p02718 | n,m=map(int,input().split())
l=list(map(int,input().split()))
s=sum(l)//(4*m)
c=0
for i in range(n):
if(l[i]>=s):
c=c+1
if(c>=m):
print("Yes")
else:
print("No") | n,m=map(int,input().split())
l=list(map(int,input().split()))
s=sum(l)/(4*m)
c=0
for i in range(n):
if(l[i]>=s):
c=c+1
if(c>=m):
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 481,590 | 481,591 | u512551187 | python |
p02718 | N,M=map(int,input().split(" "))
l=list(map(int,input().split(" ")))
sum_list=sum(l)
border=sum_list/(4*M)
c=0
for i in range(N):
if l[i]>border:
c+=1
if c>=M:
print("Yes")
else:
print("No")
| N,M=map(int,input().split(" "))
l=list(map(int,input().split(" ")))
sum_list=sum(l)
border=sum_list/(4*M)
c=0
for i in range(N):
if l[i]>=border:
c+=1
if c>=M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,592 | 481,593 | u459023872 | python |
p02718 | n,m = map(int,input().split())
a = sorted(list(map(int,input().split())))
b = sum(a)/(4*m)
c=[]
for i in a[:m]:
if i >= b:
c.append(i)
if len(c) == m:
print('Yes')
else:
print('No')
| n,m = map(int,input().split())
a = sorted(list(map(int,input().split())),reverse=True)
b = sum(a)/(4*m)
c=[]
for i in a[:m]:
if i >= b:
c.append(i)
if len(c) == m:
print('Yes')
else:
print('No')
| [
"call.arguments.add"
] | 481,602 | 481,603 | u611090896 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
ave=sum(a)/len(a)/4
cnt=0
for i in range(n):
if a[i]>=ave:
cnt+=1
if cnt<m:
print('No')
else:
print('Yes') | n,m=map(int,input().split())
a=list(map(int,input().split()))
ave=sum(a)/m/4
cnt=0
for i in range(n):
if a[i]>=ave:
cnt+=1
if cnt<m:
print('No')
else:
print('Yes') | [
"assignment.value.change",
"expression.operation.binary.change",
"call.arguments.change"
] | 481,630 | 481,631 | u500673386 | python |
p02718 | a,b = map(int, input().split())
c = list(map(int,input().split()))
d = sum(c)
e = sorted(c,reverse=True)
for i in range(a):
if(e[i]<d/4*b):
print("No")
exit()
print("Yes") | a,b = map(int, input().split())
c = list(map(int,input().split()))
d = sum(c)
e = sorted(c,reverse=True)
for i in range(b):
if(e[i]<d/(4*b)):
print("No")
exit()
print("Yes") | [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change"
] | 481,637 | 481,638 | u929996201 | python |
p02718 | _,m=map(int,input().split())
a=list(map(int,input().split()))
cnt=0
temp=sum(a)
for v in a:
if v>=a/(4*m): cnt+=1
if cnt>=m: print("Yes")
else: print("No") | _,m=map(int,input().split())
a=list(map(int,input().split()))
cnt=0
temp=sum(a)
for v in a:
if v>=temp/(4*m): cnt+=1
if cnt>=m: print("Yes")
else: print("No") | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 481,641 | 481,642 | u131881594 | python |
p02718 | n, m = input().split()
a = list(map(int, input().split()))
b = []
s = 0
for i in a:
s += i
for i in a:
if int(i) >= int(int(s)//(4*int(m))):
b.append(i)
if len(b) == int(m):
break
if len(b) == int(m):
print("Yes")
else:
print("No") | n, m = input().split()
a = list(map(int, input().split()))
b = []
s = 0
for i in a:
s += i
for i in a:
if float(i) >= float(int(s)/(4*int(m))):
b.append(i)
if len(b) == int(m):
break
if len(b) == int(m):
print("Yes")
else:
print("No") | [
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 481,645 | 481,646 | u302947017 | python |
p02718 | n, m = map(int, input().split())
an = [int(num) for num in input().split()]
check = sum(an)//(4*m)
count = 0
for a in an :
if a >= check:
count += 1
if count >= m:
print("Yes")
else :
print("No") | n, m = map(int, input().split())
an = [int(num) for num in input().split()]
check = sum(an)/(4*m)
count = 0
for a in an :
if a >= check:
count += 1
if count >= m:
print("Yes")
else :
print("No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 481,649 | 481,650 | u765590009 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse = True)
num = 0
for i in A:
num += i
if A[M-1] >= num//(4*M):
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse = True)
num = 0
for i in A:
num += i
if A[M-1] >= num/(4*M):
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,659 | 481,660 | u096147269 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse = True)
num = 0
for i in A:
num += i
if A[M-1] >= num//4*M:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse = True)
num = 0
for i in A:
num += i
if A[M-1] >= num/(4*M):
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,661 | 481,660 | u096147269 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse = True)
num = 0
for i in A:
num += i
if A[M] >= num//4*M:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse = True)
num = 0
for i in A:
num += i
if A[M-1] >= num/(4*M):
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 481,662 | 481,660 | u096147269 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sort=[]
a_sort=sorted(a,reverse=True)
sum=0
for i in a:
sum+=i
b_sort=a_sort[0:m-1]
for j in b_sort:
if j<int(sum/(4*m)):
print("No")
exit()
print("Yes") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sort=[]
a_sort=sorted(a,reverse=True)
sum=0
for i in a:
sum+=i
b_sort=a_sort[0:m]
for j in b_sort:
if j<sum/(4*m):
print("No")
exit()
print("Yes") | [
"expression.operation.binary.remove",
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 481,663 | 481,664 | u944886577 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sort=[]
a_sort=sorted(a,reverse=True)
sum=0
for i in a:
sum+=i
b_sort=a_sort[0:m-1]
for j in b_sort:
if j<sum/(4*m):
print("No")
exit()
print("Yes") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sort=[]
a_sort=sorted(a,reverse=True)
sum=0
for i in a:
sum+=i
b_sort=a_sort[0:m]
for j in b_sort:
if j<sum/(4*m):
print("No")
exit()
print("Yes") | [
"expression.operation.binary.remove"
] | 481,665 | 481,664 | u944886577 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sort=[]
a_sort=sorted(a,reverse=True)
sum=0
for i in a:
sum+=i
b_sort=a_sort[0:m]
for j in b_sort:
if j<=sum/(4*m):
print("No")
exit()
print("Yes") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sort=[]
a_sort=sorted(a,reverse=True)
sum=0
for i in a:
sum+=i
b_sort=a_sort[0:m]
for j in b_sort:
if j<sum/(4*m):
print("No")
exit()
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,666 | 481,664 | u944886577 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sort=[]
a_sort=sorted(a,reverse=True)
sum=0
for i in a:
sum+=i
b_sort=a_sort[0:m-1]
for j in b_sort:
if j<=sum/(4*m):
print("No")
exit()
print("Yes") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sort=[]
a_sort=sorted(a,reverse=True)
sum=0
for i in a:
sum+=i
b_sort=a_sort[0:m]
for j in b_sort:
if j<sum/(4*m):
print("No")
exit()
print("Yes") | [
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,667 | 481,664 | u944886577 | python |
p02718 | N, M = map(int,input().split())
A = list(map(int,input().split()))
B = 0
C = 0
for i in range(list(A)):
c += A[i]
for i in range(list(A)):
if A[i] >= 1/(4*M):
B += 1
if B >= M:
print('Yes')
else:
print('No')
| N, M = map(int,input().split())
A = list(map(int,input().split()))
B = 0
C = 0
for i in range(len(A)):
C += A[i]
for i in range(len(A)):
if A[i] >= C/(4*M):
B += 1
if B >= M:
print('Yes')
else:
print('No')
| [
"identifier.change",
"call.function.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"misc.typo",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 481,675 | 481,676 | u272457181 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
count = 0
for i in a:
if i/sum(a) >= 0.25/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 a:
if i/sum(a) >= 0.25/m:
count += 1
print('Yes' if count >= m else 'No') | [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 481,682 | 481,683 | u363421241 | python |
p02718 | N,M = list(map(int, input().split()))
A = list(map(int, input().split()))
sum_a = sum(A)
ans = 0
for i,a in enumerate(A):
if a > sum_a / (4 * M):
ans += 1
if ans >= M:
print('Yes')
else:
print('No')
| N,M = list(map(int, input().split()))
A = list(map(int, input().split()))
sum_a = sum(A)
ans = 0
for i,a in enumerate(A):
if a >= sum_a / (4 * M):
ans += 1
if ans >= M:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,686 | 481,687 | u141596821 | python |
p02718 | N, M = map(int,input().split())
A = list(map(int,input().split()))
B = [1 for a in A if a >= sum(A)//(4*M)]
if sum(B) >= M:
print("Yes")
else:
print("No")
| N, M = map(int,input().split())
A = list(map(int,input().split()))
B = [1 for a in A if a >= (sum(A)-1)//(4*M)+1]
if sum(B) >= M:
print("Yes")
else:
print("No")
| [
"assignment.change"
] | 481,699 | 481,700 | u473291366 | python |
p02718 | n, m = map(int, input().split())
arr = list(map(int, input().split()))
p = sum(arr)
c = 0
for i in arr:
if i >= int(p/(4*m)):
c += 1
if c>= m:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
arr = list(map(int, input().split()))
p = sum(arr)
c = 0
for i in arr:
if i >= p/(4*m):
c += 1
if c>= m:
print("Yes")
else:
print("No")
| [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 481,703 | 481,704 | u965482124 | python |
p02718 | n, m = map(int, input().split())
arr = list(map(int, input().split()))
p = sum(arr)
c = 0
for i in arr:
if i >= p//(4*m):
c += 1
if c>= m:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
arr = list(map(int, input().split()))
p = sum(arr)
c = 0
for i in arr:
if i >= p/(4*m):
c += 1
if c>= m:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,705 | 481,704 | u965482124 | python |
p02718 | n, m = map(int, input().split())
a = sorted(list(map(int, input().split())), reverse=True)
print(a)
if a[m-1] >= sum(a) / (4 * m):
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = sorted(list(map(int, input().split())), reverse=True)
if a[m-1] >= sum(a) / (4 * m):
print("Yes")
else:
print("No")
| [
"call.remove"
] | 481,707 | 481,708 | u038136206 | python |
p02718 | n, m = map(int, input().split())
a = sorted(list(map(int, input().split())), reverse=True)
if a[m] >= sum(a) / (4 * m):
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = sorted(list(map(int, input().split())), reverse=True)
if a[m-1] >= sum(a) / (4 * m):
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change"
] | 481,709 | 481,708 | u038136206 | python |
p02718 | import math
N,M = map(int,input().split())
A = list(map(int,input().split()))
SUM = sum(A)
ans = 0
for i in range(N):
if A[i] >= math.ceil(SUM/4):
ans +=1
if ans >= M:
print("Yes")
else:
print("No") | import math
N,M = map(int,input().split())
A = list(map(int,input().split()))
SUM = sum(A)
ans = 0
for i in range(N):
if A[i] >= math.ceil(SUM/4/M):
ans +=1
if ans >= M:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 481,710 | 481,711 | u353855427 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
ans = 0
s = sum(a)
for i in range(a):
if i >= s/(4*m):
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
a = list(map(int,input().split()))
ans = 0
s = sum(a)
for i in a:
if i >= s/(4*m):
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | [
"call.remove",
"call.arguments.change"
] | 481,717 | 481,718 | u175590965 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
cnt = 0
for i in range(n):
if a[i] > sum(a)/(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 range(n):
if a[i] >= sum(a)/(4*m):
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,723 | 481,724 | u217303170 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
threshold = sum(A) / (4*m)
ans = 0
for i in A:
if i > threshold:
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
A = list(map(int, input().split()))
threshold = sum(A) / (4*m)
ans = 0
for i in A:
if i >= threshold:
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,725 | 481,726 | u441175813 | python |
p02718 | n,m = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
k=sum(a)
a.sort(reverse=True)
cont=0
ans=''
for i in a:
if i>k*(1/(4*m)):
cont+=1
if cont>=m: print("Yes")
else: print("No")
| n,m = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
k=sum(a)
a.sort(reverse=True)
cont=0
ans=''
for i in a:
if i>=k*(1/(4*m)):
cont+=1
if cont>=m: print("Yes")
else: print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,727 | 481,728 | u259975636 | python |
p02718 | def main():
N, M = map(int, input().split())
A = list(map(int, input().split(' ')))
A.sort()
A.reverse()
total = sum(A)
for i in range(M):
if total // (4 * M) > A[i]:
print('No')
return
print('Yes')
main() | def main():
N, M = map(int, input().split())
A = list(map(int, input().split(' ')))
A.sort()
A.reverse()
total = sum(A)
for i in range(M):
if total / (4 * M) <= A[i]:
continue
print('No')
return
print('Yes')
main() | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"control_flow.continue.add"
] | 481,744 | 481,745 | u033642300 | python |
p02718 | def main():
N, M = map(int, input().split())
A = list(map(int, input().split(' ')))
A.sort()
A.reverse()
total = sum(A)
for i in range(M):
if total // (4 * M) <= A[i]:
continue
print('No')
return
print('Yes')
main() | def main():
N, M = map(int, input().split())
A = list(map(int, input().split(' ')))
A.sort()
A.reverse()
total = sum(A)
for i in range(M):
if total / (4 * M) <= A[i]:
continue
print('No')
return
print('Yes')
main() | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,746 | 481,745 | u033642300 | python |
p02718 | def main():
N, M = map(int, input().split())
A = list(map(int, input().split(' ')))
A.sort()
A.reverse()
total = sum(A)
for i in range(M):
if total // (4 * M) < A[i]:
continue
print('No')
return
print('Yes')
main() | def main():
N, M = map(int, input().split())
A = list(map(int, input().split(' ')))
A.sort()
A.reverse()
total = sum(A)
for i in range(M):
if total / (4 * M) <= A[i]:
continue
print('No')
return
print('Yes')
main() | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 481,747 | 481,745 | u033642300 | python |
p02718 | n, m = map(int,input().split())
a = list(map(int,input().split()))
a.sort()
total = sum(a)
if total/(4*m) > a[m]:
print("No")
else:
print("Yes") | n, m = map(int,input().split())
a = list(map(int,input().split()))
a.sort()
total = sum(a)
if total/(4*m) > a[-m]:
print("No")
else:
print("Yes") | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 481,748 | 481,749 | u853728588 | python |
p02718 | import math
N, M = map(int, input().split())
ans = 0
Nlist = list(map(int, input().split()))
total = sum(Nlist)
Mmin = math.floor(total*1/(4*M))
ans = len([1 for x in Nlist if x >= Mmin])
if ans >= M:
print('Yes')
else:
print('No')
| import math
N, M = map(int, input().split())
ans = 0
Nlist = list(map(int, input().split()))
total = sum(Nlist)
Mmin = math.ceil(total*1/(4*M))
ans = len([1 for x in Nlist if x >= Mmin])
if ans >= M:
print('Yes')
else:
print('No')
| [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 481,762 | 481,763 | u815763296 | 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('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') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,769 | 481,770 | u445404615 | python |
p02718 | import numpy as np
n, m = map(int, input().split())
vote_lists = list(map(int, input().split()))
vote_arr = np.array(vote_lists)
total_vote = vote_arr.sum()
is_popular = total_vote / (4 * m)
answer_lists = []
for i in vote_lists:
if i >= is_popular:
answer_lists.append(i)
if len(answer_lists) >= m:
print('... | import numpy as np
n, m = map(int, input().split())
vote_lists = list(map(int, input().split()))
vote_arr = np.array(vote_lists)
total_vote = vote_arr.sum()
is_popular = total_vote / (4 * m)
answer_lists = []
for i in vote_lists:
if i >= is_popular:
answer_lists.append(i)
if len(answer_lists) >= m:
print('... | [
"identifier.change",
"call.function.change",
"io.output.change"
] | 481,778 | 481,779 | u125269142 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
s = sum(A)
A.sort(reverse=True)
for i in range(1,N+1):
if i == M:
if (s/(4*M))>A[i]:
print('No')
else:
print('Yes') | N, M = map(int, input().split())
A = list(map(int, input().split()))
s = sum(A)
A.sort(reverse=True)
for i in range(N):
if i == M - 1:
if (s / (4 * M)) > A[i]:
print('No')
else:
print('Yes')
| [
"call.arguments.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 481,780 | 481,781 | u509029769 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
s = sum(A)
A=sorted(A)
for i in range(N):
if i == M-1:
if (s/(4*M))>A[i]:
print('No')
else:
print('Yes') | N, M = map(int, input().split())
A = list(map(int, input().split()))
s = sum(A)
A.sort(reverse=True)
for i in range(N):
if i == M - 1:
if (s / (4 * M)) > A[i]:
print('No')
else:
print('Yes')
| [
"call.add"
] | 481,782 | 481,781 | u509029769 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
s = sum(A)
A=sorted(A)
for i in range(N):
if i == M-1:
if (s/(4*M))>A[i]:
print('No')
else:
print('Yes') | N,M = map(int,input().split())
A = list(map(int,input().split()))
s = sum(A)
A.sort(reverse=True)
for i in range(N):
if i == M-1:
if (s/(4*M))>A[i]:
print('No')
else:
print('Yes') | [
"call.add"
] | 481,782 | 481,783 | u509029769 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
s = sum(A)
A=sorted(A)
for i in range(N):
if i == M-1:
if (s/(4*M))>A[i]:
print('No')
else:
print('Yes') | N,M = map(int,input().split())
A = list(map(int,input().split()))
s = sum(A)
A = sorted(A,reverse=True)
for i in range(N):
if i == M-1:
if (s/(4*M))>A[i]:
print('No')
else:
print('Yes') | [
"call.arguments.add"
] | 481,782 | 481,784 | u509029769 | python |
p02718 | N,M=map(int,input().split())
list_A=list(map(int,input().split()))
sum_A=sum(list_A)
count=0
for i in range(N):
if list_A[i]>sum_A/(4*M):
count+=1
if count>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
list_A=list(map(int,input().split()))
sum_A=sum(list_A)
count=0
for i in range(N):
if list_A[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"
] | 481,789 | 481,790 | u891202624 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
A = sum(a)
count = 0
for i in a:
if i > 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()))
A = sum(a)
count = 0
for i in a:
if i >= A / (4*m):
count += 1
if count >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,791 | 481,792 | u804711544 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
mmin = sum(A) * (4*M)
A.sort()
if A[m-1] < mmin:
print('No')
else:
print('Yes') | N, M = map(int, input().split())
A = list(map(int, input().split()))
mmin = sum(A) / (4*M)
A.sort(reverse=True)
if A[M-1] < mmin:
print('No')
else:
print('Yes') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 481,795 | 481,796 | u377834804 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
asum = sum(a)
r = 0
for i in range(n):
if a[i] >= asum//(4*m):
r += 1
print("Yes" if r >= m else "No") | n,m = map(int,input().split())
a = list(map(int,input().split()))
asum = sum(a)
r = 0
for i in range(n):
if a[i] >= asum/(4*m):
r += 1
print("Yes" if r >= m else "No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,797 | 481,798 | u537722973 | python |
p02718 | N, M = map(int, input().split())
A_s = list(map(int, input().split()))
cnt = 0
for A in A_s:
if A > sum(A_s)/4/M:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A_s = list(map(int, input().split()))
cnt = 0
for A in A_s:
if A < sum(A_s)/4/M:
cnt += 1
if N-cnt >= M:
print('Yes')
else:
print('No') | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,804 | 481,805 | u309039873 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.