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 = map(int, input().split())
ans = 0
for i in range(n):
if a[i] >= sum(a)*(1/(4*m)):
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
if a[i] >= sum(a)*(1/(4*m)):
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | [
"call.add",
"call.arguments.change"
] | 481,814 | 481,815 | u720124072 | python |
p02718 | n,m=map(int,input().split())
li=list(map(int,input().split()))
count=0
for i in li:
if i >= sum(li)*1/4*m : count += 1
if count >= m: print("Yes")
else:print("No") | n,m=map(int,input().split())
li=list(map(int,input().split()))
count=0
for i in li:
if i >= sum(li)/(4*m) : count += 1
if count >= m: print("Yes")
else:print("No") | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 481,818 | 481,819 | u609176437 | python |
p02718 | n,m = map(int, input().split())
hyou= list(map(int,input().split()))
all = sum(hyou)
min = all / 4 / m
erabu = 0
for i in range(n):
if hyou[i]>min:
erabu += 1
print("Yes" if erabu >= m else "No") | n,m = map(int, input().split())
hyou= list(map(int,input().split()))
all = sum(hyou)
min = all / 4 / m
erabu = 0
for i in range(n):
if hyou[i] >= min:
erabu += 1
print("Yes" if erabu >= m else "No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,825 | 481,826 | u809819902 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
cnt = 0
for val in a:
if val > 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 val in a:
if val >= 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,827 | 481,828 | u542774596 | python |
p02718 | import sys
input = sys.stdin.readline
n,m = map(int,input().split())
L=list(map(int,input().split()))
mx = sum(L)
mn = mx/(4*m)
L.sort(reverse = True)
count = 0
for i in range(n):
if L[i]>mn:
count+=1
if count ==m:
print('Yes')
sys.exit()
print('No')
sys.exit()
| import sys
input = sys.stdin.readline
n,m = map(int,input().split())
L=list(map(int,input().split()))
mx = sum(L)
mn = mx/(4*m)
L.sort(reverse = True)
count = 0
for i in range(n):
if L[i]>=mn:
count+=1
if count ==m:
print('Yes')
sys.exit()
print('No')
sys.exit()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,838 | 481,839 | u505564549 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
x=sum(a)//(4*m)
c=0
for i in range(n):
if a[i]>=x:
c+=1
if c<m:
print('No')
else:
print('Yes') | n,m=map(int,input().split())
a=list(map(int,input().split()))
x=sum(a)/(4*m)
c=0
for i in range(n):
if a[i]>=x:
c+=1
if c<m:
print('No')
else:
print('Yes') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 481,848 | 481,849 | u957957759 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
x=sum(a)//4*m
c=0
for i in range(n):
if a[i]>=x:
c+=1
if c<m:
print('No')
else:
print('Yes') | n,m=map(int,input().split())
a=list(map(int,input().split()))
x=sum(a)/(4*m)
c=0
for i in range(n):
if a[i]>=x:
c+=1
if c<m:
print('No')
else:
print('Yes') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 481,850 | 481,849 | u957957759 | python |
p02718 | n , m = map(int,input().split())
a = list(map(int,input().split()))
can_choice_item_list =[]
for item in a:
if item < 1 / (4 * m):
pass
else:
can_choice_item_list.append(item)
if m <= len(can_choice_item_list):
print('Yes')
else:
print('No') | n , m = map(int,input().split())
a = list(map(int,input().split()))
can_choice_item_list =[]
for item in a:
if item < sum(a) / (4 * m):
pass
else:
can_choice_item_list.append(item)
if m <= len(can_choice_item_list):
print('Yes')
else:
print('No') | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 481,859 | 481,860 | u049182844 | python |
p02718 | n , m = map(int,input().split())
a = list(map(int,input().split()))
can_choice_item_list =[]
for item in a:
if item < 1 / (4 * m):
pass
else:
can_choice_item_list.append(item)
if m < len(can_choice_item_list):
print('Yes')
else:
print('No') | n , m = map(int,input().split())
a = list(map(int,input().split()))
can_choice_item_list =[]
for item in a:
if item < sum(a) / (4 * m):
pass
else:
can_choice_item_list.append(item)
if m <= len(can_choice_item_list):
print('Yes')
else:
print('No') | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add",
"expression.operator.compare.change"
] | 481,861 | 481,860 | u049182844 | python |
p02718 | 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')
| 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')
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,866 | 481,867 | u447456419 | 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('No')
else:
print('Yes')
| 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')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 481,868 | 481,867 | u447456419 | python |
p02718 | #inport
import sys
import numpy as np
from collections import deque
#input
N,M = [int(x) for x in sys.stdin.readline().split()]
g = [int(x) for x in sys.stdin.readline().split()]
g = np.array(g)
#print(g)
#print(1/4/M*np.sum(g))
#print(g >= 1/4/M*np.sum(g))
if np.count_nonzero(g >= 1/4/M*np.sum(g)) > M:
print('... | #inport
import sys
import numpy as np
from collections import deque
#input
N,M = [int(x) for x in sys.stdin.readline().split()]
g = [int(x) for x in sys.stdin.readline().split()]
g = np.array(g)
#print(g)
#print(1/4/M*np.sum(g))
#print(g >= 1/4/M*np.sum(g))
if np.count_nonzero(g >= 1/4/M*np.sum(g)) >= M:
print(... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,877 | 481,878 | u545376686 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
select = 0
a.sort(reverse=True)
for i in range(m):
if a[i]/sum(a) > 1/(4*m):
select = 1
else:
select = 0
if select == 1:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
select = 0
a.sort(reverse=True)
for i in range(m):
if a[i]/sum(a) >= 1/(4*m):
select = 1
else:
select = 0
if select == 1:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,881 | 481,882 | u843768197 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
select = 0
a.sort(reverse=True)
for i in range(m+1):
if a[i]/sum(a) > 1/(4*m):
select = 1
else:
select = 0
if select == 1:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
select = 0
a.sort(reverse=True)
for i in range(m):
if a[i]/sum(a) >= 1/(4*m):
select = 1
else:
select = 0
if select == 1:
print('Yes')
else:
print('No')
| [
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,883 | 481,882 | u843768197 | python |
p02718 | n,m = map(int,input().split())
a=list(map(int,input().split()))
a_sum=sum(a)
a_sort=sorted(a)
for i in range(m):
if a_sort[i]<(a_sum)/4/m:
print("No")
break
else:
print("Yes") | n,m = map(int,input().split())
a=list(map(int,input().split()))
a_sum=sum(a)
a_sort=sorted(a,reverse=True)
for i in range(m):
if a_sort[i]<(a_sum)/4/m:
print("No")
break
else:
print("Yes") | [
"call.arguments.add"
] | 481,887 | 481,888 | u944325914 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
b = sum(A)/(4*m)
a = 0
print(b)
for i in range(n):
if A[i] >= b:
a += 1
if a >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
A = list(map(int, input().split()))
b = sum(A)/(4*m)
a = 0
#print(b)
for i in range(n):
if A[i] >= b:
a += 1
if a >= m:
print("Yes")
else:
print("No") | [
"call.remove"
] | 481,892 | 481,893 | u011453891 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a = sorted(a, reverse=True)
a_sum = sum(a)
ans = 'Yes'
for i, c in enumerate(a[:m]):
if c < a_sum / (4 * (i + 1)):
ans = 'No'
print(ans)
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a = sorted(a, reverse=True)
a_sum = sum(a)
ans = 'Yes'
for i, c in enumerate(a[:m]):
if c < a_sum / (4 * m):
ans = 'No'
print(ans)
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 481,896 | 481,897 | u106095117 | python |
p02718 | N,M = (int(X) for X in input().split())
A = sorted([int(X) for X in input().split()],reverse=True)
if A[M-1]/sum(A) > 1/(4*M):
print('Yes')
else:
print('No') | N,M = (int(X) for X in input().split())
A = sorted([int(X) for X in input().split()],reverse=True)
if A[M-1]/sum(A) >= 1/(4*M):
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,914 | 481,915 | u955248595 | 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,916 | 481,917 | u616719454 | python |
p02718 | import sys
N, M = map(int, input().split())
A = list(map(int, input().split()))
p = sum(A) // ( 4 * M )
A = sorted(A, reverse=True)
for i in range(M):
if p > A[i]:
print("No")
sys.exit()
print("Yes") | import sys
N, M = map(int, input().split())
A = list(map(int, input().split()))
p = sum(A) / ( 4 * M )
A = sorted(A, reverse=True)
for i in range(M):
if p > A[i]:
print("No")
sys.exit()
print("Yes") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 481,928 | 481,929 | u694233896 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
num=0
for i in A:
if i >= sum(A)//(4*M):
num += 1
if M <= num:
print('Yes')
else:
print('No') | N,M=map(int,input().split())
A=list(map(int,input().split()))
num=0
for i in A:
if i >= sum(A)/(4*M):
num += 1
if M <= num:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,939 | 481,940 | u897220832 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
a = sorted(a,reverse = True)
x = sum(a)
if a[m-1]<(x/4*m):
print("No")
else:
print("Yes") | n,m = map(int,input().split())
a = list(map(int,input().split()))
a = sorted(a,reverse = True)
x = sum(a)
if a[m-1]<(x/(4*m)):
print("No")
else:
print("Yes") | [
"control_flow.branch.if.condition.change"
] | 481,941 | 481,942 | u785728112 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
a = sorted(a,reverse = True)
x = sum(a)
if a[m-1]<(x//4*m):
print("No")
else:
print("Yes") | n,m = map(int,input().split())
a = list(map(int,input().split()))
a = sorted(a,reverse = True)
x = sum(a)
if a[m-1]<(x/(4*m)):
print("No")
else:
print("Yes") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,943 | 481,942 | u785728112 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
a = sorted(a,reverse = True)
x = sum(a)
if a[m-1]<(x//4):
print("No")
else:
print("Yes") | n,m = map(int,input().split())
a = list(map(int,input().split()))
a = sorted(a,reverse = True)
x = sum(a)
if a[m-1]<(x/(4*m)):
print("No")
else:
print("Yes") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,944 | 481,942 | u785728112 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
num = sum(a)
cnt = 0
for i in range(n):
if a[i] < num//(4*m):
continue
else:
cnt += 1
if cnt >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
num = sum(a)
cnt = 0
for i in range(n):
if a[i] < num/(4*m):
continue
else:
cnt += 1
if cnt >= m:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 481,953 | 481,954 | u749491107 | python |
p02718 | n, m = map(int, input().split())
a = sorted(map(int, input().split()))[::-1]
i = 0
for j in range(n):
i = i + a[j]
x = i / (4 * m)
print("Yes" if a[m] >= x else "No") | n, m = map(int, input().split())
a = sorted(map(int, input().split()))[::-1]
i = 0
for j in range(n):
i = i + a[j]
x = i / (4 * m)
print("Yes" if a[m - 1] >= x else "No") | [
"expression.operation.binary.add"
] | 481,955 | 481,956 | u246401133 | python |
p02718 | import math
n,m = map(int, input().split())
A = list(map(int, input().split()))
line = math.floor(sum(A) / (4 * m))
cnt = 0
for a in A:
if a >= line:
cnt += 1
if cnt >= m:
print('Yes')
break
else:
print('No') | from decimal import Decimal
n,m = map(int, input().split())
A = list(map(int, input().split()))
line = Decimal(sum(A) / (4 * m))
cnt = 0
for a in A:
if a >= line:
cnt += 1
if cnt >= m:
print('Yes')
break
else:
print('No') | [
"identifier.change",
"assignment.value.change"
] | 481,962 | 481,963 | u554133763 | python |
p02718 | n, m = map(int, input().split())
a = sorted(map(int, input().split()), reverse = True)
total = sum(a)
cnt = 0
for i in a:
if i * 4 * m > total:
cnt += 1
else:
break
if cnt >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = sorted(map(int, input().split()), reverse = True)
total = sum(a)
cnt = 0
for i in a:
if i * 4 * m >= total:
cnt += 1
else:
break
if cnt >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,964 | 481,965 | u995163736 | python |
p02718 | x,y = map(int,input().split())
A=list(map(int,input().split()))
T=sum(A)
a=0
for i in range(x):
if A[i]>T/(4*y):
a+=1
if a>=y:
print('Yes')
else:
print('No')
| x,y = map(int,input().split())
A=list(map(int,input().split()))
T=sum(A)
a=0
for i in range(x):
if A[i]>=T/(4*y):
a+=1
if a>=y:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,966 | 481,967 | u355154595 | python |
p02718 | x,y = map(int,input().split())
A=list(map(int,input().split()))
T=sum(A)
a=0
for i in range(x):
if A[i]<1/(4*T):
a+=1
if a>=y:
print('Yes')
else:
print('No')
| x,y = map(int,input().split())
A=list(map(int,input().split()))
T=sum(A)
a=0
for i in range(x):
if A[i]>=T/(4*y):
a+=1
if a>=y:
print('Yes')
else:
print('No')
| [
"control_flow.loop.for.condition.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 481,968 | 481,967 | u355154595 | python |
p02718 | def main():
n,m = map(int, input().split())
a = list(map(int,input().strip().split()))
t = sum(a)
c = 0
for aa in a:
if aa >= int(t / (4*m)):
c += 1
if c >= m:
print("Yes")
return
else:
print("No")
return
main()
| def main():
n,m = map(int, input().split())
a = list(map(int,input().strip().split()))
t = sum(a)
c = 0
for aa in a:
if aa >= t / (4*m):
c += 1
if c >= m:
print("Yes")
return
else:
print("No")
return
main()
| [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 481,969 | 481,970 | u285497176 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
a = sum(A)*(1/(4*M))
cnt = 0
for i in range(N):
if A[i] > a:
cnt += 1
if cnt >= M:
print("Yes")
else:
print("No") | N,M = map(int,input().split())
A = list(map(int,input().split()))
a = sum(A)*(1/(4*M))
cnt = 0
for i in range(N):
if A[i] >= a:
cnt += 1
if cnt >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,971 | 481,972 | u848535504 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
if len([i for i in a if i >= sum(a)/(4*m)]) > m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
a = list(map(int,input().split()))
if len([i for i in a if i >= sum(a)/(4*m)]) >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,975 | 481,976 | u607563136 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
if len([i for i in a if i > sum(a)/(4*m)]) > m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
a = list(map(int,input().split()))
if len([i for i in a if i >= sum(a)/(4*m)]) >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 481,977 | 481,976 | u607563136 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
limit=sum(a)/(4*m)
c=0
for aa in a:
if aa >=limit:
c+=1
else:
pass
if c>=m:
print('No')
else:
print('Yes') | n,m=map(int,input().split())
a=list(map(int,input().split()))
limit=sum(a)/(4*m)
c=0
for aa in a:
if aa >=limit:
c+=1
else:
pass
if c>=m:
print('Yes')
else:
print('No') | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 481,978 | 481,979 | u087118202 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sum=sum(a)
count=0
for i in a:
if i>a_sum//(4*m):
count+=1
if count>=m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sum=sum(a)
count=0
for i in a:
if i>=a_sum/(4*m):
count+=1
if count>=m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 481,994 | 481,995 | u910632349 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sum=sum(a)
count=0
for i in a:
if i>=a_sum/4*m:
count+=1
if count>=m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a_sum=sum(a)
count=0
for i in a:
if i>=a_sum/(4*m):
count+=1
if count>=m:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 481,996 | 481,995 | u910632349 | python |
p02718 |
# ABC161
# B Popular Vote
N, M = map(int, input().split()) # N種類 M個選ぶ
a = sorted(list(map(int, input().split())),reverse=True)
x = sum(a)
q = x / 4 * M
b =[]
for i in range(M):
b.append(a[i])
b = sorted(b)
for j in b:
if j < q:
print('No')
exit()
print('Yes') | # ABC161
# B Popular Vote
N, M = map(int, input().split()) # N種類 M個選ぶ
a = sorted(list(map(int, input().split())),reverse=True)
x = sum(a)
q = x / (4 * M)
b =[]
for i in range(M):
b.append(a[i])
b = sorted(b)
for j in b:
if j < q:
print('No')
exit()
print('Yes')
| [] | 482,003 | 482,004 | u987637902 | python |
p02718 | N, M = [int(i) for i in input().split(' ')]
A = [int(i) for i in input().split(' ')]
th = sum(A) / (4 * M)
print('Yes' if len([a for a in A if a >= th]) >= N else 'No')
| N, M = [int(i) for i in input().split(' ')]
A = [int(i) for i in input().split(' ')]
th = sum(A) / (4 * M)
print('Yes' if len([a for a in A if a >= th]) >= M else 'No')
| [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 482,009 | 482,010 | u262646906 | python |
p02718 | n,k = map(int,input().split())
A = list(map(int,input().split()))
allvote=0
allvote=sum(A)
# print( allvote )
c=0
for a in A:
if a>=allvote/(4*k) :
c+=1
if c>=k :
ans = "Yes"
else:
ans = "No"
print(ans,allvote,c) | n,k = map(int,input().split())
A = list(map(int,input().split()))
allvote=0
allvote=sum(A)
# print( allvote )
c=0
for a in A:
if a>=allvote/(4*k) :
c+=1
if c>=k :
ans = "Yes"
else:
ans = "No"
print(ans) | [
"call.arguments.change"
] | 482,015 | 482,016 | u707030679 | python |
p02718 | n,k = map(int,input().split())
A = list(map(int,input().split()))
allvote=0
allvote=sum(A)
# print( allvote )
c=0
for a in A:
if a>=allvote/4 :
c+=1
if c>=k-1 :
ans = "Yes"
else:
ans = "No"
print(ans) | n,k = map(int,input().split())
A = list(map(int,input().split()))
allvote=0
allvote=sum(A)
# print( allvote )
c=0
for a in A:
if a>=allvote/(4*k) :
c+=1
if c>=k :
ans = "Yes"
else:
ans = "No"
print(ans) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 482,017 | 482,016 | u707030679 | python |
p02718 | N, M = list(map(lambda x: int(x), input().split(" ")))
A = list(map(lambda y: int(y), input().split(" ")))
A.sort()
print("Yes") if 0.25 * sum(A) / M <= A[M - 1] else print("No") | N, M = list(map(lambda x: int(x), input().split(" ")))
A = list(map(lambda y: int(y), input().split(" ")))
A.sort(reverse=True)
print("Yes") if 0.25 * sum(A) / M <= A[M - 1] else print("No") | [
"call.arguments.keyword_argument.add"
] | 482,025 | 482,026 | u739843002 | python |
p02718 | import sys
N,M = map(int, sys.stdin.readline().strip().split())
A = list(map(int, sys.stdin.readline().strip().split()))
votes_M = sorted(A, reverse=True)[M-1]
votes = sum(A)
if votes_M >= (votes // (M * 4)):
print('Yes')
else:
print('No')
| import sys
N,M = map(int, sys.stdin.readline().strip().split())
A = list(map(int, sys.stdin.readline().strip().split()))
votes_M = sorted(A, reverse=True)[M-1]
votes = sum(A)
if votes_M >= (votes / (M * 4)):
print('Yes')
else:
print('No')
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 482,046 | 482,047 | u319245933 | python |
p02718 | import sys
n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
s = sum(a)
a.sort(reverse=True)
border = int(s / (4 * m))
ans = True
for i in range(m):
if (a[i] > border):
pass
else:
ans = False
break
if (ans):
print("Yes")
else:
print("No")
| import sys
import math
n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
s = sum(a)
a.sort(reverse=True)
border = s / (4 * m)
ans = True
for i in range(m):
if (a[i] >= border):
pass
else:
ans = False
break
if (ans):
print("Yes")
else:
print("No")
| [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,053 | 482,054 | u910536093 | python |
p02718 | i1 = input()
i1 = i1.split()
types = int(i1[0])
select = int(i1[1])
i2 = input()
i2 = [int(n) for n in i2.split()]
i2.sort(reverse=True)
summary = sum(i2)
threshold = summary / (types * 4)
#print("summary=", summary)
#print("threshold=", threshold)
if i2[select-1] < threshold :
print("No")
else:
print("Yes")... | i1 = input()
i1 = i1.split()
types = int(i1[0])
select = int(i1[1])
i2 = input()
i2 = [int(n) for n in i2.split()]
i2.sort(reverse=True)
summary = sum(i2)
threshold = summary / (select * 4)
#print("i2=", i2)
#print("summary=", summary)
#print("threshold=", threshold)
if i2[select-1] < threshold :
print("No")
els... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 482,055 | 482,056 | u910536093 | python |
p02718 | i1 = input()
i1 = i1.split()
types = int(i1[0])
select = int(i1[1])
i2 = input()
i2 = [int(n) for n in i2.split()]
i2.sort(reverse=True)
summary = sum(i2)
threshold = int(summary / (types * 4))
if i2[select-1] < threshold :
print("No")
else:
print("Yes")
| i1 = input()
i1 = i1.split()
types = int(i1[0])
select = int(i1[1])
i2 = input()
i2 = [int(n) for n in i2.split()]
i2.sort(reverse=True)
summary = sum(i2)
threshold = summary / (select * 4)
#print("i2=", i2)
#print("summary=", summary)
#print("threshold=", threshold)
if i2[select-1] < threshold :
print("No")
els... | [
"call.remove",
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 482,057 | 482,056 | u910536093 | python |
p02718 | i1 = input()
i1 = i1.split()
types = int(i1[0])
select = int(i1[1])
i2 = input()
i2 = [int(n) for n in i2.split()]
i2.sort(reverse=True)
summary = sum(i2)
threshold = summary / int(types * 4)
if i2[select-1] > threshold :
print("Yes")
else:
print("No")
| i1 = input()
i1 = i1.split()
types = int(i1[0])
select = int(i1[1])
i2 = input()
i2 = [int(n) for n in i2.split()]
i2.sort(reverse=True)
summary = sum(i2)
threshold = summary / (select * 4)
#print("i2=", i2)
#print("summary=", summary)
#print("threshold=", threshold)
if i2[select-1] < threshold :
print("No")
els... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove",
"call.add"
] | 482,058 | 482,056 | u910536093 | python |
p02718 | i1 = input()
i1 = i1.split()
types = int(i1[0])
select = int(i1[1])
i2 = input()
i2 = [int(n) for n in i2.split()]
i2.sort(reverse=True)
summary = sum(i2)
threshold = summary / (types * 4)
if i2[select-1] >= threshold :
print("Yes")
else:
print("No")
| i1 = input()
i1 = i1.split()
types = int(i1[0])
select = int(i1[1])
i2 = input()
i2 = [int(n) for n in i2.split()]
i2.sort(reverse=True)
summary = sum(i2)
threshold = summary / (select * 4)
#print("i2=", i2)
#print("summary=", summary)
#print("threshold=", threshold)
if i2[select-1] < threshold :
print("No")
els... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove",
"call.add"
] | 482,059 | 482,056 | u910536093 | python |
p02718 | N,M = map(int,input().split())
A = sorted(list(map(int,input().split())),reverse=True)
if A[M-1]>=sum(A)/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"
] | 482,069 | 482,070 | u644907318 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a) / (4 * m)
ans = 0
for aa in a:
if aa > s:
ans += 1
if ans >= m:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a) / (4 * m)
ans = 0
for aa in a:
if aa >= s:
ans += 1
if ans >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,094 | 482,095 | u073729602 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
if A[M] < 1/(4*M)*sum(A):
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] < 1/(4*M)*sum(A):
print("No")
else:
print("Yes") | [
"control_flow.branch.if.condition.change"
] | 482,140 | 482,141 | u548525760 | python |
p02718 | n,m = map(int,input().split())
x = list(map(int,input().split()))
x.sort(reverse = True)
sumx = sum(x)
limit = sumx/4/m
print(limit)
if x[m-1]>=limit:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
x = list(map(int,input().split()))
x.sort(reverse = True)
sumx = sum(x)
limit = sumx/4/m
#print(limit)
if x[m-1]>=limit:
print("Yes")
else:
print("No") | [
"call.remove"
] | 482,165 | 482,166 | u467463073 | python |
p02718 | n,m = map(int,input().split())
x = list(map(int,input().split()))
x.sort(reverse = True)
sumx = sum(x)
limit = int(sumx/4/m)
if x[m-1]>=limit:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
x = list(map(int,input().split()))
x.sort(reverse = True)
sumx = sum(x)
limit = sumx/4/m
#print(limit)
if x[m-1]>=limit:
print("Yes")
else:
print("No") | [
"call.remove",
"call.arguments.change"
] | 482,167 | 482,166 | u467463073 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
b = sum(a) / 4
ans = 0
for i in range(n):
if a[i] >= b:
ans += 1
if ans >= m:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
b = sum(a) / (4 * m)
ans = 0
for i in range(n):
if a[i] >= b:
ans += 1
if ans >= m:
print('Yes')
else:
print('No')
| [] | 482,170 | 482,171 | u581403769 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
b = sum(a) / 4
count = 0
for i in range(n):
if a[i] >= b:
ans += 1
if ans >= m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
a = list(map(int, input().split()))
b = sum(a) / (4 * m)
ans = 0
for i in range(n):
if a[i] >= b:
ans += 1
if ans >= m:
print('Yes')
else:
print('No')
| [
"assignment.value.change"
] | 482,172 | 482,171 | u581403769 | python |
p02718 | n,m=map(int,input().split())
I=list(map(int,input().split()))
num=0
for i in range(n):
if I[i]>=(1/(4*m)):
num+=1
if num>=m:
print("Yes")
else:
print("No")
| n,m=map(int,input().split())
I=list(map(int,input().split()))
num=0
for i in range(n):
if I[i]>=(sum(I)/(4*m)):
num+=1
if num>=m:
print("Yes")
else:
print("No")
| [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 482,180 | 482,181 | u438189153 | python |
p02718 | n,m=map(int,input().split())
I=list(map(int,input().split()))
num=0
for i in range(n):
if I[i]>=(1/4*m):
num+=1
if num>=m:
print("Yes")
else:
print("No")
| n,m=map(int,input().split())
I=list(map(int,input().split()))
num=0
for i in range(n):
if I[i]>=(sum(I)/(4*m)):
num+=1
if num>=m:
print("Yes")
else:
print("No")
| [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 482,182 | 482,181 | u438189153 | python |
p02718 | n,m=map(int,input().split())
A=list(map(int,input().split()))
print("NYoe s"[m<=len([i for i in A if i>sum(A)/(4*m)])::2]) | n,m=map(int,input().split())
A=list(map(int,input().split()))
print("NYoe s"[m<=len([i for i in A if i>=sum(A)/(4*m)])::2]) | [
"expression.operator.compare.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"io.output.change"
] | 482,188 | 482,189 | u921617614 | python |
p02718 | inputValues = [int(i) for i in input().split()]
n = inputValues[0]
m = inputValues[1]
votes = [int(i) for i in input().split()]
total = sum(votes)
cnt = 0
for i in votes:
if i >= total*(1/(4*m)):
cnt += 1
print(i)
if cnt >= m:
print("Yes")
else:
print("No")
| inputValues = [int(i) for i in input().split()]
n = inputValues[0]
m = inputValues[1]
votes = [int(i) for i in input().split()]
total = sum(votes)
cnt = 0
for i in votes:
if i >= total*(1/(4*m)):
cnt += 1
# print(i)
if cnt >= m:
print("Yes")
else:
print("No")
| [
"call.remove"
] | 482,190 | 482,191 | u228976998 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
A = sorted(A, 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 = sorted(A, reverse=True)
if A[M-1]<(sum(A)/(4*M)):
print("No")
else:
print("Yes") | [
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 482,200 | 482,201 | u912208257 | python |
p02718 |
n,m=map(int,input().split())
a=list(map(int,input().split()))
cnt=0
for i in a:
if (s/(4*m))<=i:
cnt+=1
if cnt==m:
print("Yes")
if cnt<m:
print("No")
| n,m=map(int,input().split())
a=list(map(int,input().split()))
cnt=0
for i in a:
if (sum(a)/(4*m))<=i:
cnt+=1
if cnt==m:
print("Yes")
if cnt<m:
print("No") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 482,202 | 482,203 | u962423738 | python |
p02718 | # -*- coding: utf-8 -*-
N, M = map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
count = 0
for a in A:
if a >= total / (4*M):
count += 1
if a >= M:
print('Yes')
else:
print('No') | # -*- coding: utf-8 -*-
N, M = map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
count = 0
for a in A:
if a >= total / (4*M):
count += 1
if count >= M:
print('Yes')
else:
print('No') | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 482,206 | 482,207 | u531391334 | python |
p02718 | n,m = map(int, input().split())
A = list(map(int, input().split()))
votes = sum(A)
A.sort()
if A[m-1] < votes/4*m:
print('No')
else:
print('Yes') | n,m = map(int, input().split())
A = list(map(int, input().split()))
votes = sum(A)
A.sort(reverse=True)
if A[m-1] < votes/(4*m):
print('No')
else:
print('Yes') | [
"control_flow.branch.if.condition.change"
] | 482,235 | 482,236 | u935642171 | python |
p02718 | import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return lis... | import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return lis... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,244 | 482,245 | u225084815 | python |
p02718 | n, m = map(int, input().split())
l = list(map(int, input().split()))
l.sort(reverse=True)
n_vote = sum(l)
if l[m-1] > n_vote/(4*m):
print('Yes')
else:
print('No') | n, m = map(int, input().split())
l = list(map(int, input().split()))
l.sort(reverse=True)
n_vote = sum(l)
if l[m-1] >= n_vote/(4*m):
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,246 | 482,247 | u729627789 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
th = sum(A)/(4*M)
for i in range(len(A)):
if A[i] > th:
cnt += 1
ans = 'Yes' if cnt >= M else 'No'
print(ans) | N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
th = sum(A)/(4*M)
for i in range(len(A)):
if A[i] >= th:
cnt += 1
ans = 'Yes' if cnt >= M else 'No'
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,285 | 482,284 | u616542081 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
sorted(a,reverse=True)
count = 0
for i in a:
if i >=sum(a)//(4*m):
count += 1
else:
pass
print(['No','Yes'][count >= m])
| n,m = map(int,input().split())
a = list(map(int,input().split()))
sorted(a,reverse=True)
count = 0
for i in a:
if i >=sum(a)/(4*m):
count += 1
else:
pass
print(['No','Yes'][count >= m])
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 482,286 | 482,287 | u642528832 | python |
p02718 | n,m = list(map(int,input().split()))
A = list(map(int,input().split()))
sum_A = sum(A) / 4
cnt = 0
for i in A:
if i >= sum_A:
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No')
| n,m = list(map(int,input().split()))
A = list(map(int,input().split()))
sum_A = sum(A) / 4 / m
cnt = 0
for i in A:
if i >= sum_A:
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No')
| [
"assignment.change"
] | 482,292 | 482,293 | u414376763 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
a=0
for i in A:
a+=i
b=a/(4*M)
c=0
for n in range(0,N):
if A[n]>b:
c+=1
if c>=M:
print('Yes')
else:
print('No')
| N,M=map(int,input().split())
A=list(map(int,input().split()))
a=0
for i in A:
a+=i
b=a/(4*M)
c=0
for n in range(0,N):
if A[n]>=b:
c+=1
if c>=M:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,298 | 482,299 | u052838115 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
a=0
for i in A:
a+=i
b=a/4*M
c=0
for n in range(0,N):
if A[n]>b:
c+=1
if c>=M:
print('Yes')
else:
print('No')
| N,M=map(int,input().split())
A=list(map(int,input().split()))
a=0
for i in A:
a+=i
b=a/(4*M)
c=0
for n in range(0,N):
if A[n]>=b:
c+=1
if c>=M:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,300 | 482,299 | u052838115 | python |
p02718 | n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
cnt = 0
ttl = sum(a)
for i in a:
if i >= ttl // (4 * m):
cnt += 1
print("Yes") if cnt >= m else print("No")
| n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
cnt = 0
ttl = sum(a)
for i in a:
if i >= ttl / (4 * m):
cnt += 1
print("Yes") if cnt >= m else print("No")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 482,303 | 482,304 | u743164083 | python |
p02718 | n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
cnt = 0
ttl = sum(a)
for i in a:
if i >= ttl // (4 * m):
cnt += 1
print("Yes") if cnt == m else print("No")
| n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
cnt = 0
ttl = sum(a)
for i in a:
if i >= ttl / (4 * m):
cnt += 1
print("Yes") if cnt >= m else print("No")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 482,305 | 482,304 | u743164083 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
s = 0
total = sum(a)
for i in a:
if total*1/4*m <= i:
s += 1
if s >= m:
print('Yes')
else:
print('No') | n,m = map(int, input().split())
a = list(map(int, input().split()))
s = 0
total = sum(a)
for i in a:
if total/(4*m) <= i:
s += 1
if s >= m:
print('Yes')
else:
print('No') | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 482,310 | 482,311 | u342062419 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
s = 0
total = sum(a)
for i in a:
if total/4*m <= i:
s += 1
if s >= m:
print('Yes')
else:
print('No') | n,m = map(int, input().split())
a = list(map(int, input().split()))
s = 0
total = sum(a)
for i in a:
if total/(4*m) <= i:
s += 1
if s >= m:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 482,312 | 482,311 | u342062419 | python |
p02718 | # ABC161 B
n,m = map(int, input().split())
a = list(map(int, input().split()))
s = 0
total = sum(a)
for i in a:
if total/4 <= i:
s += 1
if s >= m:
print('Yes')
else:
print('No')
| n,m = map(int, input().split())
a = list(map(int, input().split()))
s = 0
total = sum(a)
for i in a:
if total/(4*m) <= i:
s += 1
if s >= m:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 482,313 | 482,311 | u342062419 | python |
p02718 | n, m = list(map(int, input().split()))
A = list(map(int, input().split()))
sum = sum(A)
for a in A:
if a * 4 * m < sum:
cnt += 1
if cnt >= m:
print("Yes")
else:
print("No")
| n, m = list(map(int, input().split()))
A = list(map(int, input().split()))
sum = sum(A)
cnt = 0
for a in A:
if a * 4 * m >= sum:
cnt += 1
if cnt >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,354 | 482,355 | u633284019 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
total=0
for i in range(N):
total+=A[i]
if A[M-1]>total/(4*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(N):
total+=A[i]
if A[M-1]>=total/(4*M):
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,361 | 482,362 | u502594696 | 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):
total+=A[i]
if A[M-1]>total/(4*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(N):
total+=A[i]
if A[M-1]>=total/(4*M):
print("Yes")
else:
print("No")
| [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,363 | 482,362 | u502594696 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
total=0
for i in range(N):
total+=A[i]
if A[M]>=total/(4*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(N):
total+=A[i]
if A[M-1]>=total/(4*M):
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change"
] | 482,364 | 482,362 | u502594696 | 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):
total+=A[i]
if A[M]>=total/(4*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(N):
total+=A[i]
if A[M-1]>=total/(4*M):
print("Yes")
else:
print("No")
| [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change"
] | 482,365 | 482,362 | u502594696 | python |
p02718 | n,m = map(int,input().split())
li = list(map(int,input().split()))
sum_vote = sum(li)
kijun = sum_vote // (4 * m)
sum_above = len([i for i in li if i >= kijun])
if sum_above >= m:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
li = list(map(int,input().split()))
sum_vote = sum(li)
kijun = sum_vote / (4 * m)
sum_above = len([i for i in li if i >= kijun])
if sum_above >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 482,366 | 482,367 | u439727902 | python |
p02718 | n,m = map(int,input().split())
li = list(map(int,input().split()))
sum_vote = sum(li)
kijun = sum_vote / 4 * m
sum_above = len([i for i in li if i > kijun])
if sum_above >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
li = list(map(int,input().split()))
sum_vote = sum(li)
kijun = sum_vote / (4 * m)
sum_above = len([i for i in li if i >= kijun])
if sum_above >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 482,368 | 482,367 | u439727902 | python |
p02718 | n, m = map(int,input().split())
a = list(map(int,input().split()))
ans = 0
vote = sum(a)
for i in a:
if i >= vote/4/m:
ans +=1
if ans >m:
print("Yes")
else:
print("No") | n, m = map(int,input().split())
a = list(map(int,input().split()))
ans = 0
vote = sum(a)
for i in a:
if i >= vote/4/m:
ans +=1
if ans >=m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,373 | 482,374 | u408071652 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
sum, c = 0, 0
for i in a:
sum += i
for i in a:
if sum / (m * 4) <= i:
c += 1
if c > m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
sum, c = 0, 0
for i in a:
sum += i
for i in a:
if sum / (m * 4) <= i:
c += 1
if c >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,381 | 482,382 | u459100168 | python |
p02718 | N,M=[int(i) for i in input().split(" ")]
A=[int(i) for i in input().split(" ")]
print( "Yes" if len([i for i in A if sum(A)*(1/(4*M)) < i]) >= M else "No" )
| N,M=[int(i) for i in input().split(" ")]
A=[int(i) for i in input().split(" ")]
print( "Yes" if len([i for i in A if sum(A)*(1/(4*M)) <= i]) >= M else "No" )
| [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 482,408 | 482,409 | u199356004 | python |
p02718 | import itertools
from collections import deque,defaultdict,Counter
from itertools import accumulate
import bisect
from heapq import heappop,heappush,heapify
import math
from copy import deepcopy
import queue
import numpy as np
# sympy as syp(素因数分解とか)
Mod = 1000000007
def sieve_of_eratosthenes(n):
if not isinstance(... | import itertools
from collections import deque,defaultdict,Counter
from itertools import accumulate
import bisect
from heapq import heappop,heappush,heapify
import math
from copy import deepcopy
import queue
import numpy as np
# sympy as syp(素因数分解とか)
Mod = 1000000007
def sieve_of_eratosthenes(n):
if not isinstance(... | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 482,414 | 482,415 | u928784113 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
count=0
for i in A[0:N]:
if i>=sum(A)//(4*M)+1:
count+=1
if count>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
count=0
for i in A[0:N]:
if i>=sum(A)/(4*M):
count+=1
if count>=M:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 482,420 | 482,421 | u441320782 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
count=0
for i in A[0:N]:
if i>=(sum(A)/4*M):
count+=1
if count>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
count=0
for i in A[0:N]:
if i>=sum(A)/(4*M):
count+=1
if count>=M:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 482,422 | 482,421 | u441320782 | python |
p02718 | import sys
input = lambda: sys.stdin.readline().rstrip()
def solve():
N, M = map(int, input().split())
A = list(map(int, input().split()))
asum = sum(A)
count = 0
for i in range(N):
if A[i] * 4 * M > asum:
count += 1
if count >= M:
print('Yes')
else:
... | import sys
input = lambda: sys.stdin.readline().rstrip()
def solve():
N, M = map(int, input().split())
A = list(map(int, input().split()))
asum = sum(A)
count = 0
for i in range(N):
if A[i] * 4 * M >= asum:
count += 1
if count >= M:
print('Yes')
else:
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,423 | 482,424 | u163783894 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
sort=sorted(a,reverse=True)
b=sum(a)
count=0
for i in sort:
if i<=b/(4*m):
break
else:
count+=1
if count>=m:
print('Yes')
else:
print('No')
| n,m=map(int,input().split())
a=list(map(int,input().split()))
sort=sorted(a,reverse=True)
b=sum(a)
count=0
for i in sort:
if i<b/(4*m):
break
else:
count+=1
if count>=m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,446 | 482,447 | u095844416 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
sort=sorted(a,reverse=True)
b=sum(a)
count=0
for i in sort:
count+=1
if i>=b/(4*m):
count+=1
if count>=m:
print('Yes')
else:
print('No')
| n,m=map(int,input().split())
a=list(map(int,input().split()))
sort=sorted(a,reverse=True)
b=sum(a)
count=0
for i in sort:
if i>=b/(4*m):
count+=1
if count>=m:
print('Yes')
else:
print('No')
| [] | 482,448 | 482,449 | u095844416 | python |
p02718 | N,M = map(int, input().split())
A = list(map(int, input().split()))
MAX = sum(A)
A = sorted(A,reverse=True)
M_count = 0
for i in A:
if i > MAX/(4*M):
M_count += 1
else:
break
if M_count >= M:
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A = list(map(int, input().split()))
MAX = sum(A)
A = sorted(A,reverse=True)
M_count = 0
for i in A:
if i >= MAX/(4*M):
M_count += 1
else:
break
if M_count >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,450 | 482,451 | u391442102 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
t = sum(a) // (4*m)
cnt = 0
for i in a:
if i >= t:
cnt += 1
print("Yes" if cnt >= m else "No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
t = sum(a) / (4*m)
cnt = 0
for i in a:
if i >= t:
cnt += 1
print("Yes" if cnt >= m else "No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 482,470 | 482,471 | u377072670 | python |
p02718 | import numpy as np
import math
import collections
import fractions
import itertools
def mput(): return map(int, input().split())
def lput(): return list(map(int, input().split()))
def iput(): return int(input())
def solve():
n, m = mput()
a = lput()
line = sum(A) / (4 * m)
bit = 0
for i in a:
... | import numpy as np
import math
import collections
import fractions
import itertools
def mput(): return map(int, input().split())
def lput(): return list(map(int, input().split()))
def iput(): return int(input())
def solve():
n, m = mput()
a = lput()
line = sum(a) / (4 * m)
bit = 0
for i in a:
... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 482,476 | 482,477 | u075304271 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
all_sum = sum(a)
standard = all_sum/(4*M)
ans = 0
for i in a:
if i >= standard:
ans += 1
if ans >= m:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
all_sum = sum(a)
standard = all_sum/(4*m)
ans = 0
for i in a:
if i >= standard:
ans += 1
if ans >= m:
print('Yes')
else:
print('No')
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 482,481 | 482,482 | u685244071 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
t=sum(a)
x=0
for i in range(n):
if a[i]>=(t//(4*m)):
x+=1
if x>=m:
print("Yes")
else:
print("No")
| n,m=map(int,input().split())
a=list(map(int,input().split()))
t=sum(a)
x=0
for i in range(n):
if a[i]>=(t/(4*m)):
x+=1
if x>=m:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 482,497 | 482,498 | u858929490 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
mm=sum(a)/4/m
s=0
for i in a:
if i >mm:
s+=1
if s>=m:
print('Yes')
else:
print('No')
| n,m=map(int,input().split())
a=list(map(int,input().split()))
mm=sum(a)/4/m
s=0
for i in a:
if i >=mm:
s+=1
if s>=m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,501 | 482,502 | u919235786 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
mm=sum(a)/4/m
s=0
for i in a:
if i <mm:
s+=1
if s>=m:
print('Yes')
else:
print('No')
| n,m=map(int,input().split())
a=list(map(int,input().split()))
mm=sum(a)/4/m
s=0
for i in a:
if i >=mm:
s+=1
if s>=m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,503 | 482,502 | u919235786 | python |
p02718 | n, m = set(map(int, input().split()))
a = set(map(int, input().split()))
count = 0
for x in a:
if x >= sum(a) / (4 * m):
count += 1
if m <= count:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
count = 0
for x in a:
if x >= sum(a) / (4 * m):
count += 1
if m <= count:
print("Yes")
else:
print("No")
| [
"call.remove",
"call.arguments.change",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 482,504 | 482,505 | u620617652 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
ans=[]
for i in range(N):
if A[i] < sum(A)/(4*M):
ans.append(A[i])
if len(ans) >= M:
print("Yes")
else:
print("No") | N,M = map(int,input().split())
A = list(map(int,input().split()))
ans=[]
for i in range(N):
if A[i] >= sum(A)/(4*M):
ans.append(A[i])
if len(ans) >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 482,509 | 482,510 | u880480312 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.