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 | import sys
a = list(map(int,input().split()))
b = list(map(int,input().split()))
N = a[0]
M = a[1]
count = 0
b_sum = sum(b)
c = sorted(b,reverse = True)
for i in range(0,N-1):
if c[i] >= (b_sum/(4*M)):
count+=1
else:
break
if count >= M:
print('Yes')
else:
print('No')
| import sys
a = list(map(int,input().split()))
b = list(map(int,input().split()))
N = a[0]
M = a[1]
count = 0
b_sum = sum(b)
c = sorted(b,reverse = True)
for i in range(0,N):
if c[i] >= (b_sum/(4*M)):
count+=1
else:
break
if count >= M:
print('Yes')
else:
print('No')
| [
"expression.operation.binary.remove"
] | 487,165 | 487,166 | u202019924 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split())) # [1, 2, 3, 4] になる
sum = sum(A)
vote = sum/(4*M)
judge = 0
def check(M,A,N,judge,vote):
while 1:
num = A.pop(A.index(max(A)))
if num > vote:
judge+=1
else:
return 'No'
if judge == M:
... | N, M = map(int, input().split())
A = list(map(int, input().split())) # [1, 2, 3, 4] になる
vote = sum(A)/(4*M)
judge = 0
def check(M,A,N,judge,vote):
while 1:
num = A.pop(A.index(max(A)))
if num >= vote:
judge+=1
else:
return 'No'
if judge == M:
re... | [
"assignment.variable.change",
"identifier.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,169 | 487,170 | u806403461 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
ans = "Yes"
sum_M = sum(A)
an = 0
for i in range(M):
if A[i] >= sum_M/(4*M):
an += 1
if an<M:
ans = "No"
print(ans)
| N,M = map(int,input().split())
A = list(map(int,input().split()))
ans = "Yes"
sum_M = sum(A)
an = 0
for i in range(len(A)):
if A[i] >= sum_M/(4*M):
an += 1
if an<M:
ans = "No"
print(ans)
| [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.arguments.add"
] | 487,171 | 487,172 | u197922478 | python |
p02718 | a,b = map(int, input().split())
c = input().split()
m = 0
for i in range(len(c)):
c[i] = int(c[i])
m += c[i]
c.sort(reverse=True)
if c[b-1] > m * (1 / (4*b)):
print('Yes')
else:
print('No')
| a,b = map(int, input().split())
c = input().split()
m = 0
for i in range(len(c)):
c[i] = int(c[i])
m += c[i]
c.sort(reverse=True)
if c[b-1] >= m * (1 / (4*b)):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,173 | 487,174 | u322793329 | python |
p02718 | N, M = map(int, input().split())
A = sorted(map(int, input().split()), reverse=True)
var = sum(A) // (4*M)
if A[M-1] >= var:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
A = sorted(map(int, input().split()), reverse=True)
var = sum(A) / (4*M)
if A[M-1] >= var:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,175 | 487,176 | u432098488 | python |
p02718 | n,m=map(int,input().split())
A=list(map(int,input().split()))
A.sort()
B=A[::-1]
if B[m-1]>sum(A)//(4*m):
print("Yes")
else:
print("No") | n,m=map(int,input().split())
A=list(map(int,input().split()))
A.sort()
B=A[::-1]
if B[m-1]>=sum(A)/(4*m):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 487,185 | 487,186 | u214344212 | python |
p02718 | n,m=map(int,input().split())
A=list(map(int,input().split()))
A.sort()
B=A[::-1]
if B[m-1]>=sum(A)//(4*m):
print("Yes")
else:
print("No") | n,m=map(int,input().split())
A=list(map(int,input().split()))
A.sort()
B=A[::-1]
if B[m-1]>=sum(A)/(4*m):
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 487,187 | 487,186 | u214344212 | python |
p02718 | n, m = input().split()
list = input().split()
m = int(m)
list = [int(i) for i in list]
list.sort(reverse=True)
M = m
i = 0
while 1:
if m == 0:
break
if list[i] >= sum(list)/(4*M):
ans = "Yes"
else:
print("n")
ans = "No"
m-=1
i+=1
print(ans)
| n, m = input().split()
list = input().split()
m = int(m)
list = [int(i) for i in list]
list.sort(reverse=True)
M = m
i = 0
while 1:
if m == 0:
break
if list[i] >= sum(list)/(4*M):
ans = "Yes"
else:
ans = "No"
m-=1
i+=1
print(ans)
| [
"call.remove"
] | 487,190 | 487,191 | u246753875 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
total=sum(A)
total=total//(4*M)
if total>A[M-1]:
print('No')
else:
print('Yes') | N,M=map(int,input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
total=sum(A)
total=total/(4*M)
if total>A[M-1]:
print('No')
else:
print('Yes') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,194 | 487,195 | u530650201 | python |
p02718 | N,M=list(map(int,input().split()))
lst=list(map(int,input().split()))
lst.sort()
if lst[1-M]*4*M>=sum(lst):
print('Yes')
else:
print('No') | N,M=list(map(int,input().split()))
lst=list(map(int,input().split()))
lst.sort()
if lst[0-M]*4*M>=sum(lst):
print('Yes')
else:
print('No') | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 487,196 | 487,197 | u798675549 | python |
p02718 | N,M=list(map(int,input().split()))
lst=list(map(int,input().split()))
lst.sort()
if lst[M-1]*4*M>sum(lst):
print('Yes')
else:
print('No') | N,M=list(map(int,input().split()))
lst=list(map(int,input().split()))
lst.sort()
if lst[0-M]*4*M>=sum(lst):
print('Yes')
else:
print('No') | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operator.compare.change"
] | 487,198 | 487,197 | u798675549 | python |
p02718 | import numpy as np
N, M = map(int, input().split())
al = list(map(int, input().split()))
sums = sum(al)
al.sort(reverse=True)
al = np.array(al)[:M]
al = np.sum(al>(sums/(4*M)))
if al == M:
print('Yes')
else:
print('No') | import numpy as np
N, M = map(int, input().split())
al = list(map(int, input().split()))
sums = sum(al)
al.sort(reverse=True)
al = np.array(al)[:M]
al = np.sum(al>=(sums/(4*M)))
if al == M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 487,203 | 487,204 | u620157187 | python |
p02718 | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(n):
if (list2[a]/total >= 1/(4*m)):
count += 1
if count == m:
print("Yes")
else:
print... | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(n):
if (list2[a]/total >= 1/(4*m)):
count += 1
if count >= m:
print("Yes")
else:
print... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,244 | 487,245 | u287669475 | python |
p02718 | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(n):
if (list2[a]/total > 1/(4*m)):
count += 1
if count == m:
print("Yes")
else:
print(... | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(n):
if (list2[a]/total >= 1/(4*m)):
count += 1
if count >= m:
print("Yes")
else:
print... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,246 | 487,245 | u287669475 | python |
p02718 | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(m):
if (list2[a]/total > 1/(4*m)):
count += 1
if count == m:
print("Yes")
else:
print(... | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(n):
if (list2[a]/total >= 1/(4*m)):
count += 1
if count >= m:
print("Yes")
else:
print... | [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,247 | 487,245 | u287669475 | python |
p02718 | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(m):
if (list2[a]/total > 1/(4*m)):
count += 1
if count == m:
print("yes")
else:
print(... | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(n):
if (list2[a]/total >= 1/(4*m)):
count += 1
if count >= m:
print("Yes")
else:
print... | [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 487,248 | 487,245 | u287669475 | python |
p02718 | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(m):
if (list2[a]/total > 1/(4*m)):
count += 1
if count == m:
print("yes")
else:
print(... | i1 = input()
i2 = input()
# i1 = "4 1"
# i2 = "5 4 2 1"
list1 = [int(s) for s in i1.split()]
list2 = [int(s) for s in i2.split()]
n = list1[0]
m = list1[1]
total = sum(list2)
# 選べる
count = 0
for a in range(n):
if (list2[a]/total >= 1/(4*m)):
count += 1
if count >= m:
print("Yes")
else:
print... | [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 487,250 | 487,245 | u287669475 | python |
p02718 | N,M = map(int, input().split())
A = [int(N) for N in input().split()]
X=0
F=int(sum(A)/(4*M))
for i in range(N):
if A[i] >= F:
X+=1
if X>=M:
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A = [int(N) for N in input().split()]
X=0
F=sum(A)/(4*M)
for i in range(N):
if A[i] >= F:
X+=1
if X>=M:
print('Yes')
else:
print('No') | [
"call.remove",
"call.arguments.change"
] | 487,259 | 487,260 | u863964720 | python |
p02718 | M = map(int, input().split())
A = [int(N) for N in input().split()]
X=0
F=int(sum(A)/(4*M))
for i in range(N):
if A[i] >= F:
X+=1
if X>=M:
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A = [int(N) for N in input().split()]
X=0
F=sum(A)/(4*M)
for i in range(N):
if A[i] >= F:
X+=1
if X>=M:
print('Yes')
else:
print('No') | [
"call.remove",
"call.arguments.change"
] | 487,261 | 487,260 | u863964720 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
t = 0
S = 0
for Ai in A:
S=S+Ai
for Ai in A:
if Ai >= S/(4*M):
t = t+1
if t >= M:
print('yes')
else:
print('no')
| N, M = map(int, input().split())
A = list(map(int, input().split()))
t = 0
S = 0
for Ai in A:
S=S+Ai
for Ai in A:
if Ai >= S/(4*M):
t = t+1
if t >= M:
print('Yes')
else:
print('No')
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 487,264 | 487,265 | u178509296 | python |
p02718 | N, M = [int(i) for i in input().split()]
A = [int(i) for i in input().split()]
total_votes = sum(A)
threshold = total_votes / (4 * M)
uppers = [int(i >= threshold) for i in A]
if sum(uppers) > M:
print("Yes")
else:
print("No")
| N, M = [int(i) for i in input().split()]
A = [int(i) for i in input().split()]
total_votes = sum(A)
threshold = total_votes / (4 * M)
uppers = [int(i >= threshold) for i in A]
if sum(uppers) >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,266 | 487,267 | u301043830 | python |
p02718 | N, M = [int(i) for i in input().split()]
A = [int(i) for i in input().split()]
total_votes = sum(A)
threshold = total_votes / (4 * M)
uppers = [int(i > threshold) for i in A]
if sum(uppers) > M:
print("Yes")
else:
print("No")
| N, M = [int(i) for i in input().split()]
A = [int(i) for i in input().split()]
total_votes = sum(A)
threshold = total_votes / (4 * M)
uppers = [int(i >= threshold) for i in A]
if sum(uppers) >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 487,268 | 487,267 | u301043830 | python |
p02718 | N, M = map(int, input().split())
listA = list(map(int, input().split()))
listA.sort()
cnt = 0
yukohyo = int(sum(listA)/(4*M))
for i in listA:
if i >= yukohyo:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
listA = list(map(int, input().split()))
listA.sort()
cnt = 0
yukohyo = sum(listA)/(4*M)
for i in listA:
if i >= yukohyo:
cnt += 1
if cnt >= M:
print('Yes')
else:
print('No') | [
"call.remove",
"call.arguments.change"
] | 487,298 | 487,299 | u773711732 | python |
p02718 | #161B
n, m = map(int, input().split())
a = list(map(int, input().split()))
cnt = 0
for i in range(n):
if a[i] >= sum(a) // (4*m):
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No') | #161B
n, m = map(int, input().split())
a = list(map(int, input().split()))
cnt = 0
for i in range(n):
if a[i] >= sum(a) / (4*m):
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 487,304 | 487,305 | u057415180 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
cnt = 0
for i in range(n):
if a[i] > sum(a) // (4*m):
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No') | #161B
n, m = map(int, input().split())
a = list(map(int, input().split()))
cnt = 0
for i in range(n):
if a[i] >= sum(a) / (4*m):
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 487,306 | 487,305 | u057415180 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
pop = 1/(4*M)*sum(A)
lis = []
for i in A:
if i>pop:
lis.append(i)
if len(lis)>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
pop = 1/(4*M)*sum(A)
lis = []
for i in A:
if i>=pop:
lis.append(i)
if len(lis)>=M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,307 | 487,308 | u085510145 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
pop = int(1/(4*M)*sum(A))
lis = []
for i in A:
if i>pop:
lis.append(i)
if len(lis)>=M:
print("Yes")
else:
print("No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
pop = 1/(4*M)*sum(A)
lis = []
for i in A:
if i>=pop:
lis.append(i)
if len(lis)>=M:
print("Yes")
else:
print("No")
| [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,309 | 487,308 | u085510145 | python |
p02718 | N , M = (map(int , input().split()))
A = list(map(int , input().split()))
s = sum(A)
tou = (1/(4*M))*s
count = 0
for i in A:
if i > tou:
count += 1
if count >= M:
print('Yes')
else:
print('No') | N , M = (map(int , input().split()))
A = list(map(int , input().split()))
s = sum(A)
tou = (1/(4*M))*s
count = 0
for i in A:
if i < tou:
continue
else:
count += 1
if count >= M:
print('Yes')
else:
print('No') | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.continue.add"
] | 487,311 | 487,312 | u140191608 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
popu = 0
p = sum(A) // (4*M)
for num in A:
if num >= p:
popu += 1
if popu >= M:
print("Yes")
else:
print("No") | N,M = map(int,input().split())
A = list(map(int,input().split()))
popu = 0
p = sum(A) / (4*M)
for num in A:
if num >= p:
popu += 1
if popu >= M:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,316 | 487,317 | u498202416 | python |
p02718 | n,m = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
if A[m]<sum(A)/4/m:
print('No')
else:
print('Yes') | n,m = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
if A[m-1]<sum(A)/4/m:
print('No')
else:
print('Yes') | [
"control_flow.branch.if.condition.change"
] | 487,326 | 487,327 | u038417176 | python |
p02718 | n,m = map(int, input().split())
vote_ls = list(map(int, input().split()))
top_vote_ls = []
selectable = (1/(4*m))*sum(vote_ls)
for i in range(0, m):
max = 0
for j in range(len(vote_ls)):
if vote_ls[j] > max:
max = vote_ls[j];
vote_ls.remove(max);
if max > selectable:
top_vote_ls.appen... | n,m = map(int, input().split())
vote_ls = list(map(int, input().split()))
top_vote_ls = []
selectable = (1/(4*m))*sum(vote_ls)
for i in range(0, m):
max = 0
for j in range(len(vote_ls)):
if vote_ls[j] > max:
max = vote_ls[j];
vote_ls.remove(max);
if max >= selectable:
top_vote_ls.appe... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove",
"call.add"
] | 487,335 | 487,336 | u994527877 | python |
p02718 | line = list(map(int, input().split()))
p_array = list(map(int, input().split()))
n,m = line[0],line[1]
sum_array = sum(p_array)
j_sum = int(sum_array / (4 * m))
tmp = []
for i in p_array:
if i < j_sum:
continue
tmp.append(i)
if len(tmp) >= m:
print('Yes')
else:
print('No') | line = list(map(int, input().split()))
p_array = list(map(int, input().split()))
n,m = line[0],line[1]
sum_array = sum(p_array)
# j_sum = int(sum_array / (4 * m))
j_sum = sum_array / (4 * m)
tmp = []
for i in p_array:
if i < j_sum:
continue
tmp.append(i)
if len(tmp) >= m:
print('Yes')
else:
... | [
"call.remove",
"call.arguments.change"
] | 487,341 | 487,342 | u295797489 | python |
p02718 | line = list(map(int, input().split()))
p_array = list(map(int, input().split()))
n,m = line[0],line[1]
sum_array = sum(p_array)
j_sum = int(sum_array / (4 * m))
tmp = []
for i in p_array:
if i >= j_sum:
tmp.append(i)
if len(tmp) >= m:
print('Yes')
else:
print('No') | line = list(map(int, input().split()))
p_array = list(map(int, input().split()))
n,m = line[0],line[1]
sum_array = sum(p_array)
# j_sum = int(sum_array / (4 * m))
j_sum = sum_array / (4 * m)
tmp = []
for i in p_array:
if i < j_sum:
continue
tmp.append(i)
if len(tmp) >= m:
print('Yes')
else:
... | [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.continue.add"
] | 487,343 | 487,342 | u295797489 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
count=0
for i in range(int(n)):
if a[i]<sum(a)//(4*int(m)):
count=count
else:
count+=1
if count>=int(m):
print("Yes")
else:
print("No")
| n,m=map(int,input().split())
a=list(map(int,input().split()))
count=0
for i in range(int(n)):
if a[i]<sum(a)/(4*int(m)):
count=count
else:
count=count+1
if count>=int(m):
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 487,346 | 487,347 | u983327168 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
count=0
for i in range(int(n)):
if a[i]<sum(a)//(4*int(m)):
count=count
else:
count+=1
if count>=int(m):
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
count=0
for i in range(int(n)):
if a[i]<sum(a)/(4*int(m)):
count=count
else:
count=count+1
if count>=int(m):
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 487,348 | 487,347 | u983327168 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
ans=0
for i in a:
if 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()))
ans=0
for i in a:
if i>=sum(a)/(4*m):
ans+=1
if ans>=m:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 487,352 | 487,353 | u557729026 | python |
p02718 | N, M = map(int, input().split())
li = [int(p) for p in list(input().split())]
total=sum(li)
count=0
for l in li:
if l > total*0.25/M:
count+=1
else:
pass
if count >= M:
print("Yes")
else:
print("No") | N, M = map(int, input().split())
li = [int(p) for p in list(input().split())]
total=sum(li)
count=0
for l in li:
if l >= total*0.25/M:
count+=1
else:
pass
if count >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,375 | 487,376 | u038887660 | python |
p02718 | N, M = list(map(int, input().split()))
A = sorted(map(int, input().split()), reverse=True)
border = sum(A) // (4*M)
flag = 'Yes'
for i in range(M):
if border > A[i]:
flag = 'No'
print(flag)
| import math
N, M = list(map(int, input().split()))
A = sorted(map(int, input().split()), reverse=True)
border = sum(A) / (4*M)
flag = 'Yes'
for i in range(M):
if border > A[i]:
flag = 'No'
print(flag) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,394 | 487,395 | u119982001 | python |
p02718 | N, M = map(int, input().split())
A = sorted(list(map(int, input().split())),reverse = True)
sum_A = sum(A)
pop = int(sum_A / (4 * M))
count_pop = len([i for i in A if i >= pop])
if count_pop >= M:
print('Yes')
else:
print('No')
| import math
N, M = map(int, input().split())
A = sorted(list(map(int, input().split())),reverse = True)
sum_A = sum(A)
pop = math.ceil(sum_A / (4 * M))
count_pop = len([i for i in A if i >= pop])
#https://note.nkmk.me/python-collections-counter/
if count_pop >= M:
print('Yes')
else:
print('No') | [
"assignment.value.change"
] | 487,420 | 487,421 | u746627216 | python |
p02718 | n,m = map(int,input().split())
a= list(map(int,input().split()))
po=list(filter(lambda x: x>=((1/4*m))*sum(a),a))
print("Yes" if len(po)>=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") | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"call.arguments.change",
"io.output.change"
] | 487,437 | 487,438 | u819611380 | python |
p02718 | N_s,M_s=input().split()
M=int(M_s)
N=int(N_s)
A=list(map(int,input().split()))
th=sum(A)/(4*M)
#print('th='+ str(th))
A_th=[A_t for A_t in A if A_t>th]
if len(A_th)>=M:
print("Yes")
else:
print("No") | N_s,M_s=input().split()
M=int(M_s)
N=int(N_s)
A=list(map(int,input().split()))
th=sum(A)/(4*M)
#print('th='+ str(th))
A_th=[A_t for A_t in A if A_t>=th]
if len(A_th)>=M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"assignment.value.change"
] | 487,439 | 487,440 | u953020348 | python |
p02718 | N_s,M_s=input().split()
M=int(M_s)
N=int(N_s)
A=list(map(int,input().split()))
th=int(sum(A)/(4*M))
#print("th="+ str(th))
A_th=[A_t for A_t in A if A_t>th]
if len(A_th)>=M:
print("Yes")
else:
print("No")
| N_s,M_s=input().split()
M=int(M_s)
N=int(N_s)
A=list(map(int,input().split()))
th=sum(A)/(4*M)
#print('th='+ str(th))
A_th=[A_t for A_t in A if A_t>=th]
if len(A_th)>=M:
print("Yes")
else:
print("No") | [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"assignment.value.change"
] | 487,441 | 487,440 | u953020348 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
sum_A = sum(A)
j = 0
for i in range(m):
maxA = max(A)
if maxA > sum_A/(4*m):
j += 1
A.remove(maxA)
if j == m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
A = list(map(int, input().split()))
sum_A = sum(A)
j = 0
for i in range(m):
maxA = max(A)
if maxA >= sum_A/(4*m):
j += 1
A.remove(maxA)
if j == m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,455 | 487,456 | u548976218 | python |
p02718 | n, m = [int(i) for i in input().strip().split()]
items = sorted([int(i) for i in input().strip().split()], reverse = True)
th = sum(items) // (4 * m)
print("Yes" if items[m - 1] >= th else "No") | n, m = [int(i) for i in input().strip().split()]
items = sorted([int(i) for i in input().strip().split()], reverse = True)
th = sum(items) / (4. * m)
print("Yes" if items[m - 1] >= th else "No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"literal.integer.replace.remove",
"literal.float.replace.add"
] | 487,457 | 487,458 | u605601159 | python |
p02718 | n, m = map(int, input().split())
a = map(int, input().split())
s=0
can=0
for b in a:
s+=b
for b in a:
if b >= s / (4*m):
can+=1
if can >= m:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
s=0
can=0
for b in a:
s+=b
for c in a:
if c >= s / (4*m):
can+=1
if can >= m:
print("Yes")
else:
print("No") | [
"call.add",
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 487,461 | 487,462 | u177370876 | python |
p02718 | n, m = map(int, input().split())
a = map(int, input().split())
s=0
can=0
for b in a:
s+=b
for b in a:
if b >= s / (4*m):
can+=1
if can > m:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
a = list(map(int, input().split()))
s=0
can=0
for b in a:
s+=b
for c in a:
if c >= s / (4*m):
can+=1
if can >= m:
print("Yes")
else:
print("No") | [
"call.add",
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 487,463 | 487,462 | u177370876 | python |
p02718 | n, m = map(int, input().split())
l = list(map(int, input().split()))
k = sum(l)/(4*m)
count = 0
for a in l:
if a > k:
count += 1
if count >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
l = list(map(int, input().split()))
k = sum(l)/(4*m)
count = 0
for a in l:
if a >= k:
count += 1
if count >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,468 | 487,469 | u306516971 | python |
p02718 | n,m = map(int, input().split())
vote_ls = list(map(int, input().split()))
top_vote_ls = []
selectable = (1/(4*m))*sum(vote_ls)
for i in range(0, m):
max = 0
for j in range(len(vote_ls)):
if vote_ls[j] > max:
max = vote_ls[j];
vote_ls.remove(max);
if max > selectable:
top_vote_ls.appen... | n,m = map(int, input().split())
vote_ls = list(map(int, input().split()))
top_vote_ls = []
selectable = (1/(4*m))*sum(vote_ls)
for i in range(0, m):
max = 0
for j in range(len(vote_ls)):
if vote_ls[j] > max:
max = vote_ls[j];
vote_ls.remove(max);
if max >= selectable:
top_vote_ls.appe... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove",
"call.add"
] | 487,486 | 487,487 | u139282395 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True)
guard = sum(A) // (M * 4)
count = 0
for i in range(M):
if sorted_A[i] > guard:
count += 1
if M == count:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True)
guard = sum(A) / (M * 4)
count = 0
for i in range(M):
if sorted_A[i] >= guard:
count += 1
if M == count:
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"
] | 487,488 | 487,489 | u962400214 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True)
guard = sum(A) // (M * 4)
count = 0
for i in range(M):
if sorted_A[i] >= guard:
count += 1
if M == count:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True)
guard = sum(A) / (M * 4)
count = 0
for i in range(M):
if sorted_A[i] >= guard:
count += 1
if M == count:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,490 | 487,489 | u962400214 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int, input().split()))
A_sorted = sorted(A, reverse=True)
A_sum = sum(A)
if A_sorted[m-1] > A_sum/(4*m):
print("Yes")
else:
print("No") | n, m = map(int, input().split())
A = list(map(int, input().split()))
A_sorted = sorted(A, reverse=True)
A_sum = sum(A)
if A_sorted[m-1] >= A_sum/(4*m):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,495 | 487,496 | u549776477 | python |
p02718 | N, M = map(int, input().split())
As = list(map(int, input().split()))
As.sort(reverse = True)
if As[M-1] > sum(As)/4/M:
print('Yes')
else:
print('No') | N, M = map(int, input().split())
As = list(map(int, input().split()))
As.sort(reverse = True)
if As[M-1] >= sum(As)/4/M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,497 | 487,498 | u269749457 | python |
p02718 | import math
n,m = list(map(int,input().split()))
a = list(map(int,input().split()))
t = sum(a)
c = 0
f = 0
for i in range(n):
if a[i] >= t//(4*m):
c += 1
if c>=m:
print("Yes")
else:
print("No") | import math
n,m = list(map(int,input().split()))
a = list(map(int,input().split()))
t = sum(a)
c = 0
f = 0
for i in range(n):
if a[i] >= math.ceil(t/(4*m)):
c += 1
if c>=m:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add",
"expression.operator.arithmetic.change"
] | 487,516 | 487,517 | u199138816 | python |
p02718 | import math
n,m = list(map(int,input().split()))
a = list(map(int,input().split()))
t = sum(a)
c = 0
f = 0
for i in range(n):
if a[i] >= math.ceil(t/(4*m)):
c += 1
if c>=m:
print("YES")
else:
print("NO") | import math
n,m = list(map(int,input().split()))
a = list(map(int,input().split()))
t = sum(a)
c = 0
f = 0
for i in range(n):
if a[i] >= math.ceil(t/(4*m)):
c += 1
if c>=m:
print("Yes")
else:
print("No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 487,518 | 487,517 | u199138816 | python |
p02718 | def main():
n,m = map(int, input().split())
A = sorted([int(x) for x in input().split()],reverse=True)
asum = 0
for a in A:
asum += a
if(A[m-1]>asum/(4*m)):
print("Yes")
else:
print("No")
return 0
if __name__ == "__main__":
main() | def main():
n,m = map(int, input().split())
A = sorted([int(x) for x in input().split()],reverse=True)
asum = 0
for a in A:
asum += a
if(A[m-1]>=asum/(4*m)):
print("Yes")
else:
print("No")
return 0
if __name__ == "__main__":
main() | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,519 | 487,520 | u141190115 | python |
p02718 | def main():
n,m = map(int, input().split())
A = sorted([int(x) for x in input().split()],reverse=True)
sum = 0
for a in A:
sum += a
if(A[m-1]>=a/(4*m)):
print("Yes")
else:
print("No")
return 0
if __name__ == "__main__":
main() | def main():
n,m = map(int, input().split())
A = sorted([int(x) for x in input().split()],reverse=True)
asum = 0
for a in A:
asum += a
if(A[m-1]>=asum/(4*m)):
print("Yes")
else:
print("No")
return 0
if __name__ == "__main__":
main() | [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 487,521 | 487,520 | u141190115 | python |
p02718 | def main():
n,m = map(int, input().split())
A = sorted([int(x) for x in input().split()],reverse=True)
sum = 0
for a in A:
sum += a
if(A[m-1]>a/(4*m)):
print("Yes")
else:
print("No")
return 0
if __name__ == "__main__":
main() | def main():
n,m = map(int, input().split())
A = sorted([int(x) for x in input().split()],reverse=True)
asum = 0
for a in A:
asum += a
if(A[m-1]>=asum/(4*m)):
print("Yes")
else:
print("No")
return 0
if __name__ == "__main__":
main() | [
"assignment.variable.change",
"identifier.change"
] | 487,522 | 487,520 | u141190115 | python |
p02718 | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
sum = 0
count = 0
for i in A:
sum += i
for a in A:
if a >= sum // (4 * M):
count += 1
if count >= M:
print(YES)
else:
pri... | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
sum = 0
count = 0
for i in A:
sum += i
for a in A:
if a >= sum / (4 * M):
count += 1
if count >= M:
print(YES)
else:
prin... | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 487,523 | 487,524 | u884087839 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
s=0
b=True
for i in a:
s+=i
for i in range(0,m):
if a[i]>=s/4/m:
b=True
else:
b=False
break
if b:
print('Yes')
else:
print('No') | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
s=0
b=True
for i in a:
s+=i
for i in range(0,m):
if a[i]>=s/4/m:
b=True
else:
b=False
if b:
print('Yes')
else:
print('No') | [
"control_flow.break.remove"
] | 487,528 | 487,527 | u000770457 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
s=0
b=True
for i in a:
s+=i
for i in range(0,m):
if a[i]>=s/4/m:
b=True
else:
b=False
if b:
print('Yes')
else:
print('No') | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
s=0
b=True
for i in a:
s+=i
for i in range(0,m):
if a[i]>=s/4/m:
b=True
else:
b=False
if b:
print('Yes')
else:
print('No') | [
"call.arguments.keyword_argument.add"
] | 487,529 | 487,527 | u000770457 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
s=0
b=True
for i in a:
s+=a
for i in range(0,m):
if a[i]>=s/4/m:
b=True
else:
b=False
if b:
print('Yes')
else:
print('No') | n,m=map(int,input().split())
a=list(map(int,input().split()))
a.sort(reverse=True)
s=0
b=True
for i in a:
s+=i
for i in range(0,m):
if a[i]>=s/4/m:
b=True
else:
b=False
if b:
print('Yes')
else:
print('No') | [
"identifier.change"
] | 487,530 | 487,527 | u000770457 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
flag = False
allVote = sum(a)
a.sort(reverse=True)
counter = 0
for i in range(n):
if allVote/4 < a[i]*m:
counter +=1
else:
break
if counter >= m:
flag = True
if flag is False:
print("No")
else:
print("Yes") | n,m = map(int, input().split())
a = list(map(int, input().split()))
flag = False
allVote = sum(a)
a.sort(reverse=True)
counter = 0
for i in range(n):
if allVote/4 <= a[i]*m:
counter +=1
else:
break
if counter >= m:
flag = True
if flag is False:
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,537 | 487,538 | u256801986 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
flag = False
allVote = sum(a)
a.sort(reverse=True)
counter = 0
for i in range(n):
if allVote/4 < a[i]:
counter +=1
else:
break
if counter >= m:
flag = True
if flag is False:
print("No")
else:
print("Yes") | n,m = map(int, input().split())
a = list(map(int, input().split()))
flag = False
allVote = sum(a)
a.sort(reverse=True)
counter = 0
for i in range(n):
if allVote/4 <= a[i]*m:
counter +=1
else:
break
if counter >= m:
flag = True
if flag is False:
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 487,539 | 487,538 | u256801986 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
flag = False
allVote = sum(a)
a.sort(reverse=True)
counter = 0
for i in range(n):
if allVote/4 > a[i]:
counter +=1
else:
break
if counter >= m:
flag = True
if flag is False:
print("No")
else:
print("Yes") | n,m = map(int, input().split())
a = list(map(int, input().split()))
flag = False
allVote = sum(a)
a.sort(reverse=True)
counter = 0
for i in range(n):
if allVote/4 <= a[i]*m:
counter +=1
else:
break
if counter >= m:
flag = True
if flag is False:
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 487,540 | 487,538 | u256801986 | python |
p02718 | N , M = input().split()
array = input().split()
flag = 0
N = int(N)
M = int(M)
iarray = []
for i in array:
iarray.append(int(i))
total = sum(iarray)
for i in iarray:
if i >= total/(4*M):
flag += 1
if flag >= M:
print("yes")
else:
print("no") | N , M = input().split()
array = input().split()
flag = 0
N = int(N)
M = int(M)
iarray = []
for i in array:
iarray.append(int(i))
total = sum(iarray)
for i in iarray:
if i >= total/(4*M):
flag += 1
if flag >= M:
print("Yes")
else:
print("No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 487,545 | 487,546 | u991237710 | python |
p02718 | def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
if __name__ == "__main__":
N, M = map(int, input().split())
A = sorted(LI(), reverse=True)
sum = sum(A)
if A[M-1] < sum//(4*M):
print("No")
else:
print("Yes") | def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
if __name__ == "__main__":
N, M = map(int, input().split())
A = sorted(LI(), reverse=True)
sum = sum(A)
if A[M-1] < sum/(4*M):
print("No")
else:
print("Yes") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 487,559 | 487,560 | u951113446 | python |
p02718 | import numpy as np
tmp = list(map(int, input().split()))
num = list(map(int, input().split()))
count = 0
b = sum(num)/(4*tmp[1])
for i in num:
if i>b:
count+=1
if tmp[1]<=count:
print("Yes")
else:
print("No") | tmp = list(map(int, input().split()))
num = list(map(int, input().split()))
count = 0
b = sum(num)/(4*tmp[1])
for i in num:
if i>=b:
count+=1
if tmp[1]<=count:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,574 | 487,575 | u813993459 | python |
p02718 | tmp = list(map(int, input().split()))
num = list(map(int, input().split()))
count = 0
b = sum(num)//(4*tmp[1])
for i in num:
if i>b:
count+=1
if tmp[1]<=count:
print("Yes")
else:
print("No") | tmp = list(map(int, input().split()))
num = list(map(int, input().split()))
count = 0
b = sum(num)/(4*tmp[1])
for i in num:
if i>=b:
count+=1
if tmp[1]<=count:
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"
] | 487,576 | 487,575 | u813993459 | python |
p02718 |
first_input = list(map(lambda x:int(x), input().split(" ")))
second_input = list(map(lambda x:int(x), input().split(" ")))
second_input.sort(reverse=True)
criteria = sum(second_input)/float(4*first_input[1])
count = 0
for i in range(len(second_input)):
if second_input[i]>=criteria:
count = count+1
el... |
first_input = list(map(lambda x:int(x), input().split(" ")))
second_input = list(map(lambda x:int(x), input().split(" ")))
second_input.sort(reverse=True)
criteria = sum(second_input)/float(4*first_input[1])
count = 0
for i in range(len(second_input)):
if second_input[i]>=criteria:
count = count+1
el... | [
"control_flow.break.remove"
] | 487,588 | 487,589 | u222185706 | python |
p02718 |
first_input = list(map(lambda x:int(x), input().split(" ")))
second_input = list(map(lambda x:int(x), input().split(" ")))
second_input.sort(reverse=True)
criteria = sum(second_input)/float(4*first_input[1])
count = 0
for i in range(len(second_input)):
if second_input[i]>=criteria:
count = count+1
... |
first_input = list(map(lambda x:int(x), input().split(" ")))
second_input = list(map(lambda x:int(x), input().split(" ")))
second_input.sort(reverse=True)
criteria = sum(second_input)/float(4*first_input[1])
count = 0
for i in range(len(second_input)):
if second_input[i]>=criteria:
count = count+1
el... | [
"control_flow.break.add",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.break.remove"
] | 487,590 | 487,589 | u222185706 | python |
p02718 | N, M = map(int,input().split())
A = [int(a) for a in input().split()]
A.sort(reverse=True)
votes = sum(A)
for i in range(M):
if A[i]<votes//(4*M):
print("No")
break
else:
print("Yes") | N, M = map(int,input().split())
A = [int(a) for a in input().split()]
A.sort(reverse=True)
votes = sum(A)
for i in range(M):
if A[i]<votes/(4*M):
print("No")
break
else:
print("Yes") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 487,622 | 487,623 | u233159251 | python |
p02718 | import math
import sys
n, m = map(int, input().split())
#print(n)
#print(m)
a = input().split()
l_si_i = [int(b) for b in a]
#print(l_si_i)
#print(max(l_si_i))
#print(sum(l_si_i))
#border = math.floor(sum(l_si_i) / (4 * m))
border = sum(l_si_i) / (4 * m)
#print(border)
check = 0
for i in range(n):
c = l_si_i[i]
... | import math
import sys
n, m = map(int, input().split())
#print(n)
#print(m)
a = input().split()
l_si_i = [int(b) for b in a]
#print(l_si_i)
#print(max(l_si_i))
#print(sum(l_si_i))
#border = math.floor(sum(l_si_i) / (4 * m))
border = sum(l_si_i) / (4 * m)
#print(border)
check = 0
for i in range(n):
if l_si_i[i] >... | [
"control_flow.loop.for.condition.change"
] | 487,626 | 487,627 | u868606077 | python |
p02718 | N, M = [int(e) for e in input().split()]
A = sorted([int(e) for e in input().split()])
A.reverse()
base =float(sum(A)) / 4.0*M
cond = all([float(e) >= base for e in A[:M]])
ans = 'Yes' if cond else 'No'
print(ans)
| N, M = [int(e) for e in input().split()]
A = sorted([int(e) for e in input().split()])
A.reverse()
base =float(sum(A)) / 4.0/M
cond = all([float(e) >= base for e in A[:M]])
ans = 'Yes' if cond else 'No'
print(ans)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,628 | 487,629 | u840155763 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
sum_a = sum(a)
for i in range(m):
if a[i] >= int(sum_a/(4*m)):
continue
else:
print('No')
exit()
print('Yes')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
sum_a = sum(a)
for i in range(m):
if a[i] >= sum_a/(4*m):
continue
else:
print('No')
exit()
print('Yes')
| [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 487,630 | 487,631 | u768896740 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
sum_a = sum(a)
for i in range(m):
if a[i] > int(sum_a/(4*m)):
continue
else:
print('No')
exit()
print('Yes')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
sum_a = sum(a)
for i in range(m):
if a[i] >= sum_a/(4*m):
continue
else:
print('No')
exit()
print('Yes')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.remove"
] | 487,632 | 487,631 | u768896740 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
sum_a = sum(a)
for i in range(m):
if a[i] > int(sum_a/(n*m)):
continue
else:
print('No')
exit()
print('Yes')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
sum_a = sum(a)
for i in range(m):
if a[i] >= sum_a/(4*m):
continue
else:
print('No')
exit()
print('Yes')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.remove",
"identifier.replace.remove",
"literal.replace.add"
] | 487,633 | 487,631 | u768896740 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
sum_a = sum(a)
for i in range(m):
if a[i] >= int(sum_a/(n*m)):
continue
else:
print('No')
exit()
print('Yes')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
sum_a = sum(a)
for i in range(m):
if a[i] >= sum_a/(4*m):
continue
else:
print('No')
exit()
print('Yes')
| [
"control_flow.loop.for.condition.change",
"call.remove",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 487,634 | 487,631 | u768896740 | python |
p02718 | N, M = map(int, input().split())
cnt = 0
A = list(map(int, input().split()))
s = sum(A)
for i in range(N):
if(A[i] < (s/(4 * M))):
cnt += 1
if(cnt >= M):
print('Yes')
else:
print('No') | N, M = map(int, input().split())
cnt = 0
A = list(map(int, input().split()))
s = sum(A)
for i in range(N):
if(A[i] >= (s/(4 * M))):
cnt += 1
if(cnt >= M):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,635 | 487,636 | u114920558 | python |
p02718 | # coding: utf-8
# Your code here!
n,m= list(map(int,input().split()))
A = list(map(int,input().split()))
d = sum(A)
A.sort(reverse=True)
for a in range(m):
if A[a]< d//(4*m):
d = 0
break
if d == 0:print("No")
else: print("Yes")
| # coding: utf-8
# Your code here!
n,m= list(map(int,input().split()))
A = list(map(int,input().split()))
d = sum(A)
A.sort(reverse=True)
for a in range(m):
if A[a]< d/(4*m):
d = 0
break
if d == 0:print("No")
else: print("Yes")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 487,660 | 487,661 | u580433316 | python |
p02718 | # coding: utf-8
# Your code here!
n,m= list(map(int,input().split()))
A = list(map(int,input().split()))
d = sum(A)
A.sort(reverse=True)
for a in range(m):
if A[a]<= d//(4*m):
d = 0
break
if d == 0:print("No")
else: print("Yes")
| # coding: utf-8
# Your code here!
n,m= list(map(int,input().split()))
A = list(map(int,input().split()))
d = sum(A)
A.sort(reverse=True)
for a in range(m):
if A[a]< d/(4*m):
d = 0
break
if d == 0:print("No")
else: print("Yes")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 487,662 | 487,661 | u580433316 | python |
p02718 | n,m = map(int,input().split())
List = [int(i) for i in input().split()]
a = sum(x>float(sum(List)/(4*m)) for x in List)
print("Yes" if a >= m else "No")
| n,m = map(int,input().split())
List = [int(i) for i in input().split()]
a = sum(x>=float(sum(List)/(4*m)) for x in List)
print("Yes" if a >= m else "No")
| [
"expression.operator.compare.change",
"assignment.value.change"
] | 487,665 | 487,666 | u439212411 | python |
p02718 | N,M = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
s = 0
for i in range(N):
s += a[i]
border = s/4*M
if a[M-1] < border:
print('No')
else:
print('Yes') | N,M = map(int,input().split())
a = list(map(int,input().split()))
a.sort(reverse=True)
s = 0
for i in range(N):
s += a[i]
border = s/(4*M)
if a[M-1] < border:
print('No')
else:
print('Yes') | [] | 487,671 | 487,672 | u487044452 | python |
p02718 | n,m = map(int, input().split())
ls = list(map(int, input().split()))
ls = sorted(ls,reverse=True)
print(ls)
print("Yes" if ls[m-1]*4*m >=sum(ls) else "No")
| n,m = map(int, input().split())
ls = list(map(int, input().split()))
ls = sorted(ls,reverse=True)
print("Yes" if ls[m-1]*4*m >=sum(ls) else "No") | [
"call.remove"
] | 487,701 | 487,702 | u115110170 | python |
p02718 | n,m = map(int, input().split())
ls = list(map(int, input().split()))
ls = sorted(ls,reverse=True)
print("Yes" if ls[m-1]*4*m >sum(ls) else "No")
| n,m = map(int, input().split())
ls = list(map(int, input().split()))
ls = sorted(ls,reverse=True)
print("Yes" if ls[m-1]*4*m >=sum(ls) else "No") | [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 487,703 | 487,702 | u115110170 | python |
p02718 | N,M=(int(i) for i in input().split())
A=list(map(int,input().split()))
S=len(A)
mono=0
soutoku=0
for i in range(S):
soutoku=soutoku+A[i]
for i in range(S):
if A[i]>soutoku/(4*M):
mono=mono+1
if mono>=M:
print("Yes")
else:
print("No") | N,M=(int(i) for i in input().split())
A=list(map(int,input().split()))
S=len(A)
mono=0
soutoku=0
for i in range(S):
soutoku=soutoku+A[i]
for i in range(S):
if A[i]>=soutoku/(4*M):
mono=mono+1
if mono>=M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,706 | 487,707 | u688219499 | python |
p02718 | import numpy as np
n, m = map(int, input().split())
an = list(map(int, input().split()))
an = np.array(sorted(an, reverse=True))
total = sum(an)
if sum(an[:m] > (total / (4 * m))) >= m:
print('Yes')
else:
print('No') | import numpy as np
n, m = map(int, input().split())
an = list(map(int, input().split()))
an = np.array(sorted(an, reverse=True))
total = sum(an)
if sum(an[:m] >= (total / (4 * m))) >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,710 | 487,711 | u949115942 | python |
p02718 | import numpy as np
n, m = map(int, input().split())
an = list(map(int, input().split()))
an = np.array(sorted(an, reverse=True))
total = sum(an)
if sum((an / total)[:m] > (1 / (4 * m))) >= m:
print('Yes')
else:
print('No') | import numpy as np
n, m = map(int, input().split())
an = list(map(int, input().split()))
an = np.array(sorted(an, reverse=True))
total = sum(an)
if sum(an[:m] >= (total / (4 * m))) >= m:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"identifier.replace.add",
"literal.replace.remove"
] | 487,712 | 487,711 | u949115942 | python |
p02718 | n, m = map(int, input().split())
points = [i for i in map(int, input().split())]
sumValue = sum(points)
candidates = [i for i in points if i >= (sumValue/4*m)]
if len(candidates) >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
points = [i for i in map(int, input().split())]
sumValue = sum(points)
candidates = [i for i in points if float(i) >= (sumValue/(4*m))]
if len(candidates) >= m:
print("Yes")
else:
print("No") | [
"call.add",
"call.arguments.change"
] | 487,713 | 487,714 | u210545407 | python |
p02718 | n, m = map(int, input().split())
points = [i for i in map(int, input().split())]
sumValue = sum(points)
candidates = [i for i in points if i > (sumValue/4*m)]
if len(candidates) >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
points = [i for i in map(int, input().split())]
sumValue = sum(points)
candidates = [i for i in points if float(i) >= (sumValue/(4*m))]
if len(candidates) >= m:
print("Yes")
else:
print("No") | [
"call.add",
"assignment.value.change"
] | 487,715 | 487,714 | u210545407 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
sm = sum(A)
jud = sm/(4*M)
b = 0
for i in A:
if i > jud:
b = b+1
if b > M:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
sm = sum(A)
jud = sm/(4*M)
b = 0
for i in A:
if i >= jud:
b = b+1
if b >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,722 | 487,723 | u500990280 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
ans = [i for i in A if i > S // (4*M)]
if len(ans) >= M:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
ans = [i for i in A if i >= S / (4*M)]
if len(ans) >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"assignment.value.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 487,731 | 487,732 | u931173291 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
ans = [i for i in A if i > S / (4*M)]
if len(ans) > M:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
ans = [i for i in A if i >= S / (4*M)]
if len(ans) >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"assignment.value.change",
"control_flow.branch.if.condition.change"
] | 487,733 | 487,732 | u931173291 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
ans = [i for i in A if i > S / (4*M)]
if len(ans) >= M:
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
ans = [i for i in A if i >= S / (4*M)]
if len(ans) >= M:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"assignment.value.change"
] | 487,734 | 487,732 | u931173291 | python |
p02718 | # -*- coding: utf-8 -*-
from sys import stdin
from operator import itemgetter
import math
# stdin = open("sample.txt")
N,M = [int(x) for x in stdin.readline().rstrip().split()]
hyo = list(map(int,[int(x) for x in stdin.readline().rstrip().split()]))
sort_hyo = sorted(hyo, reverse=True)
point = sum(hyo)
target = point... | # -*- coding: utf-8 -*-
from sys import stdin
from operator import itemgetter
import math
# stdin = open("sample.txt")
N,M = [int(x) for x in stdin.readline().rstrip().split()]
hyo = list(map(int,[int(x) for x in stdin.readline().rstrip().split()]))
sort_hyo = sorted(hyo, reverse=True)
point = sum(hyo)
target = math.... | [
"call.add",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.arguments.change"
] | 487,737 | 487,738 | u595353654 | python |
p02718 | n,m = map(int,input().split())
a = [int(x) for x in input().split()]
ans = 'Yes'
list.sort(a, reverse=True)
for i in range(m):
if a[i]/sum(a) <= 1/(4*m):
ans = 'No'
print(ans) | n,m = map(int,input().split())
a = [int(x) for x in input().split()]
ans = 'Yes'
list.sort(a, reverse=True)
for i in range(m):
if a[i]/sum(a) < 1/(4*m):
ans = 'No'
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,743 | 487,744 | u945157177 | python |
p02718 | n,m = map(int,input().split())
a = [int(x) for x in input().split()]
ans = 'Yes'
list.sort(a, reverse=True)
#print(a)
for i in range(m):
#print(a[i]/sum(a),1/(4*m))
if a[i]/sum(a) <= 1/(4*m):
ans = 'No'
break
print(ans) | n,m = map(int,input().split())
a = [int(x) for x in input().split()]
ans = 'Yes'
list.sort(a, reverse=True)
for i in range(m):
if a[i]/sum(a) < 1/(4*m):
ans = 'No'
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.break.remove"
] | 487,745 | 487,744 | u945157177 | python |
p02718 | N,M=map(int,input().split())#N 種類の数 M 選ぶ品物の数
A=list(map(int,input().split()))#得票数
m=sum(A)/(4*M)
A=[i for i in A if i>=m]
if len(A)>=M:
print("Yes")
else:
print("NO") | N,M=map(int,input().split())#N 種類の数 M 選ぶ品物の数
A=list(map(int,input().split()))#得票数
m=sum(A)/(4*M)
A=[i for i in A if i>=m]
if len(A)>=M:
print("Yes")
else:
print("No")
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 487,751 | 487,752 | u924783770 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
Sum=sum(A)
pop=[]
l=Sum/(4*M)
for i in range(N):
if(A[i]>=l):
pop.append(A[i])
print("Yes" if len(pop)==M else "No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
Sum=sum(A)
pop=[]
l=Sum/(4*M)
for i in range(N):
if(A[i]>=l):
pop.append(A[i])
print("Yes" if len(pop)>=M else "No") | [
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 487,753 | 487,754 | u444722572 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
Sum=sum(A)
pop=[]
l=Sum/(4*M)
for i in range(N):
if(A[i]>l):
pop.append(A[i])
print("Yes" if len(pop)==M else "No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
Sum=sum(A)
pop=[]
l=Sum/(4*M)
for i in range(N):
if(A[i]>=l):
pop.append(A[i])
print("Yes" if len(pop)>=M else "No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"io.output.change"
] | 487,755 | 487,754 | u444722572 | python |
p02718 | N,M=map(int,input().split())
A=list(map(int,input().split()))
Sum=sum(A)
pop=[]
l=Sum/(4*M)
for i in range(N):
if(A[i]>l):
pop.append(A[i])
print("Yes" if len(pop)>=M else "No") | N,M=map(int,input().split())
A=list(map(int,input().split()))
Sum=sum(A)
pop=[]
l=Sum/(4*M)
for i in range(N):
if(A[i]>=l):
pop.append(A[i])
print("Yes" if len(pop)>=M else "No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,756 | 487,754 | u444722572 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.