problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
sum_a = sum(a)
jouken = sum_a / (m * 4)
#print(jouken)
c = 0
for i in range(n):
if a[i] < jouken:
c += 1
if c > m:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
a = list(map(int,input().split()))
sum_a = sum(a)
jouken = sum_a / (m * 4)
#print(jouken)
c = 0
for i in range(n):
if a[i] >= jouken:
c += 1
if c >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,263 | 488,261 | u626217906 | python |
p02718 | N,M=map(int, input().split())
A = list(map(int, input().split()))
count =0
s = sum(A)
m = s//(4*M)
for i in range(N):
if A[i] >= m:
count += 1
if count == M:
print("Yes")
else:
print("No")
| N,M=map(int, input().split())
A = list(map(int, input().split()))
count =0
s = sum(A)
m = s/(4*M)
for i in range(N):
if A[i] >= m:
count += 1
if count >= 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"
] | 488,266 | 488,267 | u362563655 | python |
p02718 | N,M=map(int, input().split())
A = list(map(int, input().split()))
count =0
s = sum(A)
m = s//(4*M)
for i in range(N):
if A[i] >= m:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| N,M=map(int, input().split())
A = list(map(int, input().split()))
count =0
s = sum(A)
m = s/(4*M)
for i in range(N):
if A[i] >= m:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,268 | 488,267 | u362563655 | python |
p02718 | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
kijun = sum(A)//(4*M)
cnt = 0
for x in A:
if x >= kijun:
cnt+=1
if cnt >= M:
print('Yes')
else:
print('No')
| N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
kijun = sum(A)/(4*M)
cnt = 0
for x in A:
if x >= kijun:
cnt+=1
if cnt >= M:
print('Yes')
else:
print('No')
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,277 | 488,278 | u489762173 | python |
p02718 | import sys
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
N,M=nm()
A=nl()
A.sort()
A.reverse()
print(A)
th=sum(A)/M/4
flag=True
for i in range(M):
if(A[i]<th)... | import sys
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
N,M=nm()
A=nl()
A.sort()
A.reverse()
th=sum(A)/M/4
flag=True
for i in range(M):
if(A[i]<th):
... | [
"call.remove"
] | 488,279 | 488,280 | u525796732 | python |
p02718 | import sys
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
N,M=nm()
A=nl()
A.sort()
th=sum(A)/M/4
flag=True
for i in range(M):
if(A[i]<th):
flag=False
... | import sys
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
N,M=nm()
A=nl()
A.sort()
A.reverse()
th=sum(A)/M/4
flag=True
for i in range(M):
if(A[i]<th):
... | [
"call.add"
] | 488,281 | 488,280 | u525796732 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
x=0
for i in range(n):
if a[i]<sum(a)*(1/(4*m)):
x+=1
if x==m:
print("No")
else:
print("Yes") | n,m=map(int,input().split())
a=list(map(int,input().split()))
x=0
for i in range(n):
if a[i]>=sum(a)*(1/(4*m)):
x+=1
if x>=m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove",
"call.add"
] | 488,284 | 488,285 | u068750695 | python |
p02718 | n, m = map(int,input().split())
a = list(map(int,input().split()))
total = sum(a)
threshold = total / 4 / m
num_over = 0
done = False
for i in a:
if i >= threshold:
num_over = num_over + 1
if num_over == m:
print('Yes')
done = True
if not done:
print('No') | n, m = map(int,input().split())
a = list(map(int,input().split()))
total = sum(a)
threshold = total / 4 / m
num_over = 0
done = False
for i in a:
if i >= threshold:
num_over = num_over + 1
if num_over == m:
print('Yes')
done = True
break
if not done:
print('No') | [
"control_flow.break.add"
] | 488,302 | 488,303 | u929783549 | python |
p02718 | n,m = map(int,input().split(' '))
aa = list(map(int, input().split(' ')))
A = sorted(aa, reverse=True)
Am = A[:m]
for a in Am:
if a>(0.25/m)*sum(aa): continue
else:
print('No')
exit(0)
print('Yes')
| n,m = map(int,input().split(' '))
aa = list(map(int, input().split(' ')))
A = sorted(aa, reverse=True)
Am = A[:m]
for a in Am:
if a>=(0.25/m)*sum(aa): continue
else:
print('No')
exit(0)
print('Yes')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,315 | 488,316 | u891422384 | python |
p02718 | n,m=map(int,input().split())
List=list(map(int,input().split()))
count=0
total=0
for i in List:
total=total+i
for i in List:
if i>=total/m/4:
count=count+1
else:
count=count+0
if count>=m:
print("YES")
else:
print("NO") | n,m=map(int,input().split())
List=list(map(int,input().split()))
count=0
total=0
for i in List:
total=total+i
for i in List:
if i>=total/m/4:
count=count+1
else:
count=count+0
if count>=m:
print("Yes")
else:
print("No")
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 488,319 | 488,320 | u619903722 | python |
p02718 | N,M = map(int,input().split())
list_N = list(map(int,input().split()))
count = 0
get = sum(list_N)/(4*M)
for i in range(N):
if list_N[i] > get:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| N,M = map(int,input().split())
list_N = list(map(int,input().split()))
count = 0
get = sum(list_N)/(4*M)
for i in range(N):
if list_N[i] >= get:
count += 1
if count >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,323 | 488,324 | u204333930 | python |
p02718 | # -*- coding: utf-8 -*-
n, m = map(int, input().split())
a = list(map(int, input().split()))
result = True
sum = 0
a.sort(reverse=True)
for i in range(n):
sum += a[i]
threshould = sum / 4 / m
print(threshould)
for i in range(m):
if a[i] < threshould:
result = False
if result:
print("Yes")
else:... | # -*- coding: utf-8 -*-
n, m = map(int, input().split())
a = list(map(int, input().split()))
result = True
sum = 0
a.sort(reverse=True)
for i in range(n):
sum += a[i]
threshould = sum / 4 / m
for i in range(m):
if a[i] < threshould:
result = False
if result:
print("Yes")
else:
print("No")
| [
"call.remove"
] | 488,339 | 488,340 | u326245870 | python |
p02718 | from math import ceil
n,m = map(int,input().split())
l = list(map(int,input().split()))
l.sort(reverse=True)
val = sum(l)
f = 1
for i in range(m):
if l[i] < val//(4*m):
f = 0
break
if f:
print("Yes")
else:
print("No")
| from math import ceil
n,m = map(int,input().split())
l = list(map(int,input().split()))
l.sort(reverse=True)
val = sum(l)
f = 1
for i in range(m):
if l[i] < ceil(val/(4*m)):
f = 0
break
if f:
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add",
"expression.operator.arithmetic.change"
] | 488,341 | 488,342 | u590198086 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
ans='No'
sum=0
b=1/(4*M)
c=0
for i in range(N):
c+=A[i]
d=c*b
for i in range(N):
if int(d)<=A[i]:
sum=sum+1
if sum==M:
ans='Yes'
print(ans) | N,M=map(int,input().split())
A=list(map(int,input().split()))
ans='No'
sum=0
b=1/(4*M)
c=0
for i in range(N):
c+=A[i]
d=c*b
for i in range(N):
if d<=A[i]:
sum=sum+1
if sum==M:
ans='Yes'
print(ans) | [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 488,355 | 488,356 | u833436666 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
ans='No'
sum=0
b=1/(4*M)
c=0
for i in range(N):
c+=A[i]
d=c*b
for i in range(N):
if int(d)<A[i]:
sum=sum+1
if sum==M:
ans='Yes'
print(ans) | N,M=map(int,input().split())
A=list(map(int,input().split()))
ans='No'
sum=0
b=1/(4*M)
c=0
for i in range(N):
c+=A[i]
d=c*b
for i in range(N):
if d<=A[i]:
sum=sum+1
if sum==M:
ans='Yes'
print(ans) | [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 488,357 | 488,356 | u833436666 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
ans='No'
sum=0
b=1/(4*M)
c=0
for i in range(N):
c+=A[i]
d=c*b
for i in range(N):
if d<A[i]:
sum=sum+1
if sum==M:
ans='Yes'
print(ans) | N,M=map(int,input().split())
A=list(map(int,input().split()))
ans='No'
sum=0
b=1/(4*M)
c=0
for i in range(N):
c+=A[i]
d=c*b
for i in range(N):
if d<=A[i]:
sum=sum+1
if sum==M:
ans='Yes'
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,358 | 488,356 | u833436666 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
t=sum(a)/(4*m)
count=0
for i in a:
if(i>t):
count+=1
if(count>=m):
print('Yes')
exit()
else:
continue
else:
continue
print('No') | n,m=map(int,input().split())
a=list(map(int,input().split()))
t=sum(a)/(4*m)
count=0
for i in a:
if(i>=t):
count+=1
if(count>=m):
print('Yes')
exit()
else:
continue
else:
continue
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,359 | 488,360 | u129978636 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
sum=0
for i in a:
sum+=i
ans=0
for i in a:
if i*4*m>sum:
ans+=1
if ans>=m:
print('Yes')
else:
print('No')
| n,m=map(int,input().split())
a=list(map(int,input().split()))
sum=0
for i in a:
sum+=i
ans=0
for i in a:
if i*4*m>=sum:
ans+=1
if ans>=m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,365 | 488,366 | u892935425 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
ans = []
for i in range(m+1) :
if a[i] < sum(a) / (4 * m) :
continue
else :
ans.append(a[-1])
if len(ans) == m :
print('Yes')
else :
print('No') | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
ans = []
for i in range(m) :
if a[i] < sum(a) / (4 * m) :
continue
else :
ans.append(a[-1])
if len(ans) == m :
print('Yes')
else :
print('No') | [
"expression.operation.binary.remove"
] | 488,380 | 488,381 | u001495709 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
print(a)
ans = []
for i in range(m+1) :
if a[i] < sum(a) / (4 * m) :
continue
else :
ans.append(a[-1])
if len(ans) == m :
print('Yes')
else :
print('No') | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
ans = []
for i in range(m) :
if a[i] < sum(a) / (4 * m) :
continue
else :
ans.append(a[-1])
if len(ans) == m :
print('Yes')
else :
print('No') | [
"call.remove",
"expression.operation.binary.remove"
] | 488,382 | 488,381 | u001495709 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
ans = []
for i in range(1, m+1) :
if a[i] < sum(a) / (4 * m) :
continue
else :
ans.append(a[-1])
if len(ans) == m :
print('Yes')
else :
print('No') | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
ans = []
for i in range(m) :
if a[i] < sum(a) / (4 * m) :
continue
else :
ans.append(a[-1])
if len(ans) == m :
print('Yes')
else :
print('No') | [
"call.arguments.change",
"expression.operation.binary.remove"
] | 488,383 | 488,381 | u001495709 | python |
p02718 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
for a in A:
if a > sum(A) / (4 * M):
cnt += 1
print("Yes"if cnt >= M else "No")
if __name__ == "__main__":
main()
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
for a in A:
if a < sum(A) / (4 * M):
continue
else:
cnt += 1
print("Yes"if cnt >= M else "No")
if __name__ == "__main_... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.continue.add"
] | 488,391 | 488,392 | u143212659 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
sumA = sum(A)
K = sumA / (4 * M)
if A[M-1] > K:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
sumA = sum(A)
K = sumA / (4 * M)
if A[M-1] >= K:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,399 | 488,400 | u759718348 | python |
p02718 | n,m=map(int,input().split())
a=[int(ss) for ss in input().split()]
a=sorted(a,reverse=True)
r="Yes"
for ii in range(m):
if a[ii]<1/(4*m):
r="No"
break
print(r) | n,m=map(int,input().split())
a=[int(ss) for ss in input().split()]
a=sorted(a,reverse=True)
r="Yes"
for ii in range(m):
if a[ii]<sum(a)/(4*m):
r="No"
break
print(r)
| [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 488,403 | 488,404 | u940622864 | python |
p02718 | n, m = map(int, input(). split())
lstr_a = input().split(" ")
lint_a = [int(n) for n in lstr_a]
alist = sorted(lint_a, reverse = True)
s = sum(alist)
if alist[m-1]>=s//(4*m):
print("Yes")
else:
print("No") | n, m = map(int, input(). split())
lstr_a = input().split(" ")
lint_a = [int(n) for n in lstr_a]
alist = sorted(lint_a, reverse = True)
s = sum(alist)
if alist[m-1]>=s/(4*m):
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,417 | 488,418 | u609093494 | python |
p02718 | (n,m)=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
a0 = sum(a)/(4*m)
m-=1
if a[m] > a0:
print("Yes")
else:
print("No") | (n,m)=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
a0 = sum(a)/(4*m)
m-=1
if a[m] >= a0:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,421 | 488,422 | u879921371 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
AA=sum(A)
count=0
for i in range(len(A)):
if A[i]>AA*(1/(4*M)):
count +=1
if count>=M:
print('Yes')
else:
print('No') | N,M=map(int,input().split())
A=list(map(int,input().split()))
AA=sum(A)
count=0
for i in range(len(A)):
if A[i]>=AA*(1/(4*M)):
count +=1
if count>=M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,423 | 488,424 | u341736906 | python |
p02718 | N,M= map(int, input().split())
A = list(map(int, input().split()))
all = sum(list(A))
p = int(1/(4*M)*all)
cnt = 0
for i in A:
if i >= p:
cnt += 1
if cnt >= M :
print('Yes')
else:
print('No') | N,M= map(int, input().split())
A = list(map(int, input().split()))
all = sum(list(A))
p = 1/(4*M)*all
cnt = 0
for i in A:
if i >= p:
cnt += 1
if cnt >= M :
print('Yes')
else:
print('No') | [
"call.remove",
"call.arguments.change"
] | 488,429 | 488,430 | u681811488 | python |
p02718 | N,M= map(int, input().split())
A = list(map(int, input().split()))
all = sum(list(A))
p = 1/(4*M)*all
cnt = 0
for i in A:
if i > p:
cnt += 1
if cnt >= M :
print('Yes')
else:
print('No') | N,M= map(int, input().split())
A = list(map(int, input().split()))
all = sum(list(A))
p = 1/(4*M)*all
cnt = 0
for i in A:
if i >= p:
cnt += 1
if cnt >= M :
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,431 | 488,430 | u681811488 | python |
p02718 | n,m= map(int,input().split())
l = list(map(int,input().split()))
count=0
c = sum(l)/(4*m)
for i in l:
if i>c:
count+=1
if count>=m:
print("Yes")
else:
print("No")
| n,m= map(int,input().split())
l = list(map(int,input().split()))
count=0
c = sum(l)/(4*m)
for i in l:
if i>=c:
count+=1
if count>=m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,434 | 488,435 | u548492494 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
ad=sum(a)
ad=ad//(4*m)
for i in range(m):
if a[i]<ad:
print("No")
break
else:
print("Yes")
| n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
#print(a)
ad=sum(a)
#print(ad)
ad=ad/(4*m)
#print(ad)
for i in range(m):
if a[i]<ad:
print("No")
break
else:
print("Yes")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,445 | 488,446 | u375695365 | python |
p02718 | N,M = map(int, input().split())
A = list(map(int, input().split()))
th = sum(A)*0.25/M
A.sort(reverse=True)
if A[M] >= th:
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A = list(map(int, input().split()))
th = sum(A)*0.25/M
A.sort(reverse=True)
if A[M-1] >= th:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 488,455 | 488,456 | u193657135 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
sum = sum(a)
cnt=0
for i in a:
if i > (sum/(4*m)):
cnt+=1
if cnt >= m:
print('Yes')
else:
print('No') | n,m=map(int,input().split())
a=list(map(int,input().split()))
sum = sum(a)
cnt=0
for i in a:
if i >=sum/(4*m):
cnt+=1
if cnt >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,459 | 488,460 | u238940874 | python |
p02718 | N, M = map(int, input().split(' '))
A = list(map(int, input().split(' ')))
def main(n, m, a):
# print(n,m,a)
x = [new_a for new_a in a if new_a >= sum(a) // (4 * m)]
# print(x)
if len(x) >= m:
res = 'Yes'
else:
res = 'No'
print(res)
main(N, M, A)
| N, M = map(int, input().split(' '))
A = list(map(int, input().split(' ')))
def main(n, m, a):
# print(n,m,a)
x = [new_a for new_a in a if not new_a < sum(a) / (4 * m)]
# print(x)
if len(x) >= m:
res = 'Yes'
else:
res = 'No'
print(res)
main(N, M, A)
| [
"expression.operator.compare.change",
"assignment.value.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 488,465 | 488,466 | u673101577 | python |
p02718 | n,m = map(int,input().split())
a= list(map(int,input().split()))
a = sorted(a)
a = a[::-1]
p = 1/(4*m)
s= sum(a)
p = p*s
if( a[m-1] >= p ):
print("YES")
else:
print("NO")
| n,m = map(int,input().split())
a= list(map(int,input().split()))
a = sorted(a)
a = a[::-1]
p = 1/(4*m)
s= sum(a)
p = p*s
# print(a[m-1])
if( a[m-1] >= p ):
print("Yes")
else:
print("No")
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 488,477 | 488,478 | u655347112 | python |
p02718 | lismn=input().split()
n=int(lismn[0])
m=int(lismn[1])
lisa=[int(x) for x in input().split()]
count=0
for i in lisa:
if sum(lisa)/4.0/m < i:
count+=1
if m<=count:
print("Yes")
else:
print("No")
| lismn=input().split()
n=int(lismn[0])
m=int(lismn[1])
lisa=[int(x) for x in input().split()]
count=0
for i in lisa:
if sum(lisa)/4.0/m <= i:
count+=1
if m<=count:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,479 | 488,480 | u699252226 | python |
p02718 | n,m = map(int,input().split())
a = sorted(list(map(int,input().split())),reverse=True)
def main():
s = sum(a)
thresh = s/4/m
if a[m-1]>thresh:
print('Yes')
else:
print('No')
if __name__ == "__main__":
main() | n,m = map(int,input().split())
a = sorted(list(map(int,input().split())),reverse=True)
def main():
s = sum(a)
thresh = s/4/m
if a[m-1]>=thresh:
print('Yes')
else:
print('No')
if __name__ == "__main__":
main()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,500 | 488,501 | u546338822 | python |
p02718 | #
def main():
n, m = map(int, input().split(" "))
a = [int(s) for s in input().split(" ")]
total = sum(a)
lim = total // (4 * m)
a = sorted(a, reverse=True)
count = 0
for i in a:
if i >= lim:
count += 1
else:
break
if count >= m:
print("Y... | #
def main():
n, m = map(int, input().split(" "))
a = [int(s) for s in input().split(" ")]
total = sum(a)
lim = total / (4 * m)
a = sorted(a, reverse=True)
count = 0
for i in a:
if i >= lim:
count += 1
else:
break
if count >= m:
print("Ye... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,506 | 488,507 | u628907033 | python |
p02718 | #
def main():
n, m = map(int, input().split(" "))
a = [int(s) for s in input().split(" ")]
total = sum(a)
lim = total // (4 * m)
a = sorted(a, reverse=True)
count = 0
for i in a:
if i > lim:
count += 1
else:
break
if count >= m:
print("Ye... | #
def main():
n, m = map(int, input().split(" "))
a = [int(s) for s in input().split(" ")]
total = sum(a)
lim = total / (4 * m)
a = sorted(a, reverse=True)
count = 0
for i in a:
if i >= lim:
count += 1
else:
break
if count >= m:
print("Ye... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,508 | 488,507 | u628907033 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
cnt =0
goukei = sum(a)
for i in range(m):
if a[i] <= (1/(4*m) * goukei):
continue
else:
cnt+=1
if cnt == m:
print("Yes")
else:
print("No")
| n,m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
cnt =0
goukei = sum(a)
for i in range(m):
if a[i] < (1/(4*m) * goukei):
continue
else:
cnt+=1
if cnt == m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,513 | 488,514 | u572012241 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
s = sum(a)
limit = s // (4*m)
for i in range(m):
if a[i] < limit:
print("No")
exit()
print("Yes")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
s = sum(a)
limit = s / (4*m)
for i in range(m):
if a[i] < limit:
print("No")
exit()
print("Yes")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,517 | 488,518 | u135847648 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
s = sum(a)
limit = s // 8
for i in range(m):
if a[i] < limit:
print("No")
exit()
print("Yes")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
s = sum(a)
limit = s / (4*m)
for i in range(m):
if a[i] < limit:
print("No")
exit()
print("Yes")
| [] | 488,519 | 488,518 | u135847648 | python |
p02718 | # -*- coding: utf-8 -*-
N,M = list(map(int,input().split()))
A = list(map(int,input().split()))
sre = (1/(4*M))*sum(A)
cor = []
for a in A:
if a > sre:
cor.append(a)
if len(cor) > M or len(cor) == M:
print('Yes')
else:
print('No') | # -*- coding: utf-8 -*-
N,M = list(map(int,input().split()))
A = list(map(int,input().split()))
sre = (1/(4*M))*sum(A)
cor = []
for a in A:
if a > sre or a == sre:
cor.append(a)
#print(len(cor))
if len(cor) > M or len(cor) == M:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 488,528 | 488,529 | u892227843 | python |
p02718 | line = input().rstrip().split(' ')
n = int(line[0])
m = int(line[1])
line = input().rstrip().split(' ')
a = [0] * n
total = 0
for i in range(n):
a[i] = int(line[i])
total += a[i]
list.sort(a, reverse=True)
b = total / (4 * m)
ans = 'Yes'
for i in range(m):
if a[i] < int(b):
ans = 'No'
print(ans) | line = input().rstrip().split(' ')
n = int(line[0])
m = int(line[1])
line = input().rstrip().split(' ')
a = [0] * n
total = 0
for i in range(n):
a[i] = int(line[i])
total += a[i]
list.sort(a, reverse=True)
b = total / (4 * m)
ans = 'Yes'
for i in range(m):
if a[i] < b:
ans = 'No'
print(ans) | [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 488,532 | 488,533 | u667687319 | python |
p02718 | import sys
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
n,m=nm()
a=nl()
j=0
count=sum(a)/(4*m)
for i in a:
if i>count:
j+=1
if j<m:
print("No")
... | import sys
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
n,m=nm()
a=nl()
j=0
count=sum(a)/(4*m)
for i in a:
if i>=count:
j+=1
if j<m:
print("No")... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,545 | 488,546 | u308289897 | python |
p02718 | N, M = map(int, input().split())
A = sorted(map(int, input().split()))
sum_a = sum(A)
border = sum_a // (4*M)
if A[-M] >= border:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A = sorted(map(int, input().split()))
sum_a = sum(A)
border = sum_a / (4*M)
if A[-M] >= border:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,549 | 488,550 | u799691369 | python |
p02718 | N, M = map(int, input().split())
A = sorted(map(int, input().split()))
sum_a = sum(A)
border = sum_a // (4*M)
if A[-M] > border:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A = sorted(map(int, input().split()))
sum_a = sum(A)
border = sum_a / (4*M)
if A[-M] >= border:
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"
] | 488,551 | 488,550 | u799691369 | python |
p02718 | import numpy as np
n,m,*a = map(int,open(0).read().split())
if np.count_nonzero(np.array(a)>sum(a)/4/m)>=m:
print("Yes")
else:
print("No") | import numpy as np
n,m,*a = map(int,open(0).read().split())
if np.count_nonzero(np.array(a)>=sum(a)/4/m)>=m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,575 | 488,576 | u857759499 | python |
p02718 | n,m = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
ans = 0
a_all = sum(a)
for x in a:
if x >= a_all // (4*m):
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | n,m = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
ans = 0
a_all = sum(a)
for x in a:
if x >= a_all / (4*m):
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,587 | 488,588 | u253681061 | python |
p02718 | N, M = [int(x) for x in input().strip().split(" ")]
A = [int(x) for x in input().strip().split(" ")]
border = sum(A) // (4 * M)
bordered = [a for a in A if a >= border]
print("Yes" if len(bordered) >= M else "No") | N, M = [int(x) for x in input().strip().split(" ")]
A = [int(x) for x in input().strip().split(" ")]
border = sum(A) / (4 * M)
bordered = [a for a in A if not (a < border)]
print("Yes" if len(bordered) >= M else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change"
] | 488,591 | 488,592 | u553600587 | python |
p02718 | N, M = [int(x) for x in input().strip().split(" ")]
A = [int(x) for x in input().strip().split(" ")]
border = sum(A) // (4 * M)
bordered = [a for a in A if a > border]
print("Yes" if len(bordered) >= M else "No") | N, M = [int(x) for x in input().strip().split(" ")]
A = [int(x) for x in input().strip().split(" ")]
border = sum(A) / (4 * M)
bordered = [a for a in A if not (a < border)]
print("Yes" if len(bordered) >= M else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"misc.opposites",
"expression.operator.compare.change"
] | 488,593 | 488,592 | u553600587 | python |
p02718 | N, M = map(int, input().split())
A = [int(a) for a in input().split()]
thr = sum(A) // (4 * M)
cnt = 0
for a in A:
if a >= thr:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No')
| N, M = map(int, input().split())
A = [int(a) for a in input().split()]
thr = (sum(A) - 1) // (4 * M) + 1
cnt = 0
for a in A:
if a >= thr:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No')
| [
"assignment.change"
] | 488,604 | 488,605 | u534953209 | python |
p02718 | n, m = [int(elem) for elem in input().split()]
a_lst = [int(elem) for elem in input().split()]
bd = sum(a_lst) / (4 * m)
cnt = 0
for a in a_lst:
if bd < a:
cnt += 1
if cnt >= m:
print("Yes")
else:
print("No") | n, m = [int(elem) for elem in input().split()]
a_lst = [int(elem) for elem in input().split()]
bd = sum(a_lst) / (4 * m)
cnt = 0
for a in a_lst:
if bd <= a:
cnt += 1
if cnt >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,608 | 488,609 | u047197186 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
ALL = sum(A)
base = ALL//(4*M)
cnt = 0
for i in A:
if i >base:
cnt += 1
if cnt >= M:
print("Yes")
else:
print("No") | N, M = map(int, input().split())
A = list(map(int, input().split()))
ALL = sum(A)
base = ALL/(4*M)
cnt = 0
for i in A:
if i >=base:
cnt += 1
if cnt >= 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"
] | 488,610 | 488,611 | u163501259 | python |
p02718 | N,M = map(int,input().split())
*A, = map(int,input().split())
total = sum(A)
border = total/(4*M)
X=[1 for i in range(N) if A[i]>border]
ans = 'Yes' if len(X)>=M else 'No'
print(ans)
| N,M = map(int,input().split())
*A, = map(int,input().split())
total = sum(A)
border = total/(4*M)
X=[1 for i in range(N) if A[i]>=border]
ans = 'Yes' if len(X)>=M else 'No'
print(ans) | [
"expression.operator.compare.change",
"assignment.value.change"
] | 488,612 | 488,613 | u272682534 | python |
p02718 | n,m = map(int,input().split())
a=map(int,input().split())
a=sorted(a)
if a[-m] > sum(a)/4/m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
a=map(int,input().split())
a=sorted(a)
if a[-m] >= sum(a)/4/m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,616 | 488,617 | u819593641 | python |
p02718 | n,m = map(int,input().split())
a=map(int,input().split())
a=sorted(a)
if a[m-1] > sum(a)/4/m:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
a=map(int,input().split())
a=sorted(a)
if a[-m] >= sum(a)/4/m:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"expression.operator.compare.change"
] | 488,618 | 488,617 | u819593641 | python |
p02718 | ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
n, m = nm()
aa = nl()
mx = sum(aa)/(4*m)
a = sorted(aa)[::-1]
for i in range(m):
if a[i] <= mx:
print('No')
exit()
print('Yes')
| ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
n, m = nm()
aa = nl()
mx = sum(aa)/(4*m)
a = sorted(aa)[::-1]
for i in range(m):
if a[i] < mx:
print('No')
exit()
print('Yes')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,619 | 488,620 | u963915126 | python |
p02718 | n,m = list(map(int, input().split()))
a = list(map(int, input().split()))
b = 0
s = sum(a)
d = s*(1/(4*m))
for i in a:
if i>d:
b += 1
if b>=m:
print('Yes')
else:
print('No')
| n,m = list(map(int, input().split()))
a = list(map(int, input().split()))
b = 0
s = sum(a)
d = s*(1/(4*m))
for i in a:
if i>=d:
b += 1
if b>=m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,625 | 488,626 | u870575557 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int,input().split()))
x = 0
for i in range(n):
if A[i] > sum(A)/(4*m):
x += 1
print("YNeos"[m > x::2]) | n,m = map(int,input().split())
A = list(map(int,input().split()))
x = 0
for i in range(n):
if A[i] >= sum(A)/(4*m):
x += 1
print("YNeos"[m > x::2]) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,629 | 488,630 | u883040023 | python |
p02718 | N,M =map(int,input().split())
A_list = list(map(int,input().split()))
A_sum = sum(A_list)
cnt = 0
for i in range(N):
if A_list[i] >= A_sum*(1/4*M):
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | N,M =map(int,input().split())
A_list = list(map(int,input().split()))
A_sum = sum(A_list)
cnt = 0
for i in range(N):
if A_list[i] >= A_sum/(4*M):
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 488,633 | 488,634 | u869917163 | python |
p02718 | from sys import stdin
input = stdin.readline
n, k = map(int, input().split())
a = [int(x) for x in input().split()]
vote = sum(a) / 4 / m
a.sort()
a.reverse()
print("Yes" if a[m - 1] >= vote else "No") | from sys import stdin
input = stdin.readline
n, m = map(int, input().split())
a = [int(x) for x in input().split()]
vote = sum(a) / 4 / m
a.sort()
a.reverse()
print("Yes" if a[m - 1] >= vote else "No") | [
"assignment.variable.change",
"identifier.change"
] | 488,643 | 488,644 | u304974600 | python |
p02718 | from sys import stdin
input = stdin.readline
n, m = map(int, input().split())
a = [int(x) for x in input().split()]
vote = sum(a) / 4 / m
a.sort()
a.reverse()
print("Yes" if a[m - 1] > vote else "No") | from sys import stdin
input = stdin.readline
n, m = map(int, input().split())
a = [int(x) for x in input().split()]
vote = sum(a) / 4 / m
a.sort()
a.reverse()
print("Yes" if a[m - 1] >= vote else "No") | [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 488,645 | 488,644 | u304974600 | python |
p02718 | n,m=(int(i) for i in input().split())
l=[int(i) for i in input().split()]
c=0
s=sum(l)
for i in l:
if(i>=(s//(4*m))):
c+=1
if(c<m):
print("No")
else:
print("Yes") | n,m=(int(i) for i in input().split())
l=[int(i) for i in input().split()]
c=0
s=sum(l)
for i in l:
if(i>=(s/(4*m))):
c+=1
if(c<m):
print("No")
else:
print("Yes") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,646 | 488,647 | u901144784 | python |
p02718 | #!python3.4.3
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") | #!python3.4.3
N, M = map(int, input().split(' '))
A = list(map(int, input().split(' ')))
total = sum(A)
count = 0
for a in A:
if not a < total/(4*M):
count+=1
if count >= M:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 488,648 | 488,649 | u661347997 | python |
p02718 | N,M = map(int, input().split())
A = list(map(int, input().split()))
A_sum = sum(A)
tmp = A_sum/4/M
A.sort()
if A[M-1] <tmp:
print("No")
else:
print("Yes") | N,M = map(int, input().split())
A = list(map(int, input().split()))
A_sum = sum(A)
tmp = A_sum/4/M
A.sort()
if A[N-M] <tmp:
print("No")
else:
print("Yes") | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"identifier.replace.add",
"literal.replace.remove"
] | 488,654 | 488,655 | u200527996 | python |
p02718 | import sys
import numpy as np
sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
printV = lambda x: print(*x, sep="\n")
printH = lambda x: print(" ".join(map(str,x)))
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
de... | import sys
import numpy as np
sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
printV = lambda x: print(*x, sep="\n")
printH = lambda x: print(" ".join(map(str,x)))
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
de... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,658 | 488,659 | u624696727 | python |
p02718 | n,m=map(int,input().split())
v=list(map(int,input().split()))
v2=sorted(v, reverse=True)
vsum=sum(v)
cri=vsum/(4*m)
if v2[m-1]>cri:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
v=list(map(int,input().split()))
v2=sorted(v, reverse=True)
vsum=sum(v)
cri=vsum/(4*m)
if v2[m-1]>=cri:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,664 | 488,665 | u353652911 | python |
p02718 | N, M = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
total = sum(a)
tmp = 1 / (4 * M)
cnt = 0
for i in a:
if i > total * tmp:
cnt += 1
else:
break
if cnt >= M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
total = sum(a)
tmp = 1 / (4 * M)
cnt = 0
for i in a:
if i >= total * tmp:
cnt += 1
else:
break
if cnt >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,666 | 488,667 | u311379832 | python |
p02718 | N, M = (int(i) for i in input().split())
A = [int(i) for i in input().split()]
import numpy as np
thrs = sum(A) / (4 * M)
if sum(np.array(A) > thrs) >= M:
print('Yes')
else:
print('No')
| N, M = (int(i) for i in input().split())
A = [int(i) for i in input().split()]
import numpy as np
thrs = sum(A) / (4 * M)
if sum(np.array(A) >= thrs) >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,680 | 488,681 | u909991537 | python |
p02718 | a,b = [int(x) for x in input().split()]
l = list(map(int,input().split()))
total = sum(l)
l= sorted(l)[::-1];
if(l[b-1]*4*b>total):
print("Yes")
else:
print("No")
| a,b = [int(x) for x in input().split()]
l = list(map(int,input().split()))
total = sum(l)
l= sorted(l)[::-1];
if(l[b-1]*4*b>=total):
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,688 | 488,689 | u981269105 | python |
p02718 | import numpy as np
from sys import stdin
def get_result(data):
N, M = data[0]
A = np.array(data[1])
total = sum(A)
pop_goods = A[A > total/(4*M)]
if len(pop_goods) >= M:
return 'Yes'
return 'No'
if __name__ == '__main__':
raw_data = [val.rstrip() for val in stdin.readlines()]
... | import numpy as np
from sys import stdin
def get_result(data):
N, M = data[0]
A = np.array(data[1])
total = sum(A)
pop_goods = A[A >= total/(4*M)]
if len(pop_goods) >= M:
return 'Yes'
return 'No'
if __name__ == '__main__':
raw_data = [val.rstrip() for val in stdin.readlines()]
... | [
"expression.operator.compare.change",
"assignment.value.change",
"variable_access.subscript.index.change"
] | 488,694 | 488,695 | u659302753 | python |
p02718 | n,m = map(int,input().split())
a = [int(k) for k in input().split()]
cnt = 0
for i in range(n):
if 4*m*a[i] >= 1:
cnt += 1
print("Yes" if cnt >= m else "No") | n,m = map(int,input().split())
a = [int(k) for k in input().split()]
cnt = 0
for i in range(n):
if 4*m*a[i] >= sum(a):
cnt += 1
print("Yes" if cnt >= m else "No") | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 488,700 | 488,701 | u854685063 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
a = [i for i in a if i >= sum(a)/4*m]
if len(a) < m:
print("No")
else:
print("Yes") | n,m = map(int, input().split())
a = list(map(int, input().split()))
b = [i for i in a if i >= sum(a)/4/m]
if len(b) < m:
print("No")
else:
print("Yes") | [
"assignment.variable.change",
"identifier.change",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 488,702 | 488,703 | u072606168 | python |
p02718 | N,M = map(int, input().split())
A = list(map(int, input().split()))
sum = 0
for i in range(N):
sum = sum + A[i]
judge = 0
for i in range(N):
if A[i] >= sum//(4*M):
judge = judge +1
if judge >= M:
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A = list(map(int, input().split()))
sum = 0
for i in range(N):
sum = sum + A[i]
judge = 0
for i in range(N):
if A[i] >= sum/(4*M):
judge = judge +1
if judge >= M:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,712 | 488,713 | u621509924 | python |
p02718 | #def main(S, b):
if __name__ == '__main__':
n, m = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
cnt = 0
for i in range(n):
if (a[i] > s / 4 / m):
cnt += 1
#print(cnt)
if (cnt >= m):
print("Yes")
else:
print("No")
| #def main(S, b):
if __name__ == '__main__':
n, m = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
cnt = 0
for i in range(n):
if (a[i] >= s / 4 / m):
cnt += 1
#print(cnt)
if (cnt >= m):
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,714 | 488,715 | u442810826 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
ans = 'Yes'
A.sort(reverse=True)
print(A)
for i in range(M):
if A[i] < sum(A)/(4*M):
ans = 'No'
break
print(ans)
| N, M = map(int, input().split())
A = list(map(int, input().split()))
ans = 'Yes'
A.sort(reverse=True)
for i in range(M):
if A[i] < sum(A)/(4*M):
ans = 'No'
break
print(ans)
| [
"call.remove"
] | 488,716 | 488,717 | u459150945 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
ans = 'Yes'
A.sort(reverse=True)
for i in range(M):
if A[i] < sum(A)//(4*M):
ans = 'No'
break
print(ans)
| N, M = map(int, input().split())
A = list(map(int, input().split()))
ans = 'Yes'
A.sort(reverse=True)
for i in range(M):
if A[i] < sum(A)/(4*M):
ans = 'No'
break
print(ans)
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,718 | 488,717 | u459150945 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
ans = 'Yes'
A.sort(reverse=True)
for i in range(M):
if A[i] < sum(A)/(4*(i+1)):
ans = 'No'
break
print(ans)
| N, M = map(int, input().split())
A = list(map(int, input().split()))
ans = 'Yes'
A.sort(reverse=True)
for i in range(M):
if A[i] < sum(A)/(4*M):
ans = 'No'
break
print(ans)
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 488,719 | 488,717 | u459150945 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
ans=0
al=0
for i in range(n):
al+=a[i]
p=al/(4*m)
for i in range(n):
if p<a[i]:
ans+=1
print("Yes" if m<=ans else "No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
ans=0
al=0
for i in range(n):
al+=a[i]
p=al/(4*m)
for i in range(n):
if p<=a[i]:
ans+=1
print("Yes" if m<=ans else "No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,728 | 488,729 | u548303713 | python |
p02718 | N, M = map(int, input().split())
A = sorted(list(map(int, input().split())), reverse=True)
th = sum(A) / 4 * M
flag = True
for i in range(M):
if A[i] < th:
flag = False
break
if flag:
print("Yes")
else:
print("No") | N, M = map(int, input().split())
A = sorted(list(map(int, input().split())), reverse=True)
th = sum(A) / (4 * M)
flag = True
for i in range(M):
if A[i] < th:
flag = False
break
if flag:
print("Yes")
else:
print("No") | [] | 488,730 | 488,731 | u332933608 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
a.reverse()
if a[m-1]>sum(a)/4/m:
print('Yes')
else:
print('No')
| n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
a.reverse()
if a[m-1]>=sum(a)/4/m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,736 | 488,737 | u903460784 | python |
p02718 | def solve():
N, M = map(int, input().split())
A = list(map(int, input().split()))
s = sum(A)
b = s // (4 * M)
c = 0
for a in A:
if a >= b:
c+=1
return 'Yes' if c >= M else 'No'
print(solve()) | def solve():
N, M = map(int, input().split())
A = list(map(int, input().split()))
s = sum(A)
b = s / (4 * M)
c = 0
for a in A:
if a >= b:
c+=1
return 'Yes' if c >= M else 'No'
print(solve()) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,738 | 488,739 | u112317104 | python |
p02718 | hoge = input().split()
N = int(hoge[0])
M = int(hoge[1])
A_list = list(map(int,input().split()))
sugoi = 4 * M
_sum = sum(A_list)
ok = 0
for i in range(len(A_list)):
if A_list[i] > _sum / sugoi:
ok += 1
if ok >= M:
print("Yes")
else:
print("No") | hoge = input().split()
N = int(hoge[0])
M = int(hoge[1])
A_list = list(map(int,input().split()))
sugoi = 4 * M
_sum = sum(A_list)
ok = 0
for i in range(len(A_list)):
if A_list[i] >= _sum / sugoi:
ok += 1
if ok >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,744 | 488,745 | u408262366 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
boder = sum(A) / (4 * M)
counter = 0
for i in A:
if i > boder:
counter += 1
if counter >= M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
boder = sum(A) / (4 * M)
counter = 0
for i in A:
if i >= boder:
counter += 1
if counter >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,746 | 488,747 | u508426820 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
boder = sum(A) / (4 * M)
counter = 0
for i in A:
if i > boder:
counter += 1
if counter > M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
boder = sum(A) / (4 * M)
counter = 0
for i in A:
if i >= boder:
counter += 1
if counter >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,748 | 488,747 | u508426820 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
boder = sum(A) / 4 / M
counter = 0
for i in A:
if i < boder:
counter += 1
if counter > M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
boder = sum(A) / (4 * M)
counter = 0
for i in A:
if i >= boder:
counter += 1
if counter >= 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"
] | 488,749 | 488,747 | u508426820 | python |
p02718 | import sys
N, M = map(int, sys.stdin.readline().split())
li = list(map(int, sys.stdin.readline().split()))
li.sort(reverse=False)
if li[M-1] < sum(li)/(4*M):
print('No')
else:
print('Yes')
| import sys
N, M = map(int, sys.stdin.readline().split())
li = list(map(int, sys.stdin.readline().split()))
li.sort(reverse=True)
if li[M-1] < sum(li)/(4*M):
print('No')
else:
print('Yes')
| [
"misc.opposites",
"call.arguments.change",
"call.arguments.keyword_argument.change"
] | 488,752 | 488,753 | u823885866 | python |
p02718 | import sys
N, M = map(int, sys.stdin.readline().split())
li = list(map(int, sys.stdin.readline().split))
li.sort(reverse=False)
if li[M-1] < sum(li)/(4*M):
print('No')
else:
print('Yes') | import sys
N, M = map(int, sys.stdin.readline().split())
li = list(map(int, sys.stdin.readline().split()))
li.sort(reverse=True)
if li[M-1] < sum(li)/(4*M):
print('No')
else:
print('Yes')
| [
"call.add",
"misc.opposites",
"call.arguments.change",
"call.arguments.keyword_argument.change"
] | 488,754 | 488,753 | u823885866 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
b = sum(A)//(4*M)
c = len(list(filter(lambda x: x>b, A)))
print("Yes" if c >= M else "No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
b = sum(A)/(4*M)
c = len(list(filter(lambda x: x>=b, A)))
print("Yes" if c >= M else "No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"call.arguments.change"
] | 488,757 | 488,758 | u978178314 | python |
p02718 | def resolve():
'''
code here
'''
N, M = [int(item) for item in input().split()]
A = [int(item) for item in input().split()]
cnt = 0
A_sum = sum(A)
for a in A:
if 1 / (4 * M) * A_sum < a:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No'... | def resolve():
'''
code here
'''
N, M = [int(item) for item in input().split()]
A = [int(item) for item in input().split()]
cnt = 0
A_sum = sum(A)
for a in A:
if 1 / (4 * M) * A_sum <= a:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,759 | 488,760 | u591503175 | python |
p02718 |
n, m = map(int, input().split())
a = list(map(int, input().split()))
mean = sum(a) / n / 4
cnt = 0
for i in range(n):
if a[i] >= mean:
cnt += 1
print("Yes" if cnt >= m else "No") |
n, m = map(int, input().split())
a = list(map(int, input().split()))
mean = sum(a) / m / 4
cnt = 0
for i in range(n):
if a[i] >= mean:
cnt += 1
print("Yes" if cnt >= m else "No") | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 488,763 | 488,764 | u502731482 | python |
p02718 | n,m=map(int,input().split())
l=list(map(int,input().split()))
cnt=0
for i in range(n):
if l[i] > sum(l)*(1/(4*m)):
cnt += 1
else:
continue
if cnt >= m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
l=list(map(int,input().split()))
cnt=0
for i in range(n):
if l[i] >= sum(l)*(1/(4*m)):
cnt += 1
else:
continue
if cnt >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,765 | 488,766 | u947327691 | python |
p02718 | # -*- coding: utf-8 -*-
N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
if (A[M - 1] > sum(A) / (4 * M)):
print('Yes')
else:
print('No') | # -*- coding: utf-8 -*-
N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
A = sorted(A, 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"
] | 488,767 | 488,768 | u366963613 | python |
p02718 | # -*- coding: utf-8 -*-
N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
if (A[M - 1] > sum(A) / (4 * M)):
print('yes')
else:
print('No') | # -*- coding: utf-8 -*-
N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
A = sorted(A, 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",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 488,769 | 488,768 | u366963613 | python |
p02718 | N, M = map(int, input().split())
a = list(map(int, input().split()))
kijun = sum(a)/(4*M)
ans = 0
for i in a:
if i > kijun:
ans += 1
if ans >= M:
print("Yes")
else:
print("No") | N, M = map(int, input().split())
a = list(map(int, input().split()))
kijun = sum(a)/(4*M)
ans = 0
for i in a:
if i >= kijun:
ans += 1
if ans >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,777 | 488,778 | u931462344 | python |
p02718 | n,m=map(int,input().split())
a=sorted(list(map(int,input().split())),reverse=True)
print(a)
total=sum(a)
import math
border=math.ceil(total/(4*m))
cnt=0
for i in a:
if i>=border:
cnt+=1
print('Yes' if cnt>=m else 'No') | n,m=map(int,input().split())
a=sorted(list(map(int,input().split())),reverse=True)
total=sum(a)
import math
border=math.ceil(total/(4*m))
cnt=0
for i in a:
if i>=border:
cnt+=1
print('Yes' if cnt>=m else 'No')
| [
"call.remove"
] | 488,783 | 488,784 | u576917603 | python |
p02718 | from sys import stdin
from sys import setrecursionlimit
from math import ceil
from collections import Counter, deque, defaultdict
setrecursionlimit(1000000)
# INF = float('inf')
INF = int(1e10)
def input():
return stdin.readline()[:-1]
def main():
from builtins import int, map
N, M = map(int, input().spl... | from sys import stdin
from sys import setrecursionlimit
from math import ceil
from collections import Counter, deque, defaultdict
setrecursionlimit(1000000)
# INF = float('inf')
INF = int(1e10)
def input():
return stdin.readline()[:-1]
def main():
from builtins import int, map
N, M = map(int, input().spl... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,788 | 488,789 | u047102107 | python |
p02718 | n,m = input().split(' ')
l = [int(x) for x in input().split(' ')]
l.sort()
if sum(l) >= l[-int(m)]*4*int(m):
print("No")
else:
print("Yes")
| n,m = input().split(' ')
l = [int(x) for x in input().split(' ')]
l.sort()
if sum(l) > l[-int(m)]*4*int(m):
print("No")
else:
print("Yes")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,790 | 488,791 | u453683890 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int , input().split()))
s = sum(a)
ans = 0
for ai in a:
if ai*4*m > 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)
ans = 0
for ai in a:
if ai*4*m >= s:
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,797 | 488,798 | u558242240 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.