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 | a = list(map(int, input().split()))
A = list(map(int, input().split()))
N, M = a[0], a[1]
sum = sum(A)
print(sum)
c = 0
for i in range(N):
if A[i] >= sum/4/M:
c = c+1
if c >= M:
print("Yes")
else:
print("No") | a = list(map(int, input().split()))
A = list(map(int, input().split()))
N, M = a[0], a[1]
sum = sum(A)
c = 0
for i in range(N):
if A[i] >= sum/4/M:
c = c+1
if c >= M:
print("Yes")
else:
print("No") | [
"call.remove"
] | 484,450 | 484,451 | u285891772 | python |
p02718 | m, n = list(map(int, input().split(" ")))
a_list = sorted(list(map(int, input().split(" "))), reverse=True)
if m == 0:
print('Yes')
else:
if a_list[m-1] >= sum(a_list) / (4 * m):
print('Yes')
else:
print('No')
| n, m = list(map(int, input().split(" ")))
a_list = sorted(list(map(int, input().split(" "))), reverse=True)
if m == 0:
print('Yes')
else:
if a_list[m-1] >= sum(a_list) / (4 * m):
print('Yes')
else:
print('No') | [] | 484,463 | 484,464 | u112266373 | python |
p02718 | # coding: utf-8
# Your code here!
N, M = list(map(int, input().split()))
a = list(map(int, input().split()))
count = 0
for i in range(N):
if a[i] > sum(a) * 1 / (4 * M):
count += 1
if count >= M:
print('Yes')
else:
print('No') | # coding: utf-8
# Your code here!
N, M = list(map(int, input().split()))
a = list(map(int, input().split()))
count = 0
for i in range(N):
if a[i] >= sum(a) * 1 / (4 * M):
count += 1
if count >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,465 | 484,466 | u863673790 | python |
p02718 | from sys import stdin
N,M=list(map(int,(stdin.readline().strip().split())))
A=list(map(int,(stdin.readline().strip().split())))
hyou=sum(A)/(4*M)
count=0
for i in range(N):
if (A[i])<hyou:continue
count+=1
if count>=M:print("yes")
else:print("no") | from sys import stdin
N,M=list(map(int,(stdin.readline().strip().split())))
A=list(map(int,(stdin.readline().strip().split())))
hyou=(sum(A)/(4*M))
count=0
for i in range(N):
if (A[i])<hyou:continue
count+=1
if count>=M:print("Yes")
else:print("No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 484,470 | 484,471 | u459419927 | python |
p02718 | N,M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
T = (sum(A)//(4*M))
n = 0
for i in range(N):
if A[i] < T:
continue
n += 1
if n >= M:
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
T = (sum(A)/(4*M))
n = 0
for i in range(N):
if A[i] < T:
continue
n += 1
if n >= M:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 484,472 | 484,473 | u847758719 | python |
p02718 | N,M = [int(i) for i in input().split()]
items = [int(i) for i in input().split()]
items.sort(reverse=True)
total = sum(items)
flag = 1
for i in range(M):
if total / (4 * M) >= items[i]:
pass
else:
flag = 0
if flag:
print('Yes')
else:
print('No') | N,M = [int(i) for i in input().split()]
items = [int(i) for i in input().split()]
items.sort(reverse=True)
total = sum(items)
flag = 1
for i in range(M):
if total / (4 * M) <= items[i]:
pass
else:
flag = 0
if flag:
print('Yes')
else:
print('No') | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,482 | 484,483 | u112747720 | python |
p02718 | N,M = [int(i) for i in input().split()]
items = [int(i) for i in input().split()]
items.sort(reverse=True)
total = sum(items)
flag = 1
for i in range(M):
if total // (4 * M) >= items[i]:
pass
else:
flag = 0
if flag:
print('Yes')
else:
print('No') | N,M = [int(i) for i in input().split()]
items = [int(i) for i in input().split()]
items.sort(reverse=True)
total = sum(items)
flag = 1
for i in range(M):
if total / (4 * M) <= items[i]:
pass
else:
flag = 0
if flag:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 484,484 | 484,483 | u112747720 | python |
p02718 | N,M = [int(i) for i in input().split()]
items = [int(i) for i in input().split()]
items.sort()
total = sum(items)
flag = 1
for i in range(M):
if total // (4 * M) >= items[i]:
pass
else:
flag = 0
if flag:
print('Yes')
else:
print('No') | N,M = [int(i) for i in input().split()]
items = [int(i) for i in input().split()]
items.sort(reverse=True)
total = sum(items)
flag = 1
for i in range(M):
if total / (4 * M) <= items[i]:
pass
else:
flag = 0
if flag:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 484,485 | 484,483 | u112747720 | python |
p02718 | # import inbuilt standard input output
from sys import stdin, stdout
# suppose a function called main() and
# all the operations are performed
def main():
# input via readline method
info_input = stdin.readline()
vote_input = stdin.readline()
info = [int(x) for x in info_input.split()] ... | # import inbuilt standard input output
from sys import stdin, stdout
# suppose a function called main() and
# all the operations are performed
def main():
# input via readline method
info_input = stdin.readline()
vote_input = stdin.readline()
info = [int(x) for x in info_input.split()] ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,496 | 484,497 | u752661835 | python |
p02718 | a,b = map(int, input().split())
List = list(map(int, input().split()))
c = sum(List)
List = sorted(List)[::-1]
d = List(b-1)
if d < c/4/b:
print("No")
else:
print("Yes") | a,b = map(int, input().split())
List = list(map(int, input().split()))
c = sum(List)
List = sorted(List)[::-1]
d = List[b-1]
if d < c/4/b:
print("No")
else:
print("Yes") | [
"assignment.value.change",
"call.arguments.change"
] | 484,498 | 484,499 | u442068463 | python |
p02718 | n,m = map(int, input().split())
i = list(map(int, input().split()))
a=[]
for x in range(n):
a.append(i[x])
a.sort(reverse = True)
if a[m-1] >= 1/4*m:
print("Yes")
else:
print("No") | n,m = map(int, input().split())
i = list(map(int, input().split()))
a=[]
for x in range(n):
a.append(i[x])
a.sort(reverse = True)
if a[m-1] >= sum(a)/(4*m):
print("Yes")
else:
print("No") | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"call.arguments.add"
] | 484,505 | 484,506 | u704459429 | python |
p02718 | n=input().split()
m=input().split()
N=n[0]
Nn=n[1]
l = 0
a = 0
for k in range(int(Nn)):
a+=int(m[k])
for i in range(int(N)):
if int(m[i])/(a/(int(Nn)*4)) >= 1:
l+=1
if l >= int(Nn) :
print("Yes")
else :
print("No") | n=input().split()
m=input().split()
N=n[0]
Nn=n[1]
l = 0
a = 0
for k in range(int(N)):
a+=int(m[k])
for i in range(int(N)):
if int(m[i])/(a/(int(Nn)*4)) >= 1:
l+=1
if l >= int(Nn) :
print("Yes")
else :
print("No") | [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 484,512 | 484,513 | u930723367 | python |
p02718 | import numpy as np
N,M=map(int,input().split())
A=np.array(list(map(int,input().split())))
print('Yes' if sum(A>=sum(A)/(4*M))>M else 'No') | import numpy as np
N,M=map(int,input().split())
A=np.array(list(map(int,input().split())))
print('Yes' if sum(A>=sum(A)/(4*M))>=M else 'No') | [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 484,525 | 484,526 | u239342230 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
s = sum(a)/(4*m)
if a[m-1]>s:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
s = sum(a)/(4*m)
if a[m-1]>=s:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,527 | 484,528 | u413165887 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
count=0
a=sum(A)
for i in range(N):
if A[i]>=a/(4*M):
count=count+1
print(count)
if count>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
count=0
a=sum(A)
for i in range(N):
if A[i]>=a/(4*M):
count=count+1
if count>=M:
print("Yes")
else:
print("No") | [
"call.remove"
] | 484,543 | 484,544 | u216888678 | python |
p02718 | n = [int(e) for e in input().split(" ")]
a = [int(e) for e in input().split(" ")]
c = 0
s = sum(a) / (4 * n[1])
for e_a in a:
if s < e_a:
c += 1
print("Yes" if n[1] <= c else "No") | n = [int(e) for e in input().split(" ")]
a = [int(e) for e in input().split(" ")]
c = 0
s = sum(a) / (4 * n[1])
for e_a in a:
if s <= e_a:
c += 1
print("Yes" if n[1] <= c else "No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,565 | 484,566 | u284744415 | python |
p02718 | n,m = list(map(int,input().split()))
votes = [int(x) for x in input().split()]
votesum = sum(votes)
st = votesum // 4 * m
count = 0
for v in votes :
if v >= st:
count += 1
print("Yes" if count == m else "No") | n,m = list(map(int,input().split()))
votes = [int(x) for x in input().split()]
votesum = sum(votes)
st = votesum / (4 * m)
count = 0
for v in votes :
if v >= st:
count += 1
print("Yes" if count >= m else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 484,573 | 484,574 | u999893056 | python |
p02718 | n,m = list(map(int,input().split()))
votes = [int(x) for x in input().split()]
votesum = sum(votes)
st = votesum // 4 * m
count = 0
for v in votes :
if v >= st:
count += 1
print("Yes" if count >= m else "No") | n,m = list(map(int,input().split()))
votes = [int(x) for x in input().split()]
votesum = sum(votes)
st = votesum / (4 * m)
count = 0
for v in votes :
if v >= st:
count += 1
print("Yes" if count >= m else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 484,575 | 484,574 | u999893056 | python |
p02718 | n,m = list(map(int,input().split()))
votes = [int(x) for x in input().split()]
votesum = sum(votes)
st = 1 // 4 * votesum
count = 0
for v in votes :
if v >= st:
count += 1
print("Yes" if count == m else "No") | n,m = list(map(int,input().split()))
votes = [int(x) for x in input().split()]
votesum = sum(votes)
st = votesum / (4 * m)
count = 0
for v in votes :
if v >= st:
count += 1
print("Yes" if count >= m else "No") | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 484,576 | 484,574 | u999893056 | python |
p02718 | n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
c = sum(a) // (4 * m)
ans = 0
for i in a:
if i >= c:
ans += 1
if ans < m:
print("No")
else:
print("Yes") | n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
c = sum(a) / (4 * m)
ans = 0
for i in a:
if i >= c:
ans += 1
if ans < m:
print("No")
else:
print("Yes") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 484,590 | 484,591 | u316401642 | python |
p02718 | N,M = map(int, input().split())
A = list(map(int, input().split()))
S = sum(A)
x = S/(4*m)
count = 0
for i in A:
if i >= x:
count += 1
if count>=M:
print("Yes")
else:
print("No") | N,M = map(int, input().split())
A = list(map(int, input().split()))
S = sum(A)
x = S/(4*M)
count = 0
for i in A:
if i >= x:
count += 1
if count>=M:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 484,594 | 484,595 | u875449556 | python |
p02718 | val1 = input().split()
val2 = input().split()
total = 0
for votes in val2:
total += int(votes)
thres = total * 1/4 / int(val1[1])
i = 0
for votes in val2:
if int(votes) >= thres:
i += 1
if i >= int(val1[1]):
print("yes")
else:
print("no")
| val1 = input().split()
val2 = input().split()
total = 0
for votes in val2:
total += int(votes)
thres = total * 1/4 / int(val1[1])
i = 0
for votes in val2:
if int(votes) >= thres:
i += 1
if i >= int(val1[1]):
print("Yes")
else:
print("No")
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 484,598 | 484,599 | u716243724 | python |
p02718 | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
total = sum(A)
result = []
for i in A:
if i > (total * (1/(4*M))):
result.append(i)
if len(result) < M:
print("No")
else:
print("Yes") | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
total = sum(A)
result = []
for i in A:
if i >= (total * (1/(4*M))):
result.append(i)
if len(result) < M:
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,613 | 484,614 | u579324544 | python |
p02718 | n, m = map(int, input().split())
list = list(map(int, input().split()))
list.sort(reverse=True)
if list[m-1] > sum(list)/(4*m):
print("Yes")
else:
print("No") | n, m = map(int, input().split())
list = list(map(int, input().split()))
list.sort(reverse=True)
if list[m-1] >= sum(list)/(4*m):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,630 | 484,631 | u892006633 | python |
p02718 | n, m = map(int, input().split())
list = list(map(int, input().split()))
list.sort(reverse=True)
print(list)
if list[m-1] > sum(list)/(4*m):
print("Yes")
else:
print("No") | n, m = map(int, input().split())
list = list(map(int, input().split()))
list.sort(reverse=True)
if list[m-1] >= sum(list)/(4*m):
print("Yes")
else:
print("No") | [
"call.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,632 | 484,631 | u892006633 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
total_votes = sum(A)
total_votes_checker = lambda M, i, total_votes: (False if i <= (1 / (4 * M)) * total_votes else True)
A = list(filter(lambda i: total_votes_checker(M, i, total_votes), A))
print("Yes") if len(A) >= M else print("No") | N, M = map(int, input().split())
A = list(map(int, input().split()))
total_votes = sum(A)
total_votes_checker = lambda M, i, total_votes: (False if i < (1 / (4 * M)) * total_votes else True)
A = list(filter(lambda i: total_votes_checker(M, i, total_votes), A))
print("Yes") if len(A) >= M else print("No") | [
"expression.operator.compare.change",
"assignment.value.change"
] | 484,659 | 484,660 | u619809897 | python |
p02718 | import math
N,M = map(int,input().split())
A=list(map(int, input().split()))
border = int(sum(A) / (4 * M))
B=[i for i in A if i > border]
if len(B) >= M:
print("Yes")
exit()
print("No") | import math
N,M = map(int,input().split())
A=list(map(int, input().split()))
border = sum(A)*(1/(4 * M))
B=[i for i in A if i >= border]
if len(B) >= M:
print("Yes")
exit()
print("No") | [
"call.remove",
"expression.operator.compare.change",
"assignment.value.change"
] | 484,674 | 484,675 | u555688810 | python |
p02718 | n, m = map(int,input().split())
a = list(map(int,input().split()))
s = sum(a) #sにaの総投票数
a.sort(reverse=True) #aを降順にソート
if a[m-1] >= s*(1/4):
print("Yes")
else:
print("No") | n, m = map(int,input().split())
a = list(map(int,input().split()))
s = sum(a) #sにaの総投票数
a.sort(reverse=True) #aを降順にソート
if a[m-1] >= s*(1/(4*m)):
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 484,676 | 484,677 | u502200133 | python |
p02718 | n, m = map(int,input().split())
a = list(map(int,input().split()))
s = sum(a) #sにaの総投票数
a.sort(reserve=True)#aを降順にソート
if a[m-1] >= s*(1/4):
print("Yes")
else:
print("No") | n, m = map(int,input().split())
a = list(map(int,input().split()))
s = sum(a) #sにaの総投票数
a.sort(reverse=True) #aを降順にソート
if a[m-1] >= s*(1/(4*m)):
print("Yes")
else:
print("No") | [
"identifier.change",
"call.arguments.change",
"call.arguments.keyword_argument.change",
"control_flow.branch.if.condition.change"
] | 484,678 | 484,677 | u502200133 | python |
p02718 | n,m = tuple(map(int,input().split()))
arr = [int(x) for x in input().split()]
total = sum(arr)
mm = total //(4*m)
mask = [ x >= mm for x in arr]
if sum(mask) >= m:
print("Yes")
else:
print("No")
| n,m = tuple(map(int,input().split()))
arr = [int(x) for x in input().split()]
total = sum(arr)
mm = total /(4*m)
mask = [ x >= mm for x in arr]
if sum(mask) >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 484,684 | 484,685 | u598888192 | python |
p02718 | import numpy as np
def main():
args1, args2 = input().rstrip().split(' '), input().rstrip().split(' ')
N, M = int(args1[0]), int(args1[1])
items = np.array([int(val) for val in args2])
items = np.sort(items)[::-1]
items_sum = np.sum(items)
bottom = items_sum / 4. / M
print(bottom)
... | import numpy as np
def main():
args1, args2 = input().rstrip().split(' '), input().rstrip().split(' ')
N, M = int(args1[0]), int(args1[1])
items = np.array([int(val) for val in args2])
items = np.sort(items)[::-1]
items_sum = np.sum(items)
bottom = items_sum / 4. / M
if(items[M-1] >= b... | [
"call.remove"
] | 484,699 | 484,700 | u334617936 | python |
p02718 | import numpy as np
def main():
args1, args2 = input().rstrip().split(' '), input().rstrip().split(' ')
N, M = int(args1[0]), int(args1[1])
items = np.array([int(val) for val in args2])
items = np.sort(items)[::-1]
items_sum = np.sum(items)
bottom = items_sum / 4. / M
if(items[M-1] > bo... | import numpy as np
def main():
args1, args2 = input().rstrip().split(' '), input().rstrip().split(' ')
N, M = int(args1[0]), int(args1[1])
items = np.array([int(val) for val in args2])
items = np.sort(items)[::-1]
items_sum = np.sum(items)
bottom = items_sum / 4. / M
if(items[M-1] >= b... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,701 | 484,700 | u334617936 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
b=a[::-1]
print(b)
if b[m-1]<sum(a)/(4*m):
print("No")
elif True:
print("Yes") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
b=a[::-1]
if b[m-1]<sum(a)/(4*m):
print("No")
elif True:
print("Yes") | [
"call.remove"
] | 484,708 | 484,709 | u998350437 | python |
p02718 | n,m = map(int,input().split())
s = list(map(int,input().split()))
s.sort(reverse = True)
s = s[:m]
if(s[-1]<sum(s)/(4*m)):
print("No")
else:
print("Yes")
| n,m = map(int,input().split())
s = list(map(int,input().split()))
s.sort(reverse = True)
s1 = s[:m]
if(s1[-1]<sum(s)/(4*m)):
print("No")
else:
print("Yes")
| [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 484,718 | 484,719 | u735996463 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
count = 0
sum_total = sum(A)
for i in range(N):
if (A[i] > (sum_total /(4*M))):
count=count+1
if count >= M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
count = 0
sum_total = sum(A)
for i in range(N):
if (A[i] >= (sum_total /(4*M))):
count=count+1
if count >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,720 | 484,721 | u236666830 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
count = 0
sum_total = sum(A)
for i in range(N):
if (A[i] > sum_total /(4*M)):
count=count+1
if count >= M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
count = 0
sum_total = sum(A)
for i in range(N):
if (A[i] >= (sum_total /(4*M))):
count=count+1
if count >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,722 | 484,721 | u236666830 | python |
p02718 | N, M = list(map(int, input().split()))
scores = list(map(int, input().split()))
at_least = sum(scores) / (4*M)
if len([ s for s in scores if s > at_least]) >= M:
print('Yes')
else:
print('No') | N, M = list(map(int, input().split()))
scores = list(map(int, input().split()))
at_least = sum(scores) / (4*M)
if len([ s for s in scores if s >= at_least]) >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,727 | 484,728 | u723711163 | python |
p02718 | N, M = list(map(int, input().split()))
scores = list(map(int, input().split()))
at_least = sum(scores) // (4*M)
if len([ s for s in scores if s > at_least]) >= M:
print('Yes')
else:
print('No') | N, M = list(map(int, input().split()))
scores = list(map(int, input().split()))
at_least = sum(scores) / (4*M)
if len([ s for s in scores if s >= at_least]) >= 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"
] | 484,729 | 484,728 | u723711163 | python |
p02718 | N, M = list(map(int, input().split()))
scores = list(map(int, input().split()))
at_least = sum(scores) // (4*M)
if len([ s for s in scores if s >= at_least]) >= M:
print('Yes')
else:
print('No') | N, M = list(map(int, input().split()))
scores = list(map(int, input().split()))
at_least = sum(scores) / (4*M)
if len([ s for s in scores if s >= at_least]) >= M:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 484,730 | 484,728 | u723711163 | python |
p02718 | n, m = map(int, input().split())
a = list(int(x) for x in input().split())
s = sum(a)
cnt = 0
for i in range(n):
if a[i] * 4 * m > s:
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No')
| # B - Popular Vote
n, m = map(int, input().split())
a = list(int(x) for x in input().split())
s = sum(a)
cnt = 0
for i in range(n):
if a[i] * 4 * m >= s:
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,736 | 484,737 | u141786930 | python |
p02718 | #ABC161B
import sys
N, M = map(int, sys.stdin.readline().split())
A = list(map(int, sys.stdin.readline().split()))
A.sort(reverse=True)
S = sum(A)
for a in A[:M+1]:
if a/S - 1/(4*M) <0:
print('No')
break
else:
print('Yes') | #ABC161B
import sys
N, M = map(int, sys.stdin.readline().split())
A = list(map(int, sys.stdin.readline().split()))
A.sort(reverse=True)
S = sum(A)
for a in A[:M]:
if a/S - 1/(4*M) <0:
print('No')
break
else:
print('Yes')
| [
"expression.operation.binary.remove"
] | 484,740 | 484,741 | u401452016 | python |
p02718 | #!/usr/bin/env python3
import sys
def main():
n,m = map(int,input().split())
a = list(map(int,input().split()))
t=sum(a)
a.sort()
a.reverse()
if a[m]>t/(4*m):
print("Yes")
else:
print("No")
main()
| #!/usr/bin/env python3
import sys
def main():
n,m = map(int,input().split())
a = list(map(int,input().split()))
t=sum(a)
a.sort()
a.reverse()
if a[m-1]>=t/(4*m):
print("Yes")
else:
print("No")
main()
| [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 484,774 | 484,775 | u846813901 | python |
p02718 | #!/usr/bin/env python3
import sys
def main():
n,m = map(int,input().split())
a = list(map(int,input().split()))
t=sum(a)
a.sort()
a.reverse()
if a[m]>=t/(4*m):
print("Yes")
else:
print("No")
main()
| #!/usr/bin/env python3
import sys
def main():
n,m = map(int,input().split())
a = list(map(int,input().split()))
t=sum(a)
a.sort()
a.reverse()
if a[m-1]>=t/(4*m):
print("Yes")
else:
print("No")
main()
| [
"control_flow.branch.if.condition.change"
] | 484,776 | 484,775 | u846813901 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(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.sort(reverse=True)
suma = sum(a)
if a[m - 1] >= suma / (4 * m):
print('Yes')
else:
print('No')
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 484,777 | 484,778 | u517621096 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
suma = sum(a)
if a[n - 1] >= suma * (4 * m):
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
suma = sum(a)
if a[m - 1] >= suma / (4 * m):
print('Yes')
else:
print('No')
| [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 484,779 | 484,778 | u517621096 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
suma = sum(a)
if a[n - 1] <= suma*(4*m):
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
suma = sum(a)
if a[m - 1] >= suma / (4 * m):
print('Yes')
else:
print('No')
| [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change",
"expression.operator.arithmetic.change"
] | 484,780 | 484,778 | u517621096 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int, input().split()))
x = sum(A) // (4*m)
cnt = 0
for a in A:
if a < x:
continue
cnt += 1
ans = 'Yes' if cnt >= m else 'No'
print(ans) | n,m = map(int,input().split())
A = list(map(int, input().split()))
x = sum(A) / (4*m)
cnt = 0
for a in A:
if a < x:
continue
cnt += 1
ans = 'Yes' if cnt >= m else 'No'
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 484,781 | 484,782 | u131944095 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int, input().split()))
x = sum(A) // (4*m)
cnt = 0
for a in A:
if a >= x:
cnt += 1
ans = 'Yes' if cnt >= m else 'No'
print(ans) | n,m = map(int,input().split())
A = list(map(int, input().split()))
x = sum(A) / (4*m)
cnt = 0
for a in A:
if a < x:
continue
cnt += 1
ans = 'Yes' if cnt >= m else 'No'
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.continue.add"
] | 484,783 | 484,782 | u131944095 | python |
p02718 | n, m = map(int, input().split())
li_a = list(map(int, input().split()))
s = sum(li_a)
counter = 0
for a in li_a:
if a > (s / (4 * m)):
counter += 1
if m <= counter:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
li_a = list(map(int, input().split()))
s = sum(li_a)
counter = 0
for a in li_a:
if a >= (s / (4 * m)):
counter += 1
if m <= counter:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,786 | 484,787 | u126823513 | python |
p02718 | N,M = map(int,input().split())
A_list = list(map(int,input().split()))
num = sum(A_list)/(4*M)
A2_list = [s for s in A_list if s >= int(num)+1]
if len(A2_list)>=M:
print("Yes")
else:
print("No") | N,M = map(int,input().split())
A_list = list(map(int,input().split()))
num = sum(A_list)/(4*M)
A2_list = [s for s in A_list if s >= num]
if len(A2_list)>=M:
print("Yes")
else:
print("No") | [
"call.remove",
"expression.operation.binary.remove"
] | 484,790 | 484,791 | u538537141 | python |
p02718 | n, m = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
print('No' if sum([i for i in a if sum(a)/(4*m) <= i]) < m else 'Yes') | n, m = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
print('No' if len([i for i in a if sum(a)/(4*m) <= i]) < m else 'Yes') | [
"identifier.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 484,827 | 484,828 | u047918169 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a=sorted(a,reverse=True)
A=[]
s=sum(a)
c=s/(4*m)
for i in range(m):
if a[i]>c:
A.append(a[i])
print("Yes" if len(A)==m else "No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a=sorted(a,reverse=True)
A=[]
s=sum(a)
c=s/(4*m)
for i in range(m):
if a[i]>=c:
A.append(a[i])
print("Yes" if len(A)==m else "No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,868 | 484,869 | u015467545 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
sum_a = sum(a)
# print(a)
ans = 0
for i in range(n):
if a[i] > sum_a/(4*m):
ans = i+1
# print(ans)
# print(sum_a/(4*m))
if ans >=m:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
sum_a = sum(a)
# print(a)
ans = 0
for i in range(n):
if a[i] >= sum_a/(4*m):
ans = i+1
# print(ans)
# print(sum_a/(4*m))
if ans >=m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,872 | 484,873 | u756988562 | 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(n):
if a[i] > sum_a/(4*m):
ans = i
# print(sum_a/(4*m))
if ans >=m:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
sum_a = sum(a)
# print(a)
ans = 0
for i in range(n):
if a[i] >= sum_a/(4*m):
ans = i+1
# print(ans)
# print(sum_a/(4*m))
if ans >=m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,874 | 484,873 | u756988562 | python |
p02718 | N, M = map(int, input().split())
A = sorted(map(int, input().split()), reverse=True)
for i in range(M):
if A[i] < 1/(4*M):
print("No")
break
elif i == M-1:
print("Yes") | N, M = map(int, input().split())
A = sorted(map(int, input().split()), reverse=True)
for i in range(M):
if A[i] < sum(A)/(4*M):
print("No")
break
elif i == M-1:
print("Yes") | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 484,893 | 484,894 | u024442309 | python |
p02718 | url = "https://atcoder.jp/contests/abc161/tasks/abc161_b"
def main():
n, m = list(map(int, input().split()))
n_li = list(map(int, input().split()))
n_li = sorted(n_li, reverse=True)
all_num = sum(n_li)
for i in range(1, m + 1):
if all_num // (4 * m) > n_li[i - 1]:
print('No')
... | url = "https://atcoder.jp/contests/abc161/tasks/abc161_b"
def main():
n, m = list(map(int, input().split()))
n_li = list(map(int, input().split()))
n_li = sorted(n_li, reverse=True)
all_num = sum(n_li)
for i in range(1, m + 1):
if all_num / (4 * m) > n_li[i - 1]:
print('No')
... | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 484,895 | 484,896 | u755180064 | python |
p02718 | url = "https://atcoder.jp/contests/abc161/tasks/abc161_b"
def main():
n, m = list(map(int, input().split()))
n_li = list(map(int, input().split()))
n_li = sorted(n_li, reverse=True)
all = sum(n_li)
for i in range(1, m + 1):
if all // (4 * m) >= n_li[i - 1]:
print('No')
... | url = "https://atcoder.jp/contests/abc161/tasks/abc161_b"
def main():
n, m = list(map(int, input().split()))
n_li = list(map(int, input().split()))
n_li = sorted(n_li, reverse=True)
all_num = sum(n_li)
for i in range(1, m + 1):
if all_num / (4 * m) > n_li[i - 1]:
print('No')
... | [
"assignment.variable.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,897 | 484,896 | u755180064 | python |
p02718 | url = "https://atcoder.jp/contests/abc161/tasks/abc161_b"
def main():
n, m = list(map(int, input().split()))
n_li = list(map(int, input().split()))
n_li = sorted(n_li, reverse=True)
all = sum(n_li)
for i in range(1, m + 1):
if all / (4 * m) >= n_li[i - 1]:
print('No')
... | url = "https://atcoder.jp/contests/abc161/tasks/abc161_b"
def main():
n, m = list(map(int, input().split()))
n_li = list(map(int, input().split()))
n_li = sorted(n_li, reverse=True)
all_num = sum(n_li)
for i in range(1, m + 1):
if all_num / (4 * m) > n_li[i - 1]:
print('No')
... | [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 484,899 | 484,896 | u755180064 | python |
p02718 | url = "https://atcoder.jp/contests/abc161/tasks/abc161_b"
def main():
n, m = list(map(int, input().split()))
n_li = list(map(int, input().split()))
n_li = sorted(n_li, reverse=True)
all = sum(n_li)
for i in range(1, m + 1):
if all // (4 * m) > n_li[i]:
print('No')
ex... | url = "https://atcoder.jp/contests/abc161/tasks/abc161_b"
def main():
n, m = list(map(int, input().split()))
n_li = list(map(int, input().split()))
n_li = sorted(n_li, reverse=True)
all_num = sum(n_li)
for i in range(1, m + 1):
if all_num / (4 * m) > n_li[i - 1]:
print('No')
... | [
"assignment.variable.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change",
"misc.off_by_one"
] | 484,900 | 484,896 | u755180064 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
A = sum(a)
l = a.sort(reverse=True)
if l[m-1] >= A/(4*m):
print("Yes")
else:
print("No") | n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
A = sum(a)
a.sort(reverse=True)
if a[m-1] >= A/(4*m):
print("Yes")
else:
print("No") | [
"call.add",
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 484,901 | 484,902 | u141419468 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
x=sum(A)
if sum([i if a>=x/4/M else 0 for a in A])>=M:
print('Yes')
else:
print('No') | N,M=map(int,input().split())
A=list(map(int,input().split()))
x=sum(A)
if sum([1 if a>=x/4/M else 0 for a in A])>=M:
print('Yes')
else:
print('No') | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 484,924 | 484,925 | u204616996 | python |
p02718 | str1 = input()
A = input()
list1 = str1.split()
list2 = A.split()
N = list1[0]
M = list1[1]
M_count = 0
all = 0
for i in range(len(list2)):
all = all + int(list2[i])
#print("all" + str(all))
judge = 1/(4*int(M)) * all
#print("judge" + str(judge))
for i in list2:
#print("list2 = "+ i )
if int(i) >= jud... | str1 = input()
A = input()
list1 = str1.split()
list2 = A.split()
N = list1[0]
M = list1[1]
M_count = 0
all = 0
for i in range(len(list2)):
all = all + int(list2[i])
#print("all" + str(all))
judge = 1/(4*int(M)) * all
#print("judge" + str(judge))
for i in list2:
#print("list2 = "+ i )
if int(i) >= jud... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 484,928 | 484,929 | u258355189 | python |
p02718 | n, m = map(int, input().split())
a=[int(x) for x in input().split()]
a=sorted(a, reverse=True)
c=0
anch=sum(a)//(4*m)
for i in a:
if i>=anch:
c+=1
else:
break
if c>=m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a=[int(x) for x in input().split()]
a=sorted(a, reverse=True)
c=0
anch=sum(a)/(4*m)
for i in a:
if i>=anch:
c+=1
else:
break
if c>=m:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 484,933 | 484,934 | u810092294 | python |
p02718 | k,m = map(int, input().split())
a = list(map(int, input().split()))
# リストaの総投票数をsに格納する
s = sum(a)
# リストaを降順にソートする
a.sort(reverse=True)
if a[m] >= s*(1/4/m):
print('Yes')
else:
print('No') | k,m = map(int, input().split())
a = list(map(int, input().split()))
# リストaの総投票数をsに格納する
s = sum(a)
# リストaを降順にソートする
a.sort(reverse=True)
if a[m-1] >= s*(1/4/m):
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 484,946 | 484,947 | u697386253 | python |
p02718 | N, M = map(int, input().split())
votes = list(map(int, input().split()))
total_votes = sum(votes)
threshold = total_votes / (4*M)
temp = 0
for v in votes:
if v > threshold:
temp += 1
if temp >= M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
votes = list(map(int, input().split()))
total_votes = sum(votes)
threshold = total_votes / (4*M)
temp = 0
for v in votes:
if v >= threshold:
temp += 1
if temp >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,955 | 484,956 | u254634413 | python |
p02718 | N, M = map(int, input().split())
votes = list(map(int, input().split()))
total_votes = sum(votes)
threshold = total_votes // (4*M)
temp = 0
for v in votes:
if v > threshold:
temp += 1
if temp >= M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
votes = list(map(int, input().split()))
total_votes = sum(votes)
threshold = total_votes / (4*M)
temp = 0
for v in votes:
if v >= threshold:
temp += 1
if temp >= 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"
] | 484,957 | 484,956 | u254634413 | python |
p02718 |
n,m=input().split()
n,m=[int(n),int(m)]
a=list(map(int, input().strip().split()))
sum=0
for i in range(len(a)):
sum=sum+a[i]
b=sorted(a)
if b[n-m]>sum/4/m:
print("Yes")
else:
print("No")
| n,m=input().split()
n,m=[int(n),int(m)]
a=list(map(int, input().strip().split()))
sum=0
for i in range(len(a)):
sum=sum+a[i]
b=sorted(a)
if b[n-m]>=sum/4/m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 484,964 | 484,965 | u132878037 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
sumA = sum(A)
filteredA = list(filter(lambda x: x < (sumA / (4*M)), A))
if M <= len(filteredA):
print('Yes')
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
sumA = sum(A)
filteredA = list(filter(lambda x: x >= (sumA / (4*M)), A))
if M <= len(filteredA):
print('Yes')
else:
print("No")
| [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 484,983 | 484,984 | u374082254 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
sumA = sum(A)
filteredA = list(filter(lambda x: x < (sumA / (4*M)), A))
if M >= len(filteredA):
print('Yes')
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
sumA = sum(A)
filteredA = list(filter(lambda x: x >= (sumA / (4*M)), A))
if M <= len(filteredA):
print('Yes')
else:
print("No")
| [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change",
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 484,985 | 484,984 | u374082254 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
cnt=sum(a)//(4*m)
tmp=0
for i in range(len(a)):
if a[i]>=cnt:
tmp+=1
if tmp>=m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
cnt=sum(a)/(4*m)
tmp=0
for i in range(len(a)):
if a[i]>=cnt:
tmp+=1
if tmp>=m:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 484,991 | 484,992 | u511379665 | python |
p02718 | n, m = map(int, input().split())
l = list(map(int, input().split()))
count = 0
for i in range(n):
if l[i] >= int(sum(l) * (1 / (4 * m))):
count += 1
if count >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
l = list(map(int, input().split()))
count = 0
for i in range(n):
if l[i] >= sum(l) * (1 / (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"
] | 484,993 | 484,994 | u026862065 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
a=sum(A)
A.sort()
if A[N-M-1]<a/(4*M):
print("No")
else:
print("Yes") | N,M=map(int,input().split())
A=list(map(int,input().split()))
a=sum(A)
A.sort()
if A[N-M]<a/(4*M):
print("No")
else:
print("Yes") | [
"expression.operation.binary.remove"
] | 485,003 | 485,004 | u265506056 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
a=sum(A)
A.sort()
if A[N-M-1]<a//(4*M):
print("No")
else:
print("Yes") | N,M=map(int,input().split())
A=list(map(int,input().split()))
a=sum(A)
A.sort()
if A[N-M]<a/(4*M):
print("No")
else:
print("Yes") | [
"expression.operation.binary.remove",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 485,005 | 485,004 | u265506056 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
min_num = s//(4*m)
res = "No"
count = 0
for x in a:
if x > min_num:
count += 1
if count >= m:
res = "Yes"
break
print(res) | n,m = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
min_num = float(s)/(4*m)
res = "No"
count = 0
for x in a:
if x >= min_num:
count += 1
if count >= m:
res = "Yes"
break
print(res) | [
"call.add",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,006 | 485,007 | u250664216 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
min_num = s//(4*m)
res = "No"
count = 0
for x in a:
if x >= min_num:
count += 1
if count >= m:
res = "Yes"
break
print(res) | n,m = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
min_num = float(s)/(4*m)
res = "No"
count = 0
for x in a:
if x >= min_num:
count += 1
if count >= m:
res = "Yes"
break
print(res) | [
"call.add",
"assignment.value.change",
"expression.operation.binary.change"
] | 485,008 | 485,007 | u250664216 | python |
p02718 | N,M = map(int,input().split())
#A = list(input().split())
A =list(map(int, input().split()))
B = sorted(A)[::-1]
T=0
for i in range(N):
T=T+B[i]
#print(B)
#print(B[M-1])
#print('total',T)
#print(B[M-1])
if B[M-1]>T/4/M:
print('Yes')
else:
print('No')
| N,M = map(int,input().split())
#A = list(input().split())
A =list(map(int, input().split()))
B = sorted(A)[::-1]
T=0
for i in range(N):
T=T+B[i]
#print(B)
#print(B[M-1])
#print('total',T)
#print(B[M-1])
if B[M-1]>=T/4/M:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,027 | 485,028 | u914797917 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
ma=sum(a)
a.sort()
for i in range(m):
if(a[i]<ma/(4*m)):
print("No")
exit()
print("Yes") | n,m=map(int,input().split())
a=list(map(int,input().split()))
ma=sum(a)
a.sort()
for i in range(m):
if(a[-i-1]<ma/(4*m)):
print("No")
exit()
print("Yes")
| [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 485,042 | 485,043 | u983367697 | python |
p02718 | def popularVote():
n, m = list(map(int, input().split()))
item_votes = list(map(int, input().split()))
total = sum(item_votes)
selected = []
isSelected = False
req = 1 / (4 * m)
for item in item_votes:
if item / total >= req:
selected.append(item)
if len(select... | def popularVote():
n, m = list(map(int, input().split()))
item_votes = list(map(int, input().split()))
total = sum(item_votes)
selected = []
isSelected = False
req = 1 / (4 * m)
for item in item_votes:
if item / total >= req:
selected.append(item)
if len(select... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 485,046 | 485,045 | u045529647 | python |
p02718 | def popularVote():
m, n = list(map(int, input().split()))
item_votes = list(map(int, input().split()))
total = sum(item_votes)
selected = []
isSelected = False
req = 1 / (4 * m)
for item in item_votes:
if item / total > req:
selected.append(item)
if len(selecte... | def popularVote():
n, m = list(map(int, input().split()))
item_votes = list(map(int, input().split()))
total = sum(item_votes)
selected = []
isSelected = False
req = 1 / (4 * m)
for item in item_votes:
if item / total >= req:
selected.append(item)
if len(select... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 485,047 | 485,045 | u045529647 | python |
p02718 | import numpy as np
tmp = input().split(" ")
allItem, trendingItem = int(tmp[0]), int(tmp[1])
votes = input().split(" ")
votesInt = np.asarray([int(s) for s in votes])
votesTotal = np.sum(votesInt)
standard = votesTotal // (4 * trendingItem) + 1
clearList = votesInt[votesInt >= standard]
result = 'Yes' if len(clear... | import numpy as np
tmp = input().split(" ")
allItem, trendingItem = int(tmp[0]), int(tmp[1])
votes = input().split(" ")
votesInt = np.asarray([int(s) for s in votes])
votesTotal = np.sum(votesInt)
standard = votesTotal / (4 * trendingItem)
clearList = votesInt[votesInt >= standard]
result = 'Yes' if len(clearList)... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 485,054 | 485,055 | u946404093 | python |
p02718 | import numpy as np
tmp = input().split(" ")
allItem, trendingItem = int(tmp[0]), int(tmp[1])
votes = input().split(" ")
votesInt = np.asarray([int(s) for s in votes])
votesTotal = np.sum(votesInt)
standard = votesTotal // (4 * trendingItem)
clearList = votesInt[votesInt >= standard]
result = 'Yes' if len(clearList... | import numpy as np
tmp = input().split(" ")
allItem, trendingItem = int(tmp[0]), int(tmp[1])
votes = input().split(" ")
votesInt = np.asarray([int(s) for s in votes])
votesTotal = np.sum(votesInt)
standard = votesTotal / (4 * trendingItem)
clearList = votesInt[votesInt >= standard]
result = 'Yes' if len(clearList)... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 485,056 | 485,055 | u946404093 | python |
p02718 | import numpy as np
tmp = input().split(" ")
allItem, trendingItem = int(tmp[0]), int(tmp[1])
votes = input().split(" ")
votesInt = np.asarray([int(s) for s in votes])
votesTotal = np.sum(votesInt)
standard = votesTotal // (4 * trendingItem)
clearList = votesInt[votesInt > standard]
result = 'Yes' if len(clearList)... | import numpy as np
tmp = input().split(" ")
allItem, trendingItem = int(tmp[0]), int(tmp[1])
votes = input().split(" ")
votesInt = np.asarray([int(s) for s in votes])
votesTotal = np.sum(votesInt)
standard = votesTotal / (4 * trendingItem)
clearList = votesInt[votesInt >= standard]
result = 'Yes' if len(clearList)... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"variable_access.subscript.index.change"
] | 485,057 | 485,055 | u946404093 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
total = sum(a)
count = 0
valid = total / (4 * m)
for i in a:
if i > valid:
count += 1
if count >= m:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
total = sum(a)
count = 0
valid = total / (4 * m)
for i in a:
if i >= valid:
count += 1
if count >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,060 | 485,061 | u826785572 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
total = sum(a)
count = 0
valid = total / (4 * m)
for i in a:
if i > valid:
count += 1
if count > m:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
total = sum(a)
count = 0
valid = total / (4 * m)
for i in a:
if i >= valid:
count += 1
if count >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,062 | 485,061 | u826785572 | python |
p02718 | N,M=map(int,input().split())
A = list(map(int, input().split()))
select=0
for i in range(len(A)-1):
if A[i]>sum(A)*(1/(4*M)):
select+=1
def ans(M,select):
if M>=select:
return 'Yes'
else:
return 'No'
print(ans(M,select)) | N,M=map(int,input().split())
A = list(map(int, input().split()))
select=0
for i in range(len(A)):
if A[i]>=sum(A)*(1/(4*M)):
select+=1
def ans(M,select):
if M<=select:
return 'Yes'
else:
return 'No'
print(ans(M,select)) | [
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"misc.opposites"
] | 485,095 | 485,096 | u133356863 | python |
p02718 | N,M=map(int,input().split())
A = list(map(int, input().split()))
select=0
for i in range(N-1):
if A[i]>sum(A)*(1/(4*M)):
select+=1
def ans(M,select):
if M==select:
return 'Yes'
else:
return 'No'
print(ans(M,select)) | N,M=map(int,input().split())
A = list(map(int, input().split()))
select=0
for i in range(len(A)):
if A[i]>=sum(A)*(1/(4*M)):
select+=1
def ans(M,select):
if M<=select:
return 'Yes'
else:
return 'No'
print(ans(M,select)) | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,097 | 485,096 | u133356863 | python |
p02718 | N,M=map(int,input().split())
A = list(map(int, input().split()))
select=0
for i in range(N-1):
if A[i]>sum(A)*(1/(4*M)):
select+=1
def ans(M,select):
if M<=select:
return 'Yes'
else:
return 'No'
print(ans(M,select))
| N,M=map(int,input().split())
A = list(map(int, input().split()))
select=0
for i in range(len(A)):
if A[i]>=sum(A)*(1/(4*M)):
select+=1
def ans(M,select):
if M<=select:
return 'Yes'
else:
return 'No'
print(ans(M,select)) | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,098 | 485,096 | u133356863 | python |
p02718 | from sys import stdin
N, M = [int(_) for _ in stdin.readline().rstrip().split()]
A = sorted([int(_) for _ in stdin.readline().rstrip().split()], reverse=True)
if A[M-1] >= sum(A) // (4*M):
print('Yes')
else:
print('No') | from sys import stdin
N, M = [int(_) for _ in stdin.readline().rstrip().split()]
A = sorted([int(_) for _ in stdin.readline().rstrip().split()], 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"
] | 485,104 | 485,105 | u724742135 | python |
p02718 | import bisect
N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse = True)
thr = sum(A) / (4*M)
ans = 0
for i in A:
if i >= thr:
ans+=1
else:
break
if ans > M:
print('Yes')
else:
print('No') | import bisect
N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse = True)
thr = sum(A) / (4*M)
ans = 0
for i in A:
if i >= thr:
ans+=1
else:
break
if ans >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,108 | 485,109 | u990300472 | python |
p02718 | import numpy as np
N, M = map(int, input().split())
As = np.array(input().split(), dtype=int)
s = As.sum()
th = s / (4 * M)
print("Yes") if (As > th).sum() >= M else print("No") | import numpy as np
N, M = map(int, input().split())
As = np.array(input().split(), dtype=int)
s = As.sum()
th = s / (4 * M)
print("Yes") if (As >= th).sum() >= M else print("No") | [
"expression.operator.compare.change"
] | 485,123 | 485,124 | u978933721 | python |
p02718 | size, comp = input().split()
size = int(size)
comp = int(comp)
vote_list = list(map(int, input().split()))
data = len(list(filter(lambda x: x >(sum(vote_list)/(4*comp)), vote_list)))
print("Yes" if data>=comp else "No")
| size, comp = input().split()
size = int(size)
comp = int(comp)
vote_list = list(map(int, input().split()))
data = len(list(filter(lambda x: x >=(sum(vote_list)/(4*comp)), vote_list)))
print("Yes" if data>=comp else "No")
| [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 485,144 | 485,145 | u037601040 | python |
p02718 | import numpy as np
# 入力
N,M = map(int,input().split())
A = np.array([int(x) for x in input().split()])
S = sum(A)/(4*M)
if np.count_nonzero(A>S) >= M:
print("Yes")
else:
print("No") | import numpy as np
# 入力
N,M = map(int,input().split())
A = np.array([int(x) for x in input().split()])
S = sum(A)/(4*M)
if np.count_nonzero(A>=S) >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,151 | 485,152 | u471593927 | python |
p02718 | import numpy as np
# 入力
N,M = map(int,input().split())
A = np.array([int(x) for x in input().split()])
S = sum(A)/(4*M)
if np.count_nonzero(A>S):
print("Yes")
else:
print("No") | import numpy as np
# 入力
N,M = map(int,input().split())
A = np.array([int(x) for x in input().split()])
S = sum(A)/(4*M)
if np.count_nonzero(A>=S) >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,153 | 485,152 | u471593927 | python |
p02718 | i = input().split()
n = int(i[0])
m = int(i[1])
i2 = input().split()
a = [int(i2) for i2 in i2]
m2 = sum(a) // (4 * m)
c = sum([1 if i3 >= m2 else 0 for i3 in a])
print("Yes" if c >= m else "No", end='') | i = input().split()
n = int(i[0])
m = int(i[1])
i2 = input().split()
a = [int(i2) for i2 in i2]
m2 = sum(a) / (4 * m)
c = sum([1 if i3 >= m2 else 0 for i3 in a])
print("Yes" if c >= m else "No", end='') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 485,154 | 485,155 | u530100465 | python |
p02718 | n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) > sum/(4*int(m)):
yy+=1
if yy <= int(m):
print("No")
else:
print("Yes") | n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy < int(m):
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,182 | 485,183 | u934566927 | python |
p02718 | n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy <= int(m):
print("No")
else:
print("Yes") | n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy < int(m):
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,184 | 485,183 | u934566927 | python |
p02718 | n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy >= int(m):
print("No")
else:
print("Yes")
| n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy < int(m):
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,185 | 485,183 | u934566927 | python |
p02718 | n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum//(4*int(m)):
yy+=1
if yy >= int(m):
print("No")
else:
print("Yes")
| n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy < int(m):
print("No")
else:
print("Yes") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 485,186 | 485,183 | u934566927 | python |
p02718 | n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy <= int(m):
print("No")
else:
print("Yes")
| n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy < int(m):
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 485,187 | 485,183 | u934566927 | python |
p02718 | n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(n)):
yy+=1
if yy <= int(m):
print("No")
else:
print("Yes")
| n, m = input().split()
b = input().split()
sum = 0
for x in b:
sum += int(x)
yy=0
for y in b:
if int(y) >= sum/(4*int(m)):
yy+=1
if yy < int(m):
print("No")
else:
print("Yes") | [
"identifier.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 485,188 | 485,183 | u934566927 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.