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 = list(map(int, input().split()))
a_i = list(map(int, input().split()))
v_sum = sum(a_i)
n = len([a for a in a_i if a >= (1/(4*M))])
if n >= M:
print('Yes')
else:
print('No') | N, M = list(map(int, input().split()))
a_i = list(map(int, input().split()))
v_sum = sum(a_i)
n = len([a for a in a_i if a >= (v_sum/(4*M))])
if n >= M:
print('Yes')
else:
print('No') | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change"
] | 488,844 | 488,845 | u551056021 | python |
p02718 | N, M = list(map(int, input().split()))
a_i = list(map(int, input().split()))
v_sum = sum(a_i)
n = len([a for a in a_i if a >= (1/(4*M))])
if n >= M:
print('yes')
else:
print('no') | N, M = list(map(int, input().split()))
a_i = list(map(int, input().split()))
v_sum = sum(a_i)
n = len([a for a in a_i if a >= (v_sum/(4*M))])
if n >= M:
print('Yes')
else:
print('No') | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 488,846 | 488,845 | u551056021 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
SUM_A = sum(A)
ans = 0
for i in range(N):
if A[i]>SUM_A/(4*M):
ans += 1
if ans >= M :
print("Yes")
else:
print("No") | N, M = map(int, input().split())
A = list(map(int, input().split()))
SUM_A = sum(A)
ans = 0
for i in range(N):
if A[i]>=SUM_A/(4*M):
ans += 1
if ans >= M :
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,855 | 488,856 | u212786022 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a_net = [k for k in a if k > (sum(a)/(4*m))]
if len(a_net) >= m:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a_net = [k for k in a if k >= (sum(a)/(4*m))]
if len(a_net) >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"assignment.value.change"
] | 488,857 | 488,858 | u065578867 | python |
p02718 | N,M = map(int,input().split())
A=list(map(int, input().split()))
A_sum = sum(A)
c=0
for i in range(len(A)):
if A[i] >= A_sum/(M*4):
c+=1
if M < c:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A=list(map(int, input().split()))
A_sum = sum(A)
c=0
for i in range(len(A)):
if A[i] >= A_sum/(M*4):
c+=1
if c >= M:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 488,859 | 488,860 | u841599623 | python |
p02718 | n,m = map(int,input().split())
l = sorted(list(map(int,input().split())))[::-1]
s = float(sum(l)/4*m)
t = "Yes"
for i in range(m):
if l[i]>=s:
t = "No"
print(t)
| n,m = map(int,input().split())
l = sorted(list(map(int,input().split())))[::-1]
s = float(sum(l)/(4*m))
t = "Yes"
for i in range(m):
if l[i]<s:
t = "No"
break
print(t) | [
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.break.add"
] | 488,865 | 488,866 | u288430479 | python |
p02718 | N, M = map(int, input().split())
A = [int(p) for p in input().split()]
sumA = sum(A)
count = 0
for i in A:
if(i > sumA/(4*M)):
count += 1
if(count > M-1):
print("Yes")
else:
print("No") | N, M = map(int, input().split())
A = [int(p) for p in input().split()]
sumA = sum(A)
count = 0
for i in A:
if(i >= sumA/(4*M)):
count += 1
if(count >= M):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 488,869 | 488,870 | u064264248 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
total = sum(a)
canPick = True
for i in range(m):
if a[m] < total // (4 * m):
canPick = False
if canPick is True:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
total = sum(a)
canPick = True
for i in range(m):
if a[i] < total / (4 * m):
canPick = False
if canPick is True:
print("Yes")
else:
print("No")
| [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 488,871 | 488,872 | u974792613 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
total = sum(a)
canPick = True
for i in range(m):
if a[m] < total / (4 * m):
canPick = False
if canPick is True:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
total = sum(a)
canPick = True
for i in range(m):
if a[i] < total / (4 * m):
canPick = False
if canPick is True:
print("Yes")
else:
print("No")
| [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 488,873 | 488,872 | u974792613 | python |
p02718 | import sys
N,M=map(int,input().split())
A=list(map(int,input().split()))
total=sum(A)
sou=1/(M*4)
s=0
for a in A:
tmp=a/total
if(tmp > sou):
s+=1
if(s == M):
print("Yes")
sys.exit()
print('No') | import sys
N,M=map(int,input().split())
A=list(map(int,input().split()))
total=sum(A)
sou=1/(M*4)
s=0
for a in A:
tmp=a/total
if(tmp >= sou):
s+=1
if(s == M):
print("Yes")
sys.exit()
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,874 | 488,875 | u301624971 | python |
p02718 | def main():
n, m = map(int, input().split())
data = list(map(int, input().split()))
sum_v = sum(data)
count = 0
for d in data:
if sum_v / ( 4 * m ) < d:
count += 1
else:
pass
if count >= m:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main() | def main():
n, m = map(int, input().split())
data = list(map(int, input().split()))
sum_v = sum(data)
count = 0
for d in data:
if sum_v / ( 4 * m ) <= d:
count += 1
else:
pass
if count >= m:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main() | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,878 | 488,879 | u534308356 | python |
p02718 | n, m = map(int, input().split())
a_list = list(map(int, input().split()))
tot_num = sum(a_list)
selectable = len([el for el in a_list if el>=tot_num/4*m]) >= m
if selectable:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
a_list = list(map(int, input().split()))
tot_num = sum(a_list)
selectable = len([el for el in a_list if el>=tot_num/4/m]) >= m
if selectable:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 488,880 | 488,881 | u621345513 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
t=sum(a)
cnt=0
d=int(t/(4*m))
for i in range(n):
if d<=a[i]:
cnt+=1
if cnt>=m:
print("Yes")
else:
print("No")
| n,m=map(int,input().split())
a=list(map(int,input().split()))
t=sum(a)
cnt=0
d=(t/(4*m))
for i in range(n):
if d<=a[i]:
cnt+=1
if cnt>=m:
print("Yes")
else:
print("No")
| [] | 488,917 | 488,918 | u758831502 | python |
p02718 | n,m = (int(x) for x in input().split())
la = list(map(int, input().split()))
h = 0
s = sum(la)
for i in range(n):
if la[i] > s/(4*m):
h += 1
if h >= m:
print("Yes")
else:
print("No") | n,m = (int(x) for x in input().split())
la = list(map(int, input().split()))
h = 0
s = sum(la)
for i in range(n):
if la[i] >= s/(4*m):
h += 1
if h >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,919 | 488,920 | u463068683 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
ashi=sum(a)/4*m
ans="No"
a=[i for i in a if i >=ashi]
if len(a)>=m:
ans="Yes"
print(ans) | n,m=map(int,input().split())
a=list(map(int,input().split()))
ashi=sum(a)/(4*m)
ans="No"
b=[i for i in a if i >=ashi]
if len(b)>=m:
ans="Yes"
print(ans) | [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 488,921 | 488,922 | u943057856 | python |
p02718 | n,m=map(int,input().split())
A=list(map(int,input().split()))
cnt=0
s=sum(A)
for i in range(n):
if A[i]>=s*(1/4*m):
cnt += 1
if cnt>=m:
print("Yes")
else:
print("No")
| n,m=map(int,input().split())
A=list(map(int,input().split()))
cnt=0
s=sum(A)
for i in range(n):
if A[i]>=s*(1/(4*m)):
cnt += 1
if cnt>=m:
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change"
] | 488,929 | 488,930 | u016901717 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
count = 0
for i in A:
if i > total / (4 * m):
count += 1
if count >= m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
count = 0
for i in A:
if i >= total / (4 * m):
count += 1
if count >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,933 | 488,934 | u979362546 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
sum_vote=sum(a)
least_vote=int((sum_vote/(4*m)))
if(a[-1*m]>=least_vote):
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
sum_vote=sum(a)
least_vote=sum_vote/(4*m)
if(a[-1*m]>=least_vote):
print("Yes")
else:
print("No") | [
"call.remove",
"call.arguments.change"
] | 488,937 | 488,938 | u010090035 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
for i in range(N):
if 1/4/M*sum(A)<A[i]:
cnt += 1
if cnt>=M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
for i in range(N):
if 1/4/M*sum(A)<=A[i]:
cnt += 1
if cnt>=M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,943 | 488,944 | u450147945 | python |
p02718 | def count_section_by_zero(data):
count = 0
flg = False
start = 0
for i, d in enumerate(data):
if flg is False and d != 0:
count += 1
flg = True
if d == 0:
flg = False
return count
def input_list():
return list(map(int, input().split()))
def input_list_str():
return list(... | def count_section_by_zero(data):
count = 0
flg = False
start = 0
for i, d in enumerate(data):
if flg is False and d != 0:
count += 1
flg = True
if d == 0:
flg = False
return count
def input_list():
return list(map(int, input().split()))
def input_list_str():
return list(... | [
"assignment.value.change"
] | 488,959 | 488,960 | u088552457 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int,input().split()))
s = sum(A)
A.sort(reverse=True)
if A[m] >= s*1/(4*m):
print('Yes')
else:
print('No') | n,m = map(int,input().split())
A = list(map(int,input().split()))
s = sum(A)
A.sort(reverse=True)
if A[m-1] >= s*1/(4*m):
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 488,961 | 488,962 | u731436822 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int, input().split()))
popular = list(filter(lambda e: e>(1/(4*m))*sum(a),a))
print("Yes" if len(popular) >= m else "No")
| n,m = map(int,input().split())
a = list(map(int, input().split()))
popular = list(filter(lambda e: e>=(1/(4*m))*sum(a),a))
print("Yes" if len(popular) >= m else "No")
| [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 488,968 | 488,969 | u550835660 | python |
p02718 | (N, M) = [int(x) for x in input().split()]
line=[int(x) for x in input().split()]
cutoff=sum(line)/(4*M)
count=0
for i in line:
if i>=cutoff:
count+=1
if count>M:
print("Yes")
else:
print("No")
| (N, M) = [int(x) for x in input().split()]
line=[int(x) for x in input().split()]
cutoff=sum(line)/(4*M)
count=N
for i in line:
if i<cutoff:
count-=1
if count>=M:
print("Yes")
else:
print("No")
| [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.change"
] | 488,974 | 488,975 | u207309781 | python |
p02718 | (N, M) = [int(x) for x in input().split()]
line=[int(x) for x in input().split()]
cutoff=sum(line)/(4*M)
count=0
for i in line:
if i>cutoff:
count+=1
if count>M:
print("Yes")
else:
print("No")
| (N, M) = [int(x) for x in input().split()]
line=[int(x) for x in input().split()]
cutoff=sum(line)/(4*M)
count=N
for i in line:
if i<cutoff:
count-=1
if count>=M:
print("Yes")
else:
print("No")
| [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.change"
] | 488,976 | 488,975 | u207309781 | python |
p02718 | # coding: utf-8
# Your code here!
# coding: utf-8
import sys
sys.setrecursionlimit(10000000)
#const
dxdy=((1,0),(0,1))
# my functions here!
def pin(type=int):
return map(type,input().rstrip().split())
def resolve():
N,M=pin()
A=sorted(list(pin()))
A.reverse()
p=(sum(A))//(4*M)
#print(sum(A),A)... | # coding: utf-8
# Your code here!
# coding: utf-8
import sys
sys.setrecursionlimit(10000000)
#const
dxdy=((1,0),(0,1))
# my functions here!
def pin(type=int):
return map(type,input().rstrip().split())
def resolve():
N,M=pin()
A=sorted(list(pin()))
A.reverse()
p=(sum(A))/(4*M)
#print(sum(A),A)
... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"io.output.change"
] | 488,981 | 488,982 | u857428111 | python |
p02718 | # coding: utf-8
# Your code here!
# coding: utf-8
import sys
sys.setrecursionlimit(10000000)
#const
dxdy=((1,0),(0,1))
# my functions here!
def pin(type=int):
return map(type,input().rstrip().split())
def resolve():
N,M=pin()
A=sorted(list(pin()))
A.reverse()
p=(sum(A)+1)//(4*M)
#print(sum(A),... | # coding: utf-8
# Your code here!
# coding: utf-8
import sys
sys.setrecursionlimit(10000000)
#const
dxdy=((1,0),(0,1))
# my functions here!
def pin(type=int):
return map(type,input().rstrip().split())
def resolve():
N,M=pin()
A=sorted(list(pin()))
A.reverse()
p=(sum(A))/(4*M)
#print(sum(A),A)
... | [
"expression.operation.binary.remove",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,983 | 488,982 | u857428111 | python |
p02718 | # coding: utf-8
# Your code here!
# coding: utf-8
import sys
sys.setrecursionlimit(10000000)
#const
dxdy=((1,0),(0,1))
# my functions here!
def pin(type=int):
return map(type,input().rstrip().split())
def resolve():
N,M=pin()
A=sorted(list(pin()))
A.reverse()
p=sum(A)//(4*M)
#print(sum(A),A)
... | # coding: utf-8
# Your code here!
# coding: utf-8
import sys
sys.setrecursionlimit(10000000)
#const
dxdy=((1,0),(0,1))
# my functions here!
def pin(type=int):
return map(type,input().rstrip().split())
def resolve():
N,M=pin()
A=sorted(list(pin()))
A.reverse()
p=(sum(A))/(4*M)
#print(sum(A),A)
... | [
"assignment.value.change",
"expression.operation.binary.change"
] | 488,984 | 488,982 | u857428111 | python |
p02718 | N, M = map(int, input().split())
A = [int(i) for i in input().split()]
A.sort(reverse=True)
print(A)
if A[M - 1] * 4 * M >= sum(A) :
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A = [int(i) for i in input().split()]
A.sort(reverse=True)
if A[M - 1] * 4 * M >= sum(A):
print('Yes')
else:
print('No')
| [
"call.remove"
] | 488,989 | 488,990 | u652583512 | python |
p02718 | n,m= map(int,input().split())
l = list(map(int,input().split()))
s = sum(l)
r=s/(4*m)
cnt=0
for i in l:
if i>r:
cnt=cnt+1
if cnt>=m:
print("Yes")
else:
print("No")
| n,m= map(int,input().split())
l = list(map(int,input().split()))
s = sum(l)
r=s/(4*m)
cnt=0
for i in l:
if i>=r:
cnt=cnt+1
if cnt>=m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,998 | 488,999 | u732743460 | python |
p02718 | n,m=map(int,input().split())
ans=0
lis=list(map(int,input().split()))
for num in lis:
if num*4*m>=n:
ans+=1
if ans >=m:
print("Yes")
else:print("No") | n,m=map(int,input().split())
ans=0
lis=list(map(int,input().split()))
for num in lis:
if num*4*m>=sum(lis):
ans+=1
if ans >=m:
print("Yes")
else:print("No")
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 489,017 | 489,018 | u667024514 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
suma = sum(a)
filtera = [i for i in a if i >= 1/(4*m)]
if len(filtera) >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
suma = sum(a)
filtera = [i for i in a if i >= suma*1/(4*m)]
if len(filtera) >= m:
print("Yes")
else:
print("No") | [
"assignment.change"
] | 489,029 | 489,030 | u626881915 | python |
p02718 | N,M = map(int, input().split())
A = sorted(list(map(int, input().split())), reverse=True)
S = sum(A)
if A[M-1]>S/(4*M):
print('Yes')
else:
print('No')
| N,M = map(int, input().split())
A = sorted(list(map(int, input().split())), reverse=True)
S = sum(A)
if A[M-1]>=S/(4*M):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,031 | 489,032 | u031132940 | python |
p02718 | # import sys
# import math #sqrt
# import decimal
# import queue # queue
# import bisect
# import heapq # priolity-queue
# import time
# import itertools
# import collections # deque
# from operator import itemgetter
# from fractions import Fraction
mod = int(1e9+7)
INF = 1<<29
lINF = 1<<35
def main():
n,m = map(... | # import sys
# import math #sqrt
# import decimal
# import queue # queue
# import bisect
# import heapq # priolity-queue
# import time
# import itertools
# import collections # deque
# from operator import itemgetter
# from fractions import Fraction
mod = int(1e9+7)
INF = 1<<29
lINF = 1<<35
def main():
n,m = map(... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,033 | 489,034 | u807028974 | python |
p02718 | import bisect,collections,copy,itertools,math,numpy,string
def I(): return int(input())
def S(): return input()
def LI(): return list(map(int,input().split()))
def LS(): return list(input().split())
##################################################
N,M = LI()
A = LI()
kijun = sum(A)//(4*M)
count = 0
for x in A:
if... | import bisect,collections,copy,itertools,math,numpy,string
def I(): return int(input())
def S(): return input()
def LI(): return list(map(int,input().split()))
def LS(): return list(input().split())
##################################################
N,M = LI()
A = LI()
kijun = sum(A)/(4*M)
count = 0
for x in A:
if ... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 489,039 | 489,040 | u579699847 | python |
p02718 | import bisect,collections,copy,itertools,math,numpy,string
def I(): return int(input())
def S(): return input()
def LI(): return list(map(int,input().split()))
def LS(): return list(input().split())
##################################################
N,M = LI()
A = LI()
kijun = sum(A)//(4*M)
print(kijun)
count = 0
for x... | import bisect,collections,copy,itertools,math,numpy,string
def I(): return int(input())
def S(): return input()
def LI(): return list(map(int,input().split()))
def LS(): return list(input().split())
##################################################
N,M = LI()
A = LI()
kijun = sum(A)/(4*M)
count = 0
for x in A:
if ... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.remove"
] | 489,041 | 489,040 | u579699847 | python |
p02718 | N,M = map(int,input().split())
li = list(map(int,input().split()))
s = sum(li)
temp = s//(4*M)
c=0
for i in li:
if i>=temp:
c+=1
if c>=M:
print("Yes")
else:
print("No")
| N,M = map(int,input().split())
li = list(map(int,input().split()))
s = sum(li)
temp = s/(4*M)
c=0
for i in li:
if i>=temp:
c+=1
if c>=M:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 489,058 | 489,059 | u474136169 | python |
p02718 | n,m= map(int, input().split())
a=list(map(int,input().split()))
l=sum(a)//(4*m)
c=0
for i in range(n):
if a[i]>=l:
c+=1
print("Yes" if c>=m else "No") | n,m= map(int, input().split())
a=list(map(int,input().split()))
l=sum(a)/(4*m)
c=0
for i in range(n):
if a[i]>=l:
c+=1
print("Yes" if c>=m else "No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 489,066 | 489,067 | u211706121 | python |
p02718 | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
n_votes = sum(A)
print('Yes' if sum(map(lambda x: 4 * M * x > n_votes, A)) >= M
else 'No') | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
n_votes = sum(A)
print('Yes' if sum(map(lambda x: 4 * M * x >= n_votes, A)) >= M
else 'No') | [
"expression.operator.compare.change",
"call.arguments.change"
] | 489,092 | 489,093 | u987188835 | python |
p02718 | N, M = map(int, input().split())
A = [int(i) for i in input().split()]
total = sum(A)
ans = sum([1 for a in A if a>=total/(4*M)])
print('Yes' if total >=M else 'No') | N, M = map(int, input().split())
A = [int(i) for i in input().split()]
total = sum(A)
ans = sum([1 for a in A if a>=total/(4*M)])
print('Yes' if ans >=M else 'No') | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 489,096 | 489,097 | u185325486 | python |
p02718 | nums = list(map(int, input().split()))
n = nums[0]
m = nums[1]
a = list(map(int, input().split()))
sum = 0
for v in a:
sum += v
result = []
for s in a:
if s >= sum * (1 / (4 * m)):
result.append(s)
print(result)
if len(result) >= m:
print("Yes")
else:
print("No") | nums = list(map(int, input().split()))
n = nums[0]
m = nums[1]
a = list(map(int, input().split()))
sum = 0
for v in a:
sum += v
result = []
for s in a:
if s >= sum * (1 / (4 * m)):
result.append(s)
if len(result) >= m:
print("Yes")
else:
print("No") | [
"call.remove"
] | 489,108 | 489,109 | u215286521 | python |
p02718 | nums = list(map(int, input().split()))
n = nums[0]
m = nums[1]
a = list(map(int, input().split()))
sum = 0
for v in a:
sum += v
result = []
for s in a:
if s >= sum * (1 / (4 * m)):
result.append(s)
print(result)
if len(result) >= m:
print("Yes")
else:
print("No")
| nums = list(map(int, input().split()))
n = nums[0]
m = nums[1]
a = list(map(int, input().split()))
sum = 0
for v in a:
sum += v
result = []
for s in a:
if s >= sum * (1 / (4 * m)):
result.append(s)
if len(result) >= m:
print("Yes")
else:
print("No") | [
"call.remove"
] | 489,110 | 489,109 | u215286521 | python |
p02718 |
n, m = [0] * 2
a = []
def format_input(filename = None):
global n, m
global a
if filename == None:
n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
elif filename == '__random__':
from random import randint as rng
n = rng(1, 10**2)
m = rng(1, n)
a = [rng(1, 10**3) for i in r... |
n, m = [0] * 2
a = []
def format_input(filename = None):
global n, m
global a
if filename == None:
n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
elif filename == '__random__':
from random import randint as rng
n = rng(1, 10**2)
m = rng(1, n)
a = [rng(1, 10**3) for i in r... | [
"control_flow.branch.if.condition.change"
] | 489,116 | 489,117 | u294375415 | python |
p02718 | n, m = map(int,input().split())
A = list(map(int,input().split()))
total = sum(A)
th = total/(4*m)
A = sorted(A,reverse=True)
ans = 'Yes'
for i in range(m):
if A[i] > th:
continue
else:
ans = 'No'
print(ans) | n, m = map(int,input().split())
A = list(map(int,input().split()))
total = sum(A)
th = total/(4*m)
A = sorted(A,reverse=True)
ans = 'Yes'
for i in range(m):
if A[i] >= th:
continue
else:
ans = 'No'
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,128 | 489,129 | u951425592 | python |
p02718 | #At coder 2020/3/27 C
# スペース区切りの整数の入力
N,M= map(int, input().split())
A = list(map(int, input().split()))
sumA=sum(A)
numM = sum(x>=(sumA*0.25/M) for x in A)
if numM>M:
ans='Yes'
else:
ans='No'
#print(numM,M)
print(ans) | #At coder 2020/3/27 C
# スペース区切りの整数の入力
N,M= map(int, input().split())
A = list(map(int, input().split()))
sumA=sum(A)
numM = sum(x>=(sumA*0.25/M) for x in A)
if numM>=M:
ans='Yes'
else:
ans='No'
#print(numM,M)
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,134 | 489,135 | u781928894 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
if A[M-1] > sum(A)/(4*M):
print("Yes")
else:
print("No") | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
if A[M-1] >= sum(A)/(4*M):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,146 | 489,147 | u493555013 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
if A[M-1] > 1/(4*M):
print("Yes")
else:
print("No") | N,M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
if A[M-1] >= sum(A)/(4*M):
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"call.arguments.add"
] | 489,148 | 489,147 | u493555013 | python |
p02718 | n,m = map(int,input().split())
tmp = input()
a = tmp.split()
a = list(map(int,a))
limit = sum(a) / (4 * m)
count = 0
for i in a:
if i > limit:
count += 1
if count >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
tmp = input()
a = tmp.split()
a = list(map(int,a))
limit = sum(a) / (4 * m)
count = 0
for i in a:
if i >= limit:
count += 1
if count >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,164 | 489,165 | u791070772 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
a.reverse()
_sum = sum(a)
ans = "Yes" if a[m - 1] > _sum / (4 * m) else "No"
print(ans)
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
a.reverse()
_sum = sum(a)
ans = "Yes" if a[m - 1] >= _sum / (4 * m) else "No"
print(ans)
| [
"expression.operator.compare.change",
"assignment.value.change"
] | 489,168 | 489,169 | u470735879 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
a.reverse()
_sum = sum(a)
ans = "Yes" if a[m - 1] >= _sum // (4 * m) else "No"
print(ans)
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
a.reverse()
_sum = sum(a)
ans = "Yes" if a[m - 1] >= _sum / (4 * m) else "No"
print(ans)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 489,170 | 489,169 | u470735879 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
a.reverse()
_sum = sum(a)
ans = "Yes" if a[m - 1] > _sum // (4 * m) else "No"
print(ans) | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
a.reverse()
_sum = sum(a)
ans = "Yes" if a[m - 1] >= _sum / (4 * m) else "No"
print(ans)
| [
"expression.operator.compare.change",
"assignment.value.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 489,171 | 489,169 | u470735879 | python |
p02718 | N,M = list(map(int,input().split()))
A = list(map(int,input().split()))
list.sort(A,reverse=True)
count = 0
Sum = sum(A)
for i in range(M):
if A[i] > Sum/(4*M):
count +=1
if M ==count:
print("Yes")
else:
print("No") | N,M = list(map(int,input().split()))
A = list(map(int,input().split()))
list.sort(A,reverse=True)
count = 0
Sum = sum(A)
for i in range(M):
if A[i] >= Sum/(4*M):
count +=1
if M ==count:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,176 | 489,177 | u096294926 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int, input().split()))
list.sort(A,reverse=True)
sumnum = sum(A)
if A[M-1] > (sumnum/(4*M)):
print("Yes")
else:
print("No")
| N,M=map(int,input().split())
A=list(map(int, input().split()))
list.sort(A,reverse=True)
sumnum = sum(A)
if A[M-1] >= (sumnum/(4*M)):
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,191 | 489,192 | u112114596 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int, input().split()))
list.sort(A,reverse=True)
sumnum = sum(A)
if A[M] > (sumnum/(4*M)):
print("Yes")
else:
print("No")
| N,M=map(int,input().split())
A=list(map(int, input().split()))
list.sort(A,reverse=True)
sumnum = sum(A)
if A[M-1] >= (sumnum/(4*M)):
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 489,193 | 489,192 | u112114596 | python |
p02718 | n, m = map(int, input().split())
a = [int(i) for i in input().split()]
a.sort()
if a[-m] > sum(a)*1/(4*m):
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = [int(i) for i in input().split()]
a.sort()
if a[-m] >= sum(a)*1/(4*m):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,204 | 489,205 | u540631540 | python |
p02718 | import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *
def lcm(x, y):
return (x * y) // math.gcd(x, y)
if __name__ == '__main__':
b, c = map(int, input().split())
a = [int(i)... | import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *
def lcm(x, y):
return (x * y) // math.gcd(x, y)
if __name__ == '__main__':
b, c = map(int, input().split())
a = [int(i)... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 489,221 | 489,222 | u290187182 | python |
p02718 | import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *
def lcm(x, y):
return (x * y) // math.gcd(x, y)
if __name__ == '__main__':
b, c = map(int, input().split())
a = [int(i)... | import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *
def lcm(x, y):
return (x * y) // math.gcd(x, y)
if __name__ == '__main__':
b, c = map(int, input().split())
a = [int(i)... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 489,223 | 489,222 | u290187182 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
sum = sum(A)
flag = 0
A = sorted(A, reverse=True)
# print(sum, A)
for i in range(0, M+1):
if M == 0:
break
if A[i]<(sum/(4*M)):
print('No')
flag = 1
break
if flag == 0:
print("Yes") | N, M = map(int, input().split())
A = list(map(int, input().split()))
sum = sum(A)
flag = 0
A = sorted(A, reverse=True)
# print(sum, A)
for i in range(0, M):
if M == 0:
break
if A[i]<(sum/(4*M)):
print('No')
flag = 1
break
if flag == 0:
print("Yes") | [
"expression.operation.binary.remove"
] | 489,224 | 489,225 | u724724669 | python |
p02718 | #!/usr/bin/env python
t = input().split()
n = int(t[0])
m = int(t[1])
a = sorted(map(int, input().split()))
s = sum(a)
if a[-m] < s//(4*m):
print("No")
else:
print("Yes")
| #!/usr/bin/env python
t = input().split()
n = int(t[0])
m = int(t[1])
a = sorted(map(int, input().split()))
s = sum(a)
if a[n-m] < s/(4*m):
print("No")
else:
print("Yes")
| [
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 489,228 | 489,229 | u745802292 | python |
p02718 | N, M = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]
A.sort()
A.reverse()
total = 0
Flag = True
for i in A:
total += i
for i in range(M):
if A[i]*4*M < total:
Flag = False
if Flag:
print("YES")
else:
print("NO") | N, M = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]
A.sort()
A.reverse()
total = 0
Flag = True
for i in A:
total += i
for i in range(M):
if A[i]*4*M < total:
Flag = False
if Flag:
print("Yes")
else:
print("No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 489,234 | 489,235 | u465900169 | python |
p02718 |
n, m = map(int, input().split())
a = list(map(int,input().split()))
l = []
for i in a:
if i > sum(a) / (4 * m):
l.append(i)
if len(l) >= m:
print('Yes')
else:
print('No')
|
n, m = map(int, input().split())
a = list(map(int,input().split()))
l = []
for i in a:
if i >= sum(a) / (4 * m):
l.append(i)
if len(l) >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,238 | 489,239 | u309423187 | python |
p02718 |
n, m = map(int, input().split())
a = list(map(int,input().split()))
l = []
for i in a:
if i > sum(a) // (4 * m):
l.append(i)
if len(l) >= m:
print('Yes')
else:
print('No')
|
n, m = map(int, input().split())
a = list(map(int,input().split()))
l = []
for i in a:
if i >= sum(a) / (4 * m):
l.append(i)
if len(l) >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 489,240 | 489,239 | u309423187 | python |
p02718 | in1 = input().split()
in1num = [int(x) for x in in1]
a = input().split()
anum = [int(x) for x in a]
sum_a = sum(anum)
anum.sort(reverse=True)
N = in1num[0]
M = in1num[1]
#print(sum_a)
#print((sum_a)/(4*M))
#print(anum[M-1])
if anum[M-1] > (sum_a)/(4*M):
print("Yes")
else:
print("No") | in1 = input().split()
in1num = [int(x) for x in in1]
a = input().split()
anum = [int(x) for x in a]
sum_a = sum(anum)
anum.sort(reverse=True)
N = in1num[0]
M = in1num[1]
#print(sum_a)
#print((sum_a)/(4*M))
#print(anum[M-1])
if anum[M-1] >= (sum_a)/(4*M):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,248 | 489,249 | u261606105 | python |
p02718 | n, m = map(int,input().split())
A = sorted([i for i in map(int,input().split())])
total = sum(A)
if A[-m] > total/4/m:
print('Yes')
else:
print('No') | n, m = map(int,input().split())
A = sorted([i for i in map(int,input().split())])
total = sum(A)
if A[-m] >= total/4/m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,262 | 489,263 | u213497190 | python |
p02718 | n, m = map(int,input().split())
A = sorted([i for i in map(int,input().split())])
total = sum(A)
if A[-m] > total/4/m:
print('yes')
else:
print('no') | n, m = map(int,input().split())
A = sorted([i for i in map(int,input().split())])
total = sum(A)
if A[-m] >= total/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"
] | 489,264 | 489,263 | u213497190 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
r = sum(a)
count = 0
for i in range(n):
if r < (a[i]*(4*m)):
count += 1
if count >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
a = list(map(int,input().split()))
r = sum(a)
count = 0
for i in range(len(a)):
if r <= (a[i]*(4*m)):
count += 1
if count >= m:
print("Yes")
else:
print("No") | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.arguments.add",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,265 | 489,266 | u244416763 | python |
p02718 | # -*- coding: utf-8 -*-
import numpy as np
N, M = map(int, input().split())
count = 0
nums = [int(x.strip()) for x in input().split(' ')]
num_sum = sum(nums)
tmp = num_sum/(4*M)
for num in nums:
if num >tmp:
count += 1
if count >= M:
print('Yes')
else:
print('No') | # -*- coding: utf-8 -*-
N, M = map(int, input().split())
count = 0
nums = [int(x.strip()) for x in input().split(' ')]
num_sum = sum(nums)
tmp = num_sum / (4*M)
for num in nums:
if not num < tmp:
count += 1
if count >= M:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 489,269 | 489,270 | u321096814 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
su=sum(A)
i=0
while max(A)*4*M>=su:
i+=1
A.remove(max(A))
else:
if i>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
su=sum(A)
i=0
while max(A)*4*M>=su:
i+=1
A.remove(max(A))
if i>=M:
print("Yes")
break
else:
print("No") | [
"control_flow.break.add"
] | 489,273 | 489,274 | u508842013 | python |
p02718 | n, m= map(int, (input().split()))
a = list(map(int, input().split()))
count = 0
total = 0
for i in a:
total += i
for j in a:
if j / total > 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()))
count = 0
total = 0
for i in a:
total += i
for j in a:
if not (j / total < 1 / (4 * m)):
count += 1
if count >= m:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 489,289 | 489,288 | u068142202 | python |
p02718 | n, m= map(int, (input().split()))
a = list(map(int, input().split()))
count = 0
total = 0
for i in a:
total += i
for j in a:
if j / total > 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()))
count = 0
total = 0
for i in a:
total += i
for j in a:
if not (j / total < 1 / (4 * m)):
count += 1
if count >= m:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 489,290 | 489,288 | u068142202 | python |
p02718 | n, m = input().split(" ")
n = int(n)
m = int(m)
votes = input().split(" ")
votes = [int(vote) for vote in votes]
votes.sort(reverse=True)
check_vote = votes[m-1]
if check_vote >= sum(votes) / n:
print("Yes")
else:
print("No") | n, m = input().split(" ")
n = int(n)
m = int(m)
votes = input().split(" ")
votes = [int(vote) for vote in votes]
votes.sort(reverse=True)
check_vote = votes[m-1]
if check_vote >= sum(votes) / (4*m):
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 489,293 | 489,294 | u491532003 | python |
p02718 | N,M = map(int, input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
b = sum(A)
if A[M-1]>=b//(4*M):
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
b = sum(A)
if A[M-1]<b/(4*M):
print('No')
else:
print('Yes') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 489,295 | 489,296 | u585963734 | python |
p02718 | N,M = map(int, input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
b = sum(A)
if A[M-1]>b//(4*M):
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
b = sum(A)
if A[M-1]<b/(4*M):
print('No')
else:
print('Yes') | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 489,297 | 489,296 | u585963734 | python |
p02718 | n, m = map(int, input().split())
votes = list(map(int, input().split()))
total_votes = sum(votes)
border = total_votes // (4 * m)
count = 0
for a in votes:
if a < border:
continue
count += 1
if count >= m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
votes = list(map(int, input().split()))
total_votes = sum(votes)
border = total_votes / (4 * m)
count = 0
for a in votes:
if a < border:
continue
count += 1
if count >= m:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 489,300 | 489,301 | u572373398 | python |
p02718 | N, M = map(int, input().split())
As = list(map(int,input().split()))
vote_sum = sum(As)
least_vote_num = vote_sum / (4 * M)
if len([A for A in As if A > least_vote_num]) >= M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
As = list(map(int,input().split()))
vote_sum = sum(As)
least_vote_num = vote_sum / (4 * M)
if len([A for A in As if A >= least_vote_num]) >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,302 | 489,303 | u156314159 | python |
p02718 | N, M = map(int, input().split())
As = list(map(int,input().split()))
vote_sum = sum(As)
least_vote_num = vote_sum // (4 * M)
if len([A for A in As if A > least_vote_num]) >= M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
As = list(map(int,input().split()))
vote_sum = sum(As)
least_vote_num = vote_sum / (4 * M)
if len([A for A in As if A >= least_vote_num]) >= 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"
] | 489,304 | 489,303 | u156314159 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
total = sum(a)
c = 0
for i in a:
if i >= (total//(4*m)):
c += 1
if c >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
total = sum(a)
c = 0
for i in a:
if i >= total/(4*m):
c += 1
if c >= m:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 489,326 | 489,327 | u672898046 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
total = sum(a)
c = 0
for i in a:
if i < (total//(4*m)):
continue
c += 1
if c >= m:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
total = sum(a)
c = 0
for i in a:
if i >= total/(4*m):
c += 1
if c >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 489,328 | 489,327 | u672898046 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
SUM = sum(A)
count = 0
for a in A:
if a >= SUM // (4*M):
count += 1
if M == count:
print("Yes")
exit()
print("No") | N, M = map(int, input().split())
A = list(map(int, input().split()))
SUM = sum(A)
count = 0
for a in A:
if a >= SUM / (4*M):
count += 1
if M == count:
print("Yes")
exit()
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 489,329 | 489,330 | u759938562 | python |
p02718 | N, M= list(map(int, input().split()))
A = list(map(int, input().split()))
total = sum(A)
if len([i for i in A if i >= int(total/(4*M))])>= M:
print("Yes")
else:
print("No") | N, M= list(map(int, input().split()))
A = list(map(int, input().split()))
total = sum(A)
if len([i for i in A if i >= total/(4*M)])>= M:
print("Yes")
else:
print("No") | [
"call.remove",
"control_flow.branch.if.condition.change"
] | 489,339 | 489,340 | u188138642 | python |
p02718 | n,m = map(int,input().split()) #n種類 M個えらぶ
a = list(map(int,input().split()))
sum_list = sum(a)
count = 0
for i in range(n):
if a[i] > sum_list//(4 * m):
count +=1
if count >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split()) #n種類 M個えらぶ
a = list(map(int,input().split()))
sum_list = sum(a)
count = 0
for i in range(n):
if a[i] >= sum_list/(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"
] | 489,344 | 489,345 | u391675400 | python |
p02718 | n,m = map(int,input().split()) #n種類 M個えらぶ
a = list(map(int,input().split()))
sum_list = sum(a)
count = 0
for i in range(n):
if a[i] > sum_list/(4 * m):
count +=1
if count >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split()) #n種類 M個えらぶ
a = list(map(int,input().split()))
sum_list = sum(a)
count = 0
for i in range(n):
if a[i] >= sum_list/(4 * m):
count +=1
if count >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,346 | 489,345 | u391675400 | python |
p02718 | N,M = map(int, input().split())
list = list(map(int, input().split()))
num = 0
for i in list:
if i >= sum(list)/(4*M):
num+=1
print(num)
if num >= M:
print('Yes')
else:
print('No') | N,M = map(int, input().split())
list = list(map(int, input().split()))
num = 0
for i in list:
if i >= sum(list)/(4*M):
num+=1
if num >= M:
print('Yes')
else:
print('No') | [
"call.remove"
] | 489,359 | 489,360 | u419633921 | python |
p02718 | N,M = map(int, input().split())
list = list(map(int, input().split()))
num = 0
for i in list:
if int(i) >= sum(list)/(4*M):
num+=1
if num >= M:
print('yes')
else:
print('No')
| N,M = map(int, input().split())
list = list(map(int, input().split()))
num = 0
for i in list:
if i >= sum(list)/(4*M):
num+=1
if num >= M:
print('Yes')
else:
print('No') | [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 489,361 | 489,360 | u419633921 | python |
p02718 | def main():
mylist = []
for i in range(2):
mylist.append(input())
N, M = list(map(int, mylist[0].split()))
votes = list(map(int, mylist[1].split()))
v_sum = sum(votes)
votes.sort(reverse=True)
print(votes)
flag = True
for i in range(M):
if votes[i] < v_sum / (4 * M... | def main():
mylist = []
for i in range(2):
mylist.append(input())
N, M = list(map(int, mylist[0].split()))
votes = list(map(int, mylist[1].split()))
v_sum = sum(votes)
votes.sort(reverse=True)
flag = True
for i in range(M):
if votes[i] < v_sum / (4 * M):
fl... | [
"call.remove"
] | 489,364 | 489,365 | u104935308 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int, input().split()))
num=sum(a)
tmp=float(num)/float(4.0*m)
count=0
for i in range(n):
if a[i]>=tmp:
count+=1
if count==m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int, input().split()))
num=sum(a)
tmp=float(num)/float(4.0*m)
count=0
for i in range(n):
if a[i]>=tmp:
count+=1
if count>=m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,372 | 489,373 | u314837274 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int, input().split()))
num=sum(a)
tmp=num/(4.0*m)
count=0
for i in range(n):
if a[i]>=tmp:
count+=1
if count==m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int, input().split()))
num=sum(a)
tmp=float(num)/float(4.0*m)
count=0
for i in range(n):
if a[i]>=tmp:
count+=1
if count>=m:
print("Yes")
else:
print("No") | [
"call.add",
"call.arguments.change",
"type_conversion.to_float.change",
"type_conversion.to_number.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,374 | 489,373 | u314837274 | python |
p02718 | # https://atcoder.jp/contests/abc161/tasks/abc161_b
N, M = map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
limit = total / (4 * M)
count = 0
for a in A:
count += (a > limit)
if count >= M:
print("Yes")
else:
print("No")
| # https://atcoder.jp/contests/abc161/tasks/abc161_b
N, M = map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
limit = total / (4 * M)
count = 0
for a in A:
count += (a >= limit)
if count >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change"
] | 489,375 | 489,376 | u033183216 | python |
p02718 | M, N = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
print("Yes" if A[M-1] * 4 * M >= sum(A) else "No") | N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
print("Yes" if A[M-1] * 4 * M >= sum(A) else "No") | [] | 489,377 | 489,378 | u734529045 | python |
p02718 | M, N = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
print("Yes" if A[N-1] * 4 * M > sum(A) else "No") | N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
print("Yes" if A[M-1] * 4 * M >= sum(A) else "No") | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"expression.operator.compare.change"
] | 489,379 | 489,378 | u734529045 | python |
p02718 | M, N = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
print("Yes" if A[N-1] * 4 * M >= sum(A) else "No") | N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
print("Yes" if A[M-1] * 4 * M >= sum(A) else "No") | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 489,380 | 489,378 | u734529045 | python |
p02718 | NM = list(map(int, input().split()))
N = NM[0]
M = NM[1]
vote = list(map(int, input().split()))
vote.sort()
voteSum = 0
for j in vote:
voteSum += j
if vote[-M]/voteSum > 1/(4*M):
print('Yes')
else:
print('No') | NM = list(map(int, input().split()))
N = NM[0]
M = NM[1]
vote = list(map(int, input().split()))
vote.sort()
voteSum = 0
for j in vote:
voteSum += j
if vote[-M]/voteSum >= 1/(4*M):
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,394 | 489,395 | u960611411 | python |
p02718 | N, M = map(int, input().split())
l = input().split()
l = [int(i) for i in l]
l.sort(reverse=True)
val = sum(l)
deadline = val//(4*M)
if l[M-1] >= deadline:
print("Yes")
else:
print("No") | N, M = map(int, input().split())
l = input().split()
l = [int(i) for i in l]
l.sort(reverse=True)
val = sum(l)
deadline = val/(4*M)
if l[M-1] >= deadline:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 489,396 | 489,397 | u174203233 | python |
p02718 | # coding : utf-8
N, M = list(map(int, input().split()))
arr = list(map(int, input().split()))
border = int(sum(arr) / (4*M))
count = 0
for arr_i in arr:
if(arr_i >= border):
count+=1
if(count >= M):
print('Yes')
else:
print('No') | # coding : utf-8
N, M = list(map(int, input().split()))
arr = list(map(int, input().split()))
border = sum(arr) / (4*M)
count = 0
for arr_i in arr:
if(arr_i >= border):
count+=1
if(count >= M):
print('Yes')
else:
print('No') | [
"call.remove",
"call.arguments.change"
] | 489,410 | 489,411 | u383709898 | python |
p02718 | N,M = map(int, input().split())
a = list(map(int, input().split()))
count = 0
for i in range(N):
bool_over = a[i] > (sum(a)/(4*M))
if(bool_over):
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 i in range(N):
bool_over = a[i] >= (sum(a)/(4*M))
if(bool_over):
count +=1
if(M <= count):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"assignment.value.change"
] | 489,414 | 489,415 | u409506063 | python |
p02718 |
N,M = map(int, input().split())
a = list(map(int, input().split()))
count = 0
for i in range(N):
bool_over = a[i] > (1/(4*M))
if(bool_over):
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 i in range(N):
bool_over = a[i] >= (sum(a)/(4*M))
if(bool_over):
count +=1
if(M <= count):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change",
"call.arguments.add"
] | 489,416 | 489,415 | u409506063 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
votes = sum(a)
a.sort(reverse=True)
ans = 'Yes'
for i in range(m):
if a[i] < votes // (4 * m):
ans = 'No'
break
print(ans)
| n, m = map(int, input().split())
a = list(map(int, input().split()))
votes = sum(a)
a.sort(reverse=True)
ans = 'Yes'
for i in range(m):
if a[i] < votes / (4 * m):
ans = 'No'
break
print(ans)
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 489,421 | 489,422 | u803617136 | python |
p02718 | def main():
x, y = map(int, input().split())
tokuhyou = [int(t) for t in input().split()]
th = sum(tokuhyou) / (4 * y)
count = 0
for i in tokuhyou:
if i > th:
count += 1
if count >= y:
print('Yes')
else:
print('No')
main() | def main():
x, y = map(int, input().split())
tokuhyou = [int(t) for t in input().split()]
th = sum(tokuhyou) / (4 * y)
count = 0
for i in tokuhyou:
if i >= th:
count += 1
if count >= y:
print('Yes')
else:
print('No')
main() | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,444 | 489,445 | u375941094 | python |
p02718 | n, m = map(int, input().split())
a = [int(s) for s in input().split()]
thr = sum(a) / (4 * m)
cnt = 0
for val in a:
if val > thr:
cnt += 1
print("Yes" if cnt >= m else "No")
| n, m = map(int, input().split())
a = [int(s) for s in input().split()]
thr = sum(a) / (4 * m)
cnt = 0
for val in a:
if val >= thr:
cnt += 1
print("Yes" if cnt >= m else "No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 489,446 | 489,447 | u865298224 | python |
p02718 | n,m = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
total = sum(A)
limit = total //(4*m)
cannot = 0
for i in range(m):
if A[i]<limit:
cannot=1
break
if cannot:
print('No')
else:
print('Yes') | n,m = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
total = sum(A)
limit = total/(4*m)
cannot = 0
for i in range(m):
if A[i]<limit:
cannot=1
break
if cannot:
print('No')
else:
print('Yes') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 489,448 | 489,449 | u731448038 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
b = sum(A) // (4*m)
if A[m-1] < b:
print('No')
else:
print('Yes') | n,m = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
b = sum(A) / (4*m)
if A[m-1] < b:
print('No')
else:
print('Yes') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 489,450 | 489,451 | u291028869 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.