problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02718 | N, M = map(int, input().split())
*A, = map(int, input().split())
A.sort(reverse=True)
total_point = sum(A)
selectable = False
if total_point * (1 / (4 * M)) < A[M-1]:
selectable = True
if selectable:
print('Yes')
else:
print('No')
| N, M = map(int, input().split())
*A, = map(int, input().split())
A.sort(reverse=True)
total_point = sum(A)
selectable = False
if total_point * (1 / (4 * M)) <= A[M-1]:
selectable = True
if selectable:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,761 | 487,760 | u729836751 | python |
p02718 | n,m = map(int,input().split())
l = list(map(int,input().split()))
l.sort(reverse=True)
if l[n-1] < sum(l)/4/m:
print('No')
else:
print('Yes') | n,m = map(int,input().split())
l = list(map(int,input().split()))
l.sort(reverse=True)
if l[m-1] < (sum(l)/4)/m:
print('No')
else:
print('Yes') | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 487,766 | 487,767 | u793010149 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
s=sum(a)
k=0
for i in range(n):
if a[i]>=s/4*m:
k+=1
if k>=m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
s=sum(a)
k=0
for i in range(n):
if a[i]>=s/(4*m):
k+=1
if k>=m:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 487,768 | 487,769 | u674959776 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
suma=sum(a)
l=suma/(4*m)
a.sort(reverse=True)
if a[m]>=l:
print('Yes')
else:
print('No') | n,m=map(int,input().split())
a=list(map(int,input().split()))
suma=sum(a)
l=suma/(4*m)
a.sort(reverse=True)
if a[m-1]>=l:
print('Yes')
else:
print('No')
| [
"control_flow.branch.if.condition.change"
] | 487,772 | 487,773 | u967835038 | python |
p02718 | n,m = (int(x) for x in input().split())
list = list(map(int,input().split()))
su1 = sum(list)
su2 = 0
for i in range(n):
if list[i]>su1/(4*m):
su2+=1
if su2>=m:
print('Yes')
else:
print('No') | n,m = (int(x) for x in input().split())
list = list(map(int,input().split()))
su1 = sum(list)
su2 = 0
for i in range(n):
if list[i]>=su1/(4*m):
su2+=1
if su2>=m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,774 | 487,775 | u207137484 | python |
p02718 | N, M=map(int, input().split())
A=list(map(int, input().split()))
count=0
for a in A:
if a>=sum(A)/4:
count+=1
if count>=M:
print("Yes")
else:
print("No") | N, M=map(int, input().split())
A=list(map(int, input().split()))
count=0
for a in A:
if a>=sum(A)/4/M:
count+=1
if count>=M:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 487,776 | 487,777 | u634576930 | python |
p02718 | in_ = input()
n, m = map(int, in_.split())
in_ = input()
a = map(int, in_.split())
a = sorted(a, reverse=True)
mm = int(sum(a) / (4. * m))
if a[m-1] > mm:
print('Yes')
else:
print('No')
| in_ = input()
n, m = map(int, in_.split())
in_ = input()
a = map(int, in_.split())
a = sorted(a, reverse=True)
mm = sum(a) / (4. * m)
if a[m-1] >= mm:
print('Yes')
else:
print('No')
| [
"call.remove",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,787 | 487,788 | u549502601 | python |
p02718 | in_ = input()
n, m = map(int, in_.split())
in_ = input()
a = map(int, in_.split())
a = sorted(a, reverse=True)
mm = int(sum(a) / (4. * m))
if a[m-1] >= mm:
print('Yes')
else:
print('No')
| in_ = input()
n, m = map(int, in_.split())
in_ = input()
a = map(int, in_.split())
a = sorted(a, reverse=True)
mm = sum(a) / (4. * m)
if a[m-1] >= mm:
print('Yes')
else:
print('No')
| [
"call.remove",
"call.arguments.change"
] | 487,789 | 487,788 | u549502601 | python |
p02718 | n,m = map(int,input().split())
a = [ int(x) for x in input().split()]
limit = sum(a)//(4*m)
count=0
for x in a:
if(x>=limit):
count+=1
if(count<=m):
print('No')
else:
print('Yes') | n,m = map(int,input().split())
a = [ int(x) for x in input().split()]
limit = sum(a)/(4*m)
count=0
for x in a:
if(x>=limit):
count+=1
if(count<m):
print('No')
else:
print('Yes') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,799 | 487,800 | u207326980 | python |
p02718 | n,m = map(int,input().split())
a = [ int(x) for x in input().split()]
limit = sum(a)//(4*m)
count=0
for x in a:
if(x>=limit):
count+=1
if(count<m):
print('No')
else:
print('Yes') | n,m = map(int,input().split())
a = [ int(x) for x in input().split()]
limit = sum(a)/(4*m)
count=0
for x in a:
if(x>=limit):
count+=1
if(count<m):
print('No')
else:
print('Yes') | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,801 | 487,800 | u207326980 | python |
p02718 | N, M = map(int, input().split())
A = input().split()
list_a = [int(n) for n in A]
count = 0
waru = 4 * M
SUM = sum(list_a)
vote = SUM / waru
for i in range(0, N):
if list_a[i] > vote:
count += 1
else:
pass
if count >= M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = input().split()
list_a = [int(n) for n in A]
count = 0
waru = 4 * M
SUM = sum(list_a)
vote = SUM / waru
for i in range(0, N):
if list_a[i] >= vote:
count += 1
else:
pass
if count >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,815 | 487,816 | u750651325 | python |
p02718 | N, M = map(int, input().split())
A = input().split()
list_a = [int(n) for n in A]
count = 0
waru = 4 * M
SUM = sum(list_a)
vote = SUM / waru
for i in range(0, N):
if list_a[i] > vote:
count += 1
else:
pass
print(count)
if count >= M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = input().split()
list_a = [int(n) for n in A]
count = 0
waru = 4 * M
SUM = sum(list_a)
vote = SUM / waru
for i in range(0, N):
if list_a[i] >= vote:
count += 1
else:
pass
if count >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove"
] | 487,817 | 487,816 | u750651325 | python |
p02718 | N, M = map(int, input().split())
A = input().split()
list_a = [int(n) for n in A]
count = 0
waru = 4 * M
SUM = sum(list_a)
vote = SUM / waru
for i in range(0, N):
if list_a[i] > vote:
count += 1
else:
pass
if count > M:
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A = input().split()
list_a = [int(n) for n in A]
count = 0
waru = 4 * M
SUM = sum(list_a)
vote = SUM / waru
for i in range(0, N):
if list_a[i] >= vote:
count += 1
else:
pass
if count >= M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,818 | 487,816 | u750651325 | python |
p02718 | import math
n, m = map(int, input().split())
ls = list(map(int, input().split()))
ls.sort(reverse=True)
gk = sum(ls)
hikaku = math.ceil(gk/(4*n))
if hikaku <int(ls[m-1]):
print('Yes')
else:
print('No') | import math
n, m = map(int, input().split())
ls = list(map(int, input().split()))
ls.sort(reverse=True)
gk = sum(ls)
hikaku = math.ceil(gk/(4*m))
if hikaku <= int(ls[m-1]):
print('Yes')
else:
print('No') | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,835 | 487,836 | u441857527 | python |
p02718 | import math
n, m = map(int, input().split())
ls = list(map(int, input().split()))
ls.sort(reverse=True)
gk = sum(ls)
hikaku = math.ceil(gk/(4*n))
if hikaku <=int(ls[m-1]):
print('Yes')
else:
print('No') | import math
n, m = map(int, input().split())
ls = list(map(int, input().split()))
ls.sort(reverse=True)
gk = sum(ls)
hikaku = math.ceil(gk/(4*m))
if hikaku <= int(ls[m-1]):
print('Yes')
else:
print('No') | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 487,837 | 487,836 | u441857527 | python |
p02718 | from sys import stdin
N, M = [int(x) for x in stdin.readline().rstrip().split()]
A = [int(x) for x in input().split()]
# print(N, M, A)
A.sort()
if sum(A) % (4*M):
b = sum(A)//(4*M)
else:
b = sum(A)//(4*M)+1
# print(b,A,A[N-1-M-1])
if A[N-1-(M-1)] >= b:
print("Yes")
else:
print("No")
# print(A)
| from sys import stdin
N, M = [int(x) for x in stdin.readline().rstrip().split()]
A = [int(x) for x in input().split()]
# print(N, M, A)
A.sort()
if sum(A) % (4*M) == 0:
b = sum(A)//(4*M)
else:
b = sum(A)//(4*M)+1
# print(b,A,A[N-1-M+1])
if A[N-1-(M-1)] >= b:
print("Yes")
else:
print("No")
# print(A)
| [
"control_flow.branch.if.condition.change"
] | 487,842 | 487,843 | u396210538 | python |
p02718 | N, M = map(int, input().split())
lists, count, error = [int(x) for x in input().split()], 0, 0
for x in lists:
if x < ((1 / (4 * M)) * sum(lists)):
count += 1
print('Yes' if count >= M else 'No')
| N, M = map(int, input().split())
lists, count = [int(x) for x in input().split()], 0
for x in lists:
if x >= ((1 / (4 * M)) * sum(lists)):
count += 1
print('Yes' if count >= M else 'No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,844 | 487,845 | u325270534 | python |
p02718 | N, M = (int(x) for x in input().split())
A = list(map(int, input().strip().split()))
A.sort(reverse=True)
for m in range(M):
s = sum(A)
if A[m] > s / (4 * M):
a = True
else:
a = False
if a == True:
print("Yes")
else:
print("No") | N, M = (int(x) for x in input().split())
A = list(map(int, input().strip().split()))
A.sort(reverse=True)
for m in range(M):
s = sum(A)
if A[m] >= s / (4 * M):
a = True
else:
a = False
if a == True:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,846 | 487,847 | u901060001 | python |
p02718 |
N, M = map(int, input().split())
A = list(map(int, input().split()))
sum_A = sum(A)
bool_list = []
for i in range(len(A)):
if A[i] >= (sum_A / 4*M):
bool_list.append("T")
else:
continue
# print(sum_A)
# print(bool_list)
if bool_list.count("T") >= M:
print("Yes")
else:
print("No")
... |
N, M = map(int, input().split())
A = list(map(int, input().split()))
sum_A = sum(A)
bool_list = []
for i in range(len(A)):
if A[i] >= (sum_A / (4*M)):
bool_list.append("T")
else:
continue
if bool_list.count("T") >= M:
print("Yes")
else:
print("No")
| [
"control_flow.branch.if.condition.change"
] | 487,848 | 487,849 | u028014940 | python |
p02718 | n,m = map(int,input().split())
lis = input().split()
lis = [int(i) for i in lis]
s = sum(lis)
ans = 0
for i in range(n):
if lis[i] > s*(1/(4*m)):
ans += 1
if ans >= m:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
lis = input().split()
lis = [int(i) for i in lis]
s = sum(lis)
ans = 0
for i in range(n):
if lis[i] >= s*(1/(4*m)):
ans += 1
if ans >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,850 | 487,851 | u772062359 | python |
p02718 |
n,m = map(int,input().split())
lis = input().split()
lis = [int(i) for i in lis]
s = sum(lis)
ans = 0
for i in range(n):
if lis[i] > s*(1/(4*m)):
ans += 1
print(0)
if ans >= m:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
lis = input().split()
lis = [int(i) for i in lis]
s = sum(lis)
ans = 0
for i in range(n):
if lis[i] >= s*(1/(4*m)):
ans += 1
if ans >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove"
] | 487,852 | 487,851 | u772062359 | python |
p02718 | N, M = map(int, input(). split())
A = list(map(int, input().split()))
A.sort()
S = sum(A)
if 1/(4*M) <= A[N-M]/S :
print("YES")
else:
print("NO") | N, M = map(int, input(). split())
A = list(map(int, input().split()))
A.sort()
S = sum(A)
if 1/(4*M) <= A[N-M]/S :
print("Yes")
else:
print("No") | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 487,853 | 487,854 | u337626942 | python |
p02718 | n, m = map(int, input().split())
a = [int(e) for e in input().split()]
s = sum(a) / (4 * m)
ans = 0
for i in range(n - 1):
if a[i] >= s:
ans += 1
else:
ans += 0
if ans >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = [int(e) for e in input().split()]
s = sum(a) / (4 * m)
ans = 0
for i in range(n):
if a[i] >= s:
ans += 1
else:
ans += 0
if ans >= m:
print("Yes")
else:
print("No") | [
"expression.operation.binary.remove"
] | 487,872 | 487,873 | u845847173 | python |
p02718 | n, m = map(int, input().split())
a = [int(e) for e in input().split()]
s = sum(a) / (4 * m)
ans = 0
for i in range(len(a)):
if a[i] >= s:
ans += 1
else:
ans += 0
if ans >= n:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = [int(e) for e in input().split()]
s = sum(a) / (4 * m)
ans = 0
for i in range(n):
if a[i] >= s:
ans += 1
else:
ans += 0
if ans >= m:
print("Yes")
else:
print("No") | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 487,874 | 487,873 | u845847173 | python |
p02718 | n, m = map(int, input().split())
a = [int(e) for e in input().split()]
s = sum(a) / (4 * m)
ans = 0
for i in range(len(a)):
if a[i] >= s:
ans += 1
else:
ans += 0
if ans == n:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = [int(e) for e in input().split()]
s = sum(a) / (4 * m)
ans = 0
for i in range(n):
if a[i] >= s:
ans += 1
else:
ans += 0
if ans >= m:
print("Yes")
else:
print("No") | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.loop.for.condition.change"
] | 487,875 | 487,873 | u845847173 | python |
p02718 | N, M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
f = S / (4 * M)
A.sort(reverse=True)
flag = 0
for i in range(M):
if A[i] > f:
pass
else:
flag = 1
break
if flag == 0:
print("Yes")
else:
print("No") | N, M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
f = S / (4 * M)
A.sort(reverse=True)
flag = 0
for i in range(M):
if A[i] >= f:
pass
else:
flag = 1
break
if flag == 0:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,880 | 487,881 | u001839988 | python |
p02718 | N, M = map(int, input().split())
num_list = list(map(int, input().split()))
sorted_list = sorted(num_list, reverse=True)
hoge = 4*M
thr = sum(num_list) // hoge
ans = 'Yes'
if sorted_list[M-1] < thr:
ans = 'No'
print(ans)
| N, M = map(int, input().split())
num_list = list(map(int, input().split()))
sorted_list = sorted(num_list, reverse=True)
hoge = 4*M
thr = sum(num_list) / hoge
ans = 'Yes'
if sorted_list[M-1] < thr:
ans = 'No'
print(ans)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,896 | 487,897 | u893307213 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
choicable = list(map(lambda x:True if x>sum(a)/(4*m) else False,a))
print('Yes' if sum(choicable) >= m else 'No') | n, m = map(int, input().split())
a = list(map(int, input().split()))
choicable = list(map(lambda x:True if x>=sum(a)/(4*m) else False,a))
print('Yes' if sum(choicable) >= m else 'No') | [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change"
] | 487,900 | 487,901 | u460615319 | python |
p02718 | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
mm = int(sum(A) / (4 * M))
print('Yes' if len([i for i in A if i >= mm]) >= M else 'No') | N, M = list(map(int, input().split()))
A = list(map(int, input().split()))
mm = sum(A) / (4 * M)
print('Yes' if len([i for i in A if i >= mm]) >= M else 'No')
| [
"call.remove",
"call.arguments.change"
] | 487,904 | 487,905 | u889604426 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
u = sum(a) / (4*m)
print(u)
l = 0
for i in a:
if i >= u:
l += 1
print("Yes") if l >= m else print("No") | n, m = map(int, input().split())
a = list(map(int, input().split()))
u = sum(a) / (4*m)
l = 0
for i in a:
if i >= u:
l += 1
print("Yes") if l >= m else print("No") | [
"call.remove"
] | 487,906 | 487,907 | u392058721 | python |
p02718 | import math
N, M = map(int, input().split())
AS = list(map(int, input().split()))
cond = math.floor(sum(AS) / (4 * M))
AS = sorted(AS, reverse=True)
origin = AS[0:M]
result = list(filter(lambda a: a >= cond, origin))
if origin == result:
print("Yes")
else:
print("No") | import math
N, M = map(int, input().split())
AS = list(map(int, input().split()))
cond = sum(AS) / (4 * M)
AS = sorted(AS, reverse=True)
origin = AS[0:M]
result = list(filter(lambda a: a >= cond, origin))
if origin == result:
print("Yes")
else:
print("No") | [
"call.remove",
"call.arguments.change"
] | 487,918 | 487,919 | u905421775 | python |
p02718 | N,M=map(int, input().split())
A=list(map(int, input().split()))
s=sum(A)
d=s//(4*M)
count=0
i=0
while(i<N):
if(A[i]>=d):
count=count+1
i=i+1
if(count>=M):
print("Yes")
else:
print("No")
| N,M=map(int, input().split())
A=list(map(int, input().split()))
s=sum(A)
d=s/(4*M)
count=0
i=0
while(i<N):
if(A[i]>=d):
count=count+1
i=i+1
if(count>=M):
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,920 | 487,921 | u219537663 | python |
p02718 | N,M = map(int,input().split())
As = list(map(int,input().split()))
As.sort(reverse=True)
al = sum(As)
ans = 'No' if al/(4*M)>As[M] else 'Yes'
print(ans) | N,M = map(int,input().split())
As = list(map(int,input().split()))
As.sort(reverse=True)
al = sum(As)
ans = 'No' if al/(4*M)>As[M-1] else 'Yes'
print(ans) | [
"assignment.change"
] | 487,948 | 487,949 | u690184681 | python |
p02718 | n,m = list(map(int,input().split()))
a = list(map(int,input().split()))
output = "No"
cnt = 0
for i in range(n - 1):
if a[i] >= sum(a) * 1 / (4 * m):
cnt += 1
if cnt >= m:
output = "Yes"
print(output) | n,m = list(map(int,input().split()))
a = list(map(int,input().split()))
output = "No"
cnt = 0
for i in range(n):
if a[i] >= sum(a) / (4 * m):
cnt += 1
if cnt >= m:
output = "Yes"
print(output) | [
"expression.operation.binary.remove",
"control_flow.loop.for.condition.change"
] | 487,960 | 487,961 | u619398783 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
sa = sorted(a)
sum=0
for i in range(n):
sum += a[i]
t = sum / (4*m)
if sa[n-1-m] < t:
print("No")
else:
print("Yes") | n,m = map(int, input().split())
a = list(map(int, input().split()))
sa = sorted(a)
sum=0
for i in range(n):
sum += a[i]
t = sum / (4*m)
if sa[n-m] < t:
print("No")
else:
print("Yes") | [
"expression.operation.binary.remove"
] | 487,962 | 487,963 | u018984506 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
a_sum = sum(a)
list.sort(a,reverse=True)
judge = 1
for i in range(m):
if a[i]<= a_sum*1/(m*4):
judge = 0
break
if judge == 0:
print('No')
else:
print('Yes') | n,m = map(int,input().split())
a = list(map(int,input().split()))
a_sum = sum(a)
list.sort(a,reverse=True)
judge = 1
for i in range(m):
if a[i]< a_sum*1/(m*4):
judge = 0
break
if judge == 0:
print('No')
else:
print('Yes') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,964 | 487,965 | u551109821 | python |
p02718 | n, m = map(int, input().split())
list_vote = list(map(int, input().split()))
list_vote_copy = list_vote[:]
total_votes = sum(list_vote)
check = (total_votes / (4 * m))
count = 0
for ele in list_vote_copy:
if ele > check:
count += 1
if count >= m:
print("Yes")
else:
print("No")
| n, m = map(int, input().split())
list_vote = list(map(int, input().split()))
list_vote_copy = list_vote[:]
total_votes = sum(list_vote)
check = (total_votes / (4 * m))
count = 0
for ele in list_vote_copy:
if ele >= check:
count += 1
if count >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,966 | 487,967 | u385826034 | python |
p02718 | N, M = map(int, input().split())
A = sorted(map(int, input().split()), reverse=True)
if sum(A)/(4*M) >= A[M-1]:
print("No")
print("Yes") | N, M = map(int, input().split())
A = sorted(map(int, input().split()), reverse=True)
if sum(A)/(4*M) > A[M-1]:
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,968 | 487,969 | u125853218 | python |
p02718 | N, M = map(int, input().split())
A = sorted(map(int, input().split()), reverse=True)
if sum(A)/(4*M) > A[M-1]:
print("No")
print("Yes") | N, M = map(int, input().split())
A = sorted(map(int, input().split()), reverse=True)
if sum(A)/(4*M) > A[M-1]:
print("No")
else:
print("Yes") | [] | 487,970 | 487,969 | u125853218 | python |
p02718 | n,m =map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
border = total // (4*m)
count = 0
for i in range(n):
if A[i] >= border:
count += 1
ans = "Yes"
if count < m:
ans = "No"
print(ans) | n,m =map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
border = total / (4*m)
count = 0
for i in range(n):
if A[i] >= border:
count += 1
ans = "Yes"
if count < m:
ans = "No"
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 487,971 | 487,972 | u638033979 | python |
p02718 | n,m =map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
border = total // (4*m)
count = 0
for i in range(n):
if A[i] > border:
count += 1
ans = "Yes"
if count < m:
ans = "No"
print(ans) | n,m =map(int, input().split())
A = list(map(int, input().split()))
total = sum(A)
border = total / (4*m)
count = 0
for i in range(n):
if A[i] >= border:
count += 1
ans = "Yes"
if count < m:
ans = "No"
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,973 | 487,972 | u638033979 | python |
p02718 | N,M = [int(i) for i in input().split()]
AList = [int(i) for i in input().split()]
H = sum(AList)/(4*M)
S =0
for A in AList:
if A> H:
S = S + 1
if S >= M:
print('Yes')
else:
print('No')
| N,M = [int(i) for i in input().split()]
AList = [int(i) for i in input().split()]
H = sum(AList)/(4*M)
S =0
for A in AList:
if A>= H:
S = S + 1
if S >= M:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,976 | 487,977 | u436001578 | python |
p02718 | import sys
n, m = map(int, input().split())
l = [int(x) for x in input().split()]
cnt = 0
for i in l:
if i < int(sum(l)*1/(4*m)):
cnt += 1
if cnt > len(l)-m:
print("No")
sys.exit()
print("Yes")
| import sys
n, m = map(int, input().split())
l = [int(x) for x in input().split()]
cnt = 0
for i in l:
if float(i) < float(sum(l)*1/(4*m)):
cnt += 1
if cnt > len(l)-m:
print("No")
sys.exit()
print("Yes")
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add",
"identifier.change",
"call.function.change"
] | 487,985 | 487,986 | u693945629 | python |
p02718 | # B
n, m = map(int, input().split())
a = list(map(int, input().split()))
quat = sum(a) / (4*m)
cnt = 0
for i in a:
if i > quat:
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No') | # B
n, m = map(int, input().split())
a = list(map(int, input().split()))
quat = sum(a) / (4*m)
cnt = 0
for i in a:
if i >= quat:
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 487,989 | 487,990 | u721425712 | python |
p02718 | import numpy as np
input_str = input()
N, M = list(map(lambda x: int(x), input_str.split(' ')))
input_str = input()
input_list = np.array(list(map(lambda x: int(x), input_str.split(' '))))
A_sum = np.sum(input_list)
count = np.count_nonzero(input_list > A_sum / (4*M))
print('Yes' if count > M else 'No')
| import numpy as np
input_str = input()
N, M = list(map(lambda x: int(x), input_str.split(' ')))
input_str = input()
input_list = np.array(list(map(lambda x: int(x), input_str.split(' '))))
A_sum = np.sum(input_list)
count = np.count_nonzero(input_list >= A_sum / (4*M))
print('Yes' if count >= M else 'No')
| [
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change",
"io.output.change"
] | 487,991 | 487,992 | u357515822 | python |
p02718 | n, m = map(int, input().split())
a = [int(i) for i in input().split(" ")]
s = sum(a)
c = s//(4*m)
ans = [i for i in a if i >= c]
if len(ans) >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
a = [int(i) for i in input().split(" ")]
s = sum(a)
c = s/(4*m)
ans = [1 for i in a if i >= c]
if len(ans) >= m:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"identifier.replace.remove",
"literal.replace.add"
] | 488,001 | 488,002 | u486065927 | python |
p02718 | n,m=map(int,input().split())
a=list(map(int,input().split()))
least=sum(a)/8
count=0
for i in a:
if i>=least:
count+=1
if count>=m:
print("Yes")
else:
print("No") | n,m=map(int,input().split())
a=list(map(int,input().split()))
least=sum(a)/4/m
count=0
for i in a:
if i>=least:
count+=1
if count>=m:
print("Yes")
else:
print("No") | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,013 | 488,014 | u711245972 | python |
p02718 | n, m = map(int, input().split())
alis = list(map(int, input().split()))
func = lambda x : x > (sum(alis)/(4*m))
anslis = list(map(func, alis))
if anslis.count(True) >= m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
alis = list(map(int, input().split()))
func = lambda x : x >= (sum(alis)/(4*m))
anslis = list(map(func, alis))
if anslis.count(True) >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"assignment.value.change"
] | 488,017 | 488,018 | u857293613 | python |
p02718 | N,M= map(int, input().split())
a = list(map(int,input().split()))
b = sorted(a,reverse = True)
total = 0
for i in range(len(b)):
total += b[i]
if b[M]<total/(4*M):
print("No")
else:
print("Yes") | N,M= map(int, input().split())
a = list(map(int,input().split()))
b = sorted(a,reverse = True)
total = 0
for i in range(len(b)):
total += b[i]
if b[M-1]<total/(4*M):
print("No")
else:
print("Yes")
| [
"control_flow.branch.if.condition.change"
] | 488,019 | 488,020 | u798093965 | python |
p02718 | N,M = map(int, input().split())
A = list(map(int, input().split()))
sum_A = sum(A)
cout = 0
flag = False
for i in range(N):
if A[i] >= sum_A // (4 * M):
cout += 1
if cout > M:
flag = True
break
if flag:
print('Yes')
else:
print('No') | N,M = map(int, input().split())
A = list(map(float, input().split()))
sum_A = sum(A)
cout = 0
flag = False
for i in range(N):
if A[i] >= sum_A / (4 * M):
cout += 1
if cout >= M:
flag = True
break
if flag:
print('Yes')
else:
print('No') | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 488,023 | 488,022 | u334314337 | python |
p02718 | n,m = map(int,input().split())
line = sorted(list(map(int,input().split())),reverse = True)
sums = sum(line)
if sums % (4*m) != 0:
least = sums//(4*m)
else:
least = sums//(4*m) + 1
box = []
for i in line:
if i > least:
box.append(i)
if len(box) >= m:
print("Yes")
else:
print("No") | n,m = map(int,input().split())
line = sorted(list(map(int,input().split())),reverse = True)
sums = sum(line)
if sums % (4*m) != 0:
least = sums//(4*m) + 1
else:
least = sums//(4*m)
box = []
for i in line:
if i >= least:
box.append(i)
if len(box) >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,030 | 488,031 | u626467464 | python |
p02718 | N, M= map(int, input().split())
A = list(map(int, input().split()))
sum_A=0
for i in range (0,N):
sum_A=sum_A+A[i]
pop=0
for i in range(0,N):
if A[i]>=sum_A//(4*M):
pop=pop+1
if pop>=M:
print("Yes")
else:
print("No")
| N, M= map(int, input().split())
A = list(map(int, input().split()))
sum_A=0
for i in range (0,N):
sum_A=sum_A+A[i]
pop=0
for i in range(0,N):
if A[i]>=sum_A/(4*M):
pop=pop+1
if pop>=M:
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,038 | 488,039 | u277175276 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse = True)
t = sum(a)
p = 0
for i in range(n):
if a[i] >= t/(4*m):
p += 1
else:
break
if p > m:
print('Yes')
else:
print('No')
| n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse = True)
t = sum(a)
p = 0
for i in range(n):
if a[i] >= t/(4*m):
p += 1
else:
break
if p >= m:
print('Yes')
else:
print('No') | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,040 | 488,041 | u824264563 | python |
p02718 | n,m = map(int, input().split())
a = list(map(int, input().split()))
count = 0
for i in range(n):
if a[i] > (1/4)*(1/m)*sum(a):
count += 1
if count >= m:
print("Yes")
else:
print("No") | n,m = map(int, input().split())
a = list(map(float, input().split()))
count = 0
for i in range(n):
if a[i] >= (1.0/4)*(1.0/m)*sum(a):
count += 1
if count >= m:
print("Yes")
else:
print("No") | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,042 | 488,043 | u682467216 | python |
p02718 | INPUT = input().split()
N = int(INPUT[0])
M = int(INPUT[1])
score_list = input().split()
score_list_int = [int(n) for n in score_list]
border = sum(score_list_int)/4/M
answer = "yes"
for i in score_list_int:
if i < border:
N -= 1
if N < M:
answer = "no"
print(answer) | INPUT = input().split()
N = int(INPUT[0])
M = int(INPUT[1])
score_list = input().split()
score_list_int = [int(n) for n in score_list]
border = sum(score_list_int)/4/M
answer = "Yes"
for i in score_list_int:
if i < border:
N -= 1
if N < M:
answer = "No"
print(answer) | [
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 488,063 | 488,064 | u731253724 | python |
p02718 | INPUT = input().split()
N = int(INPUT[0])
M = int(INPUT[1])
score_list = input().split()
score_list_int = [int(n) for n in score_list]
border = sum(score_list_int)/4
answer = "yes"
for i in score_list_int:
if i < border:
N -= 1
if N < M:
answer = "no"
print(answer) | INPUT = input().split()
N = int(INPUT[0])
M = int(INPUT[1])
score_list = input().split()
score_list_int = [int(n) for n in score_list]
border = sum(score_list_int)/4/M
answer = "Yes"
for i in score_list_int:
if i < border:
N -= 1
if N < M:
answer = "No"
print(answer) | [
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 488,065 | 488,064 | u731253724 | python |
p02718 | #!/usr/bin/env python3
N,M =map(int, input().split())
A =list(map(int, input().split()))
B = sorted(A, reverse = True)
if B[M-1] >= sum(B)//4//M:
print("Yes")
else:
print("No") | N,M =map(int, input().split())
A =list(map(int, input().split()))
B = sorted(A, reverse = True)
if B[M-1] >= sum(B)/4/M:
print("Yes")
else:
print("No") | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,074 | 488,075 | u489124637 | python |
p02718 | #!/usr/bin/env python3
N,M =map(int, input().split())
A =list(map(int, input().split()))
B = sorted(A, reverse = True)
if B[M] >= sum(B)//4//M:
print("Yes")
else:
print("No") | N,M =map(int, input().split())
A =list(map(int, input().split()))
B = sorted(A, reverse = True)
if B[M-1] >= sum(B)/4/M:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 488,076 | 488,075 | u489124637 | python |
p02718 | #!/usr/bin/env python3
N,M =map(int, input().split())
A =list(map(int, input().split()))
B = sorted(A, reverse = True)
if B[M] >= sum(B)/4/M:
print("Yes")
else:
print("No") | N,M =map(int, input().split())
A =list(map(int, input().split()))
B = sorted(A, reverse = True)
if B[M-1] >= sum(B)/4/M:
print("Yes")
else:
print("No") | [
"control_flow.branch.if.condition.change"
] | 488,077 | 488,075 | u489124637 | python |
p02718 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
n, m = map(int, input().split())
an = list(map(int, input().split()))
s = sum(an)
cnt = 0
for a in an:
if a >= s / (4 * m):
cnt += 1
if cnt > m:
print('Yes')
else:
print('No')
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
n, m = map(int, input().split())
an = list(map(int, input().split()))
s = sum(an)
cnt = 0
for a in an:
if a >= s / (4 * m):
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,089 | 488,090 | u031151469 | python |
p02718 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
n, m = map(int, input().split())
an = list(map(int, input().split()))
s = sum(an)
cnt = 0
for a in an:
if a > s / (4 * m):
cnt += 1
if cnt > m:
print('Yes')
else:
print('No')
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
n, m = map(int, input().split())
an = list(map(int, input().split()))
s = sum(an)
cnt = 0
for a in an:
if a >= s / (4 * m):
cnt += 1
if cnt >= m:
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,091 | 488,090 | u031151469 | python |
p02718 | N, M= list(map(int, input().split()))
A= list(map(int, input().split()))
A.sort(reverse = True)
B = A[0:M]
C = B[-1]
Sum = sum(A)
if C >Sum /(4*M):
print("Yes")
else:
print("No") | N, M= list(map(int, input().split()))
A= list(map(int, input().split()))
A.sort(reverse = True)
B = A[0:M]
C = B[-1]
Sum = sum(A)
if C >=Sum /(4*M):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,094 | 488,095 | u765401716 | python |
p02718 | n, m = map(int, input().split())
A = list(map(int,input().split()))
a_sum = sum(A)
ans = 0
for i in range(n):
if float(A[i]) > a_sum/(4*m):
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | n, m = map(int, input().split())
A = list(map(int,input().split()))
a_sum = sum(A)
ans = 0
for i in range(n):
if float(A[i]) >= a_sum/(4*m):
ans += 1
if ans >= m:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,100 | 488,101 | u737298927 | python |
p02718 | import sys
N,M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True)
all_A = sum(A)
rule = (1/(4*M))
ans = 0
for i in A:
if (i / all_A) > rule:
ans = ans + 1
else:
pass
if ans >= M:
print("Yes")
else:
print("No") | import sys
N,M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True)
all_A = sum(A)
rule = (1/(4*M))
ans = 0
for i in A:
if (i / all_A) >= rule:
ans = ans + 1
else:
pass
if ans >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,103 | 488,104 | u609814378 | python |
p02718 | import sys
N,M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True)
all_A = sum(A)
rule = (1/(4*M))
ans = 0
for i in sorted_A:
if (i / all_A) > rule:
ans = ans + 1
else:
pass
if ans >= M:
print("Yes")
else:
print("No") | import sys
N,M = map(int, input().split())
A = list(map(int, input().split()))
sorted_A = sorted(A, reverse=True)
all_A = sum(A)
rule = (1/(4*M))
ans = 0
for i in A:
if (i / all_A) >= rule:
ans = ans + 1
else:
pass
if ans >= M:
print("Yes")
else:
print("No") | [
"identifier.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,105 | 488,104 | u609814378 | python |
p02718 |
N, M = [int(t) for t in input().split(" ")]
votes = [int(t) for t in input().split(" ")]
total = sum(votes)
t = total/(4*M)
popular = [v for v in votes if v > t]
if len(popular) >= M:
print("Yes")
else:
print("No") |
N, M = [int(t) for t in input().split(" ")]
votes = [int(t) for t in input().split(" ")]
total = sum(votes)
t = total/(4*M)
popular = [v for v in votes if v >= t]
if len(popular) >= M:
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"assignment.value.change"
] | 488,106 | 488,107 | u831148638 | python |
p02718 | #!/usr/bin/env python3
import sys
YES = "Yes"
NO = "No"
N,M = list(map(int, input().split()))
A = list(map(int, input().split()))
least = sum(A) / (4 * M)
B = sorted(A,reverse=True)
cnt = 0
for i in range(N):
if B[i] > least:
cnt += 1
else:
break
if cnt >= M:
print(YES)
else:
print... | #!/usr/bin/env python3
import sys
YES = "Yes"
NO = "No"
N,M = list(map(int, input().split()))
A = list(map(int, input().split()))
least = sum(A) / (4 * M)
B = sorted(A,reverse=True)
cnt = 0
for i in range(N):
if B[i] >= least:
cnt += 1
else:
break
if cnt >= M:
print(YES)
else:
prin... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,108 | 488,109 | u505505186 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
su = sum(A)
A.sort(reverse=True)
cnt = 0
for i in A:
if (i >= int(su / 4 / M)):
cnt += 1
if (cnt >= M):
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
su = sum(A)
A.sort(reverse=True)
cnt = 0
for i in A:
if (i >= su / 4 / M):
cnt += 1
if (cnt >= M):
print('Yes')
else:
print('No')
| [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change"
] | 488,110 | 488,111 | u904943473 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
su = sum(A)
A.sort(reverse=True)
cnt = 0
for i in A:
if (i > int(su / 4 / M)):
cnt += 1
if (cnt >= M):
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
su = sum(A)
A.sort(reverse=True)
cnt = 0
for i in A:
if (i >= su / 4 / M):
cnt += 1
if (cnt >= M):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.remove"
] | 488,112 | 488,111 | u904943473 | python |
p02718 | N,M = map(int,input().split())
A = list(map(int,input().split()))
su = sum(A)
A.sort(reverse=True)
cnt = 0
for i in A:
if (i > int(su / 4 / 2)):
cnt += 1
if (cnt >= M):
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = list(map(int,input().split()))
su = sum(A)
A.sort(reverse=True)
cnt = 0
for i in A:
if (i >= su / 4 / M):
cnt += 1
if (cnt >= M):
print('Yes')
else:
print('No')
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.remove",
"identifier.replace.add",
"literal.replace.remove"
] | 488,113 | 488,111 | u904943473 | python |
p02718 | N,M=[int(x) for x in input().split()]
A=[int(x) for x in input().split()]
cnt=0
for i in range(N):
if A[i] >= 1/(4*M):
cnt+=1
if cnt>=M:
print("Yes")
else:
print("No") | N,M=[int(x) for x in input().split()]
A=[int(x) for x in 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") | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 488,116 | 488,117 | u330728443 | python |
p02718 | N,M=map(int, input().split())
Alist = list(map(int, input().split()))
Alist.sort(reverse=True)
sumnation = sum(Alist)
bordernum = sumnation / (4*M)
for i in Alist[:M]:
judlist = []
temp = True if i >= bordernum else False
judlist.append(temp)
judged = all(judlist)
if judged:
print('yes')
else :
... | N,M=map(int, input().split())
Alist = list(map(int, input().split()))
Alist.sort(reverse=True)
sumnation = sum(Alist)
bordernum = sumnation / (4*M)
for i in Alist[:M]:
judlist = []
temp = True if i >= bordernum else False
judlist.append(temp)
judged = all(judlist)
if judged:
print('Yes')
else :
... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 488,118 | 488,119 | u595905528 | python |
p02718 | N, M = map(int, input().split())
A = list(map(int, input().split()))
sortedA = sorted(A, reverse=True)
AA = sum(A)
de = AA/(4*M)
picA = sortedA[0:M]
if (picA[-1] <= de):
print("No")
else:
print("Yes") | N, M = map(int, input().split())
A = list(map(int, input().split()))
sortedA = sorted(A, reverse=True)
AA = sum(A)
de = AA/(4*M)
picA = sortedA[0:M]
if (picA[-1] < de):
print("No")
else:
print("Yes") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,120 | 488,121 | u966546644 | python |
p02718 |
import sys, io, os
input = sys.stdin.readline
inputt = lambda: range(int(input()))
inputn = lambda n = 1: range(n)
inputi = lambda: map(int, input().split())
inputl = lambda: list(inputi())
from math import *
from heapq import *
from bisect import *
from functools import reduce, lru_cache
from collections import Count... |
import sys, io, os
input = sys.stdin.readline
inputt = lambda: range(int(input()))
inputn = lambda n = 1: range(n)
inputi = lambda: map(int, input().split())
inputl = lambda: list(inputi())
from math import *
from heapq import *
from bisect import *
from functools import reduce, lru_cache
from collections import Count... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 488,124 | 488,125 | u951976685 | python |
p02718 |
import sys, io, os
input = sys.stdin.readline
inputt = lambda: range(int(input()))
inputn = lambda n = 1: range(n)
inputi = lambda: map(int, input().split())
inputl = lambda: list(inputi())
from math import *
from heapq import *
from bisect import *
from functools import reduce, lru_cache
from collections import Count... |
import sys, io, os
input = sys.stdin.readline
inputt = lambda: range(int(input()))
inputn = lambda n = 1: range(n)
inputi = lambda: map(int, input().split())
inputl = lambda: list(inputi())
from math import *
from heapq import *
from bisect import *
from functools import reduce, lru_cache
from collections import Count... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"expression.operator.compare.change"
] | 488,126 | 488,125 | u951976685 | python |
p02718 | NM = input().split();
N,M = int(NM[0]),int(NM[1]);
A = list(map(int, input().split()));
A.sort(reverse=True);
#先に総得票数を調べる
Sum = 0;
for i in range(N):
Sum = Sum + A[i];
#人気商品とは呼べないボーダー
fil = int(Sum / (4 * M));
#全探索
count=0;
for j in range(M):
if(A[j] >= fil):
count+=1;
if(count >= M):
print(... | NM = input().split();
N,M = int(NM[0]),int(NM[1]);
A = list(map(int, input().split()));
A.sort(reverse=True);
#先に総得票数を調べる
Sum = 0;
for i in range(N):
Sum = Sum + A[i];
#人気商品とは呼べないボーダー
fil = Sum / (4 * M);
#全探索
count=0;
for j in range(M):
if(A[j] >= fil):
count+=1;
if(count >= M):
print("Yes"... | [
"call.remove",
"call.arguments.change"
] | 488,129 | 488,130 | u694649864 | python |
p02718 | n,m = map(int,input().split())
a_list = list(map(int,input().split()))
count = 0
x = sum(a_list)/(4*m)
print(x)
for i in range(0,n):
if a_list[i] >= x :
count += 1
if count >= m :
print('Yes')
else :
print('No') | n,m = map(int,input().split())
a_list = list(map(int,input().split()))
count = 0
x = sum(a_list)/(4*m)
for i in range(0,n):
if a_list[i] >= x :
count += 1
if count >= m :
print('Yes')
else :
print('No')
| [
"call.remove"
] | 488,133 | 488,134 | u089644470 | python |
p02718 | species, num = [int(i) for i in input().split()]
votes = [int(i) for i in input().split()]
sum_vote = sum(votes)
min_rate = sum_vote / 4 / species
votes.sort(reverse=True)
ans = 'Yes' if votes[num - 1] >= min_rate else 'No'
print(ans) | species, num = [int(i) for i in input().split()]
votes = [int(i) for i in input().split()]
sum_vote = sum(votes)
min_rate = sum_vote / 4 / num
votes.sort(reverse=True)
ans = 'Yes' if votes[num - 1] >= min_rate else 'No'
print(ans) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 488,138 | 488,139 | u738257898 | python |
p02718 | N, M = map(int, input().split())
A_list = list(map(int, input().split()))
A_list.sort(reverse=True)
SUM = sum(A_list)
if A_list[M-1] >= (SUM//(4*M)) :
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A_list = list(map(int, input().split()))
A_list.sort(reverse=True)
SUM = sum(A_list)
if A_list[M-1] >= (SUM/(4*M)) :
print("Yes")
else:
print("No")
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,142 | 488,143 | u282860613 | python |
p02718 | N, M = map(int, input().split())
A_list = list(map(int, input().split()))
A_list.sort(reverse=True)
SUM = sum(A_list)
if A_list[M-1] > (SUM//(4*M)) :
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A_list = list(map(int, input().split()))
A_list.sort(reverse=True)
SUM = sum(A_list)
if A_list[M-1] >= (SUM/(4*M)) :
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 488,144 | 488,143 | u282860613 | python |
p02718 | N, M = map(int, input().split())
A_list = list(map(int, input().split()))
A_list.sort(reverse=True)
SUM = sum(A_list)
if A_list[M-1] > SUM/(4*M) :
print("Yes")
else:
print("No")
| N, M = map(int, input().split())
A_list = list(map(int, input().split()))
A_list.sort(reverse=True)
SUM = sum(A_list)
if A_list[M-1] >= (SUM/(4*M)) :
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,145 | 488,143 | u282860613 | python |
p02718 | n, m = map(int, input().split())
a = list(map(int, input().split()))
sum_a = sum(a)
# print(n)
# print(m)
# print(sum_a)
# print(sum_a // n)
count = 0
for aa in a:
# print(aa)
if aa >= sum_a // (4 * m):
count += 1
# print(count)
if count >= m:
print('Yes')
else:
print('No') | n, m = map(int, input().split())
a = list(map(int, input().split()))
sum_a = sum(a)
# print(n)
# print(m)
# print(sum_a)
# print(sum_a // n)
count = 0
for aa in a:
# print(aa)
if aa >= sum_a / (4 * m):
count += 1
# print(count)
if count >= m:
print('Yes')
else:
print('No') | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 488,148 | 488,149 | u414558682 | python |
p02718 | N, M = map(int, input().split())
lists = list(map(int, input().split()))
# print(lists)
sigma_A = sum(lists)
val = 1/(4 * M) * sigma_A
count = 0
for i in range(M):
if max(lists) > val:
count += 1
lists.remove(max(lists))
# print(lists)
if count == M:
print("Yes")
else:
print("No") | N, M = map(int, input().split())
lists = list(map(int, input().split()))
# print(lists)
sigma_A = sum(lists)
val = 1/(4 * M) * sigma_A
count = 0
for i in range(M):
if max(lists) >= val:
count += 1
lists.remove(max(lists))
# print(lists)
if count == M:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,151 | 488,152 | u604874738 | python |
p02718 | import sys
input = sys.stdin.readline
#intの場合
N ,M = map(int,input().split())
intlist = list(map(int, input().split()))
newlist = sorted(intlist, reverse=True)[:M]
if newlist[M-1] > ( sum(intlist) / (4 * M) ):
print ("Yes")
else:
print ("No")
| import sys
input = sys.stdin.readline
#intの場合
N ,M = map(int,input().split())
intlist = list(map(int, input().split()))
newlist = sorted(intlist, reverse=True)[:M]
if newlist[M-1] >= ( sum(intlist) / (4 * M)):
print ("Yes")
else:
print ("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,160 | 488,161 | u055668007 | python |
p02718 | #coding:utf-8
import sys
n, m = map(int, input().split())
a = list(map(int, input().split()))
vote = sum(a)
rank = sorted(a, reverse=True)
border = vote // (4*m)
#print(border, rank)
count = 0
for i in range(0, n):
if rank[i] >= border:
count += 1
if count == m:
print('Yes')
sys.exit()... | #coding:utf-8
import sys
n, m = map(int, input().split())
a = list(map(int, input().split()))
vote = sum(a)
rank = sorted(a, reverse=True)
border = vote / (4*m)
#print(border, rank)
count = 0
for i in range(0, n):
if rank[i] >= border:
count += 1
if count == m:
print('Yes')
sys.exit()
... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 488,171 | 488,172 | u167908302 | python |
p02718 | import sys
n, m = map(int, input().split())
a = list(map(int, input().split()))
vote = sum(a)
rank = sorted(a, reverse=True)
border = vote // (4*m)
#print(border, rank)
count = 0
for i in range(0, n):
if rank[i] > border:
count += 1
if count == m:
print('Yes')
sys.exit()
print('No')
| #coding:utf-8
import sys
n, m = map(int, input().split())
a = list(map(int, input().split()))
vote = sum(a)
rank = sorted(a, reverse=True)
border = vote / (4*m)
#print(border, rank)
count = 0
for i in range(0, n):
if rank[i] >= border:
count += 1
if count == m:
print('Yes')
sys.exit()
... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,173 | 488,172 | u167908302 | python |
p02718 | n,m =map(int,(input().split()))
a=list(map(int,input().split()))
count = 0
total = 0
for i in range(n):
total=total+a[i]
th=total/(4*m)
for i in range(n):
if(a[i]>(th)):
count=count+1
#print(count)
if(count>=m):
print("Yes")
else:
print("No")
| n,m =map(int,(input().split()))
a=list(map(int,input().split()))
count = 0
total = 0
for i in range(n):
total=total+a[i]
th=total/(4*m)
#print(total,th)
for i in range(n):
if(a[i]>=(th)):
count=count+1
#print(count)
if(count>=m):
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,176 | 488,175 | u728483880 | python |
p02718 | n, m = list(map(int, input().split()))
A = list(map(int, input().split()))
lmt = sum(A) /(4*m)
A.sort(reverse=True)
if A[m] >= lmt:
print('Yes')
else:
print('No') | n, m = list(map(int, input().split()))
A = list(map(int, input().split()))
lmt = sum(A) /(4*m)
A.sort(reverse=True)
if A[m-1] >= lmt:
print('Yes')
else:
print('No') | [
"control_flow.branch.if.condition.change"
] | 488,192 | 488,193 | u488884575 | python |
p02718 | def solve(n, m, arr):
arr.sort()
for i in range(m):
if arr[-1 - i] < sum(arr) * (1 / 4 * m):
return False
return True
if __name__ == "__main__":
n, m = map(int, input().split(' '))
arr = [int(s) for s in list(input().split())]
if solve(n, m, arr):
print('Yes')
el... | def solve(n, m, arr):
arr.sort()
for i in range(m):
if arr[-1 - i] < sum(arr) * (1 / (4 * m)):
return False
return True
if __name__ == "__main__":
n, m = map(int, input().split(' '))
arr = [int(s) for s in list(input().split())]
if solve(n, m, arr):
print('Yes')
... | [
"control_flow.branch.if.condition.change"
] | 488,196 | 488,197 | u834832056 | 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]"):
A.sort(reverse=True)
a=sum(A)
count=0
for i in range(M):
if A[i]>a/(4*M):
count+=1
if count<M:
print(NO)
else:
print(YES)
return... | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
A.sort(reverse=True)
a=sum(A)
count=0
for i in range(M):
if A[i]>=a/(4*M):
count+=1
if count<M:
print(NO)
else:
print(YES)
retur... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,202 | 488,203 | u702018889 | python |
p02718 | #!/usr/bin/env python3
import sys
#sys.setrecursionlimit(150000)
#def my_index_multi(l, x):
# return [i for i, _x in enumerate(l) if _x == x]
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
A=sorted(A,reverse=True)
sa=sum(A)
if N==1:
print(YES)
e... | #!/usr/bin/env python3
import sys
#sys.setrecursionlimit(150000)
#def my_index_multi(l, x):
# return [i for i, _x in enumerate(l) if _x == x]
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
A=sorted(A,reverse=True)
sa=sum(A)
if N==1:
print(YES)
e... | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 488,210 | 488,211 | u090649502 | python |
p02718 | #!/usr/bin/env python3
import sys
#sys.setrecursionlimit(150000)
#def my_index_multi(l, x):
# return [i for i, _x in enumerate(l) if _x == x]
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
A=sorted(A,reverse=True)
sa=sum(A)
if N==1:
print(YES)
e... | #!/usr/bin/env python3
import sys
#sys.setrecursionlimit(150000)
#def my_index_multi(l, x):
# return [i for i, _x in enumerate(l) if _x == x]
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
A=sorted(A,reverse=True)
sa=sum(A)
if N==1:
print(YES)
e... | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 488,212 | 488,211 | u090649502 | python |
p02718 | #!/usr/bin/env python3
import sys
#sys.setrecursionlimit(150000)
#def my_index_multi(l, x):
# return [i for i, _x in enumerate(l) if _x == x]
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
A=sorted(A,reverse=True)
sa=sum(A)
if N==1:
print(YES)
e... | #!/usr/bin/env python3
import sys
#sys.setrecursionlimit(150000)
#def my_index_multi(l, x):
# return [i for i, _x in enumerate(l) if _x == x]
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, M: int, A: "List[int]"):
A=sorted(A,reverse=True)
sa=sum(A)
if N==1:
print(YES)
e... | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"expression.operator.compare.change"
] | 488,213 | 488,211 | u090649502 | python |
p02718 | N,M = map(int,input().split())
A = [int(i) for i in input().split()]
A.sort()
B = sum(A)
if A[M-1] >= B/(4*M):
print('Yes')
else:
print('No') | N,M = map(int,input().split())
A = [int(i) for i in input().split()]
A.sort(reverse=True)
B = sum(A)
if A[M-1] >= B/(4*M):
print('Yes')
else:
print('No') | [
"call.arguments.keyword_argument.add"
] | 488,225 | 488,226 | u614628638 | python |
p02718 | import numpy as np
n, m = map(int, input().split(" "))
arr = list(map(int, input().split(" ")))
arr = np.array(arr)
s = np.sum(arr)
choosable = len(np.where(4*m*arr >= s))
if m > choosable:
print('No')
else:
print('Yes')
| import numpy as np
n, m = map(int, input().split(" "))
arr = list(map(int, input().split(" ")))
arr = np.array(arr)
s = np.sum(arr)
choosable = len(np.where(4*m*arr >= s)[0])
if m > choosable:
print('No')
else:
print('Yes')
| [] | 488,233 | 488,234 | u612895604 | python |
p02718 | nm = input().split(" ")
N, M = int(nm[0]), int(nm[1])
# print(N, M)
sorted_data = sorted(list(map(int, input().split(" "))), reverse=True)
# print(sorted_data[M - 1], sum(sorted_data))
if sorted_data[M - 1] * 4 * M > sum(sorted_data):
print("Yes")
else:
print("No") | nm = input().split(" ")
N, M = int(nm[0]), int(nm[1])
# print(N, M)
sorted_data = sorted(list(map(int, input().split(" "))), reverse=True)
# print(sorted_data[M - 1] * 4 * M , sum(sorted_data))
if sorted_data[M - 1] * 4 * M >= sum(sorted_data):
print("Yes")
else:
print("No") | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,239 | 488,240 | u468313559 | python |
p02718 | n, m = map(int, input().split())
a = input().split()
a = [int(i) for i in a]
may = max(a)
dif = (1 / (4*m)) * may
cont = 0
for i in a:
cont += (1 if i >= dif else 0)
print ('Yes' if cont >= m else 'No')
| n, m = map(int, input().split())
a = input().split()
a = [int(i) for i in a]
s = sum(a)
dif = (1 / (4*m)) * s
cont = 0
for i in a:
cont += (1 if i >= dif else 0)
print ('Yes' if cont >= m else 'No')
| [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"call.function.change",
"expression.operation.binary.change"
] | 488,255 | 488,256 | u234130745 | python |
p02718 | # coding: utf-8
n, m = map(int, input().split())
a_list = list(map(int, input().split()))
border = sum(a_list) / (4 * m)
a_choiced_list = [a for a in a_list if a > border]
if len(a_choiced_list) < m:
print('No')
else:
print('Yes')
| # coding: utf-8
n, m = map(int, input().split())
a_list = list(map(int, input().split()))
border = sum(a_list) / (4 * m)
a_choiced_list = [a for a in a_list if a >= border]
if len(a_choiced_list) < m:
print('No')
else:
print('Yes')
| [
"expression.operator.compare.change",
"assignment.value.change"
] | 488,257 | 488,258 | u923415412 | python |
p02718 | # coding: utf-8
n, m = map(int, input().split())
a_list = list(map(int, input().split()))
border = sum(a_list) / (4 * m)
a_choiced_list = [a for a in a_list if a > border]
if len(a_choiced_list) < m:
print('NO')
else:
print('Yes')
| # coding: utf-8
n, m = map(int, input().split())
a_list = list(map(int, input().split()))
border = sum(a_list) / (4 * m)
a_choiced_list = [a for a in a_list if a >= border]
if len(a_choiced_list) < m:
print('No')
else:
print('Yes')
| [
"expression.operator.compare.change",
"assignment.value.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 488,259 | 488,258 | u923415412 | python |
p02718 | n,m = map(int,input().split())
a = list(map(int,input().split()))
sum_a = sum(a)
jouken = sum_a / (m * 4)
#print(jouken)
c = 0
for i in range(n):
if a[i] > jouken:
c += 1
if c >= m:
print("Yes")
else:
print("No")
| n,m = map(int,input().split())
a = list(map(int,input().split()))
sum_a = sum(a)
jouken = sum_a / (m * 4)
#print(jouken)
c = 0
for i in range(n):
if a[i] >= jouken:
c += 1
if c >= m:
print("Yes")
else:
print("No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 488,260 | 488,261 | u626217906 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.