Datasets:

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 = input().split() b = input().split() sum = 0 for x in b: sum += int(x) yy=0 for y in b: if int(y) < sum/(4*int(n)): yy+=1 if yy <= int(m): print("No") else: print("Yes")
n, m = input().split() b = input().split() sum = 0 for x in b: sum += int(x) yy=0 for y in b: if int(y) >= sum/(4*int(m)): yy+=1 if yy < int(m): print("No") else: print("Yes")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.change" ]
485,189
485,183
u934566927
python
p02718
N,M = map(int,input().split()) arr = list(map(int,input().split())) res = 0 for i in range(N): if arr[i] < (1/(4*M)*sum(arr)): res = res else: res += 1 print(res) if res >= M: print('Yes') else: print('No')
N,M = map(int,input().split()) arr = list(map(int,input().split())) res = 0 for i in range(N): if arr[i] < (1/(4*M)*sum(arr)): res = res else: res += 1 if res >= M: print('Yes') else: print('No')
[ "call.remove" ]
485,190
485,191
u275704180
python
p02718
N,M = map(int,input().split()) arr = list(map(int,input().split())) res = 0 for i in range(N): if arr[i] < (1/(4*M)*sum(arr)): res = res else: res += 1 print(res) if res == M: print('Yes') else: print('No')
N,M = map(int,input().split()) arr = list(map(int,input().split())) res = 0 for i in range(N): if arr[i] < (1/(4*M)*sum(arr)): res = res else: res += 1 if res >= M: print('Yes') else: print('No')
[ "call.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,192
485,191
u275704180
python
p02718
N,M = map(int,input().split()) arr = list(map(int,input().split())) res = 0 for i in range(N): if i < (1/(4*M)*sum(arr)): res = res else: res += 1 if res >= M: print('Yes') else: print('No')
N,M = map(int,input().split()) arr = list(map(int,input().split())) res = 0 for i in range(N): if arr[i] < (1/(4*M)*sum(arr)): res = res else: res += 1 if res >= M: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
485,193
485,191
u275704180
python
p02718
n,m=map(int,input().split()) li=list(map(int,input().split())) li.sort() li.reverse() N=sum(li) M=m*4 x=int(li[m-1]) if x < N/M: print('NO') else: print('Yes')
n,m=map(int,input().split()) li=list(map(int,input().split())) li.sort() li.reverse() N=sum(li) M=m*4 x=int(li[m-1]) if x < N/M: print('No') else: print('Yes')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
485,198
485,197
u122618450
python
p02718
n, m = map(int, input().split()) votes = list(map(int, input().split())) k = 0 for i in votes: if i > 1/(4*m) * sum(votes): k += 1 if k >= m: print("Yes") else: print("No")
n, m = map(int, input().split()) votes = list(map(int, input().split())) k = 0 for i in votes: if i >= 1/(4*m) * sum(votes): k += 1 if k >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,199
485,200
u614929965
python
p02718
N, M = map(int, input().split()) lst = [int(x) for x in input().split()] total = sum(lst) ret = 0 for x in lst: if x > total / (4 * M): ret += 1 if ret >= M: print("Yes") else: print("No")
N, M = map(int, input().split()) lst = [int(x) for x in input().split()] total = sum(lst) ret = 0 for x in lst: if x >= total / (4 * M): ret += 1 if ret >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,203
485,204
u987170100
python
p02718
n,m = map(int, input().split()) a=list(map(int, input().split())) c=round(sum(a)/(4*m)) b=0 for i in a: if i>=c: b+=1 if b>=m: print('Yes') else: print('No')
n,m = map(int, input().split()) a=list(map(int, input().split())) c=sum(a)/(4*m) b=0 for i in a: if i>=c: b+=1 if b>=m: print('Yes') else: print('No')
[ "call.remove", "call.arguments.change" ]
485,218
485,219
u220612891
python
p02718
n,m = map(int, input().split()) a=list(map(int, input().split())) c=round(sum(a)/(4*m)) b=0 for i in a: if i>c: b+=1 if b>=m: print('Yes') else: print('No')
n,m = map(int, input().split()) a=list(map(int, input().split())) c=sum(a)/(4*m) b=0 for i in a: if i>=c: b+=1 if b>=m: print('Yes') else: print('No')
[ "call.remove", "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,220
485,219
u220612891
python
p02718
n,m = map(int, input().split()) a=list(map(int, input().split())) c=sum(a)//(4*m) b=0 for i in a: if i>=c: b+=1 if b>=m: print('Yes') else: print('No')
n,m = map(int, input().split()) a=list(map(int, input().split())) c=sum(a)/(4*m) b=0 for i in a: if i>=c: b+=1 if b>=m: print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
485,221
485,219
u220612891
python
p02718
n,m = map(int, input().split()) a=list(map(int, input().split())) c=sum(a)//(4*m) b=0 for i in a: if i>c: b+=1 if b>=m: print('Yes') else: print('No')
n,m = map(int, input().split()) a=list(map(int, input().split())) c=sum(a)/(4*m) b=0 for i in a: if i>=c: b+=1 if b>=m: print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,222
485,219
u220612891
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) a = sorted(a, reverse=True) all = sum(a) cnt = 0 for num in a: if num >= all / (4*m): cnt += 1 if cnt >= m: print("Yes") break print(cnt) else: print("No")
n,m = map(int,input().split()) a = list(map(int,input().split())) a = sorted(a, reverse=True) all = sum(a) cnt = 0 for num in a: if num >= all / (4*m): cnt += 1 if cnt >= m: print("Yes") break else: print("No")
[ "call.remove" ]
485,226
485,227
u079482478
python
p02718
import math # お気楽ロジックが思い浮かばないので真っ当に解く N, M = (int(x) for x in input().split(' ')) A = [int(x) for x in input().split(' ')] # 基準となる閾値を求める limen = math.floor(sum(A) / ( M * 4)) # 閾値越えの値を全探索 ans = 0 for row in A: if row >= limen: ans += 1 # 回答 print( 'Yes' if ans >= M else 'No' )
import math # お気楽ロジックが思い浮かばないので真っ当に解く N, M = (int(x) for x in input().split(' ')) A = [int(x) for x in input().split(' ')] # 基準となる閾値を求める limen = math.ceil(sum(A) / ( M * 4)) # 閾値越えの値を全探索 ans = 0 for row in A: if row >= limen: ans += 1 # 回答 print( 'Yes' if ans >= M else 'No' )
[ "misc.opposites", "assignment.value.change", "identifier.change" ]
485,239
485,240
u424467986
python
p02718
N, M = map(int, input().split()) A = list(map(int,input().split())) B = 0 for i in range(N): if (A[i] > sum(A) / (4*M)): B +=1 if B >= M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int,input().split())) B = 0 for i in range(N): if (A[i] >= sum(A) / (4*M)): B +=1 if B >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,267
485,268
u873736356
python
p02718
N, M = map(int, input().split()) A = list(map(int,input().split())) print(A) B = 0 for i in range(N): if(A[i] >= sum(A)/(4*M)): B += 1 if(B >= M): print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int,input().split())) B = 0 for i in range(N): if(A[i] >= sum(A)/(4*M)): B += 1 if(B >= M): print('Yes') else: print('No')
[ "call.remove" ]
485,271
485,272
u331997680
python
p02718
N, M = map(int, input().split()) A = list(map(int,input().split())) print(A) B = 0 for i in range(N): if(A[i] >= sum(A)/(4*M)): B += 1 if(B >= M): print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int,input().split())) B = 0 for i in range(N): if(A[i] >= sum(A)/(4*M)): B += 1 if(B >= M): print('Yes') else: print('No')
[ "call.remove" ]
485,273
485,272
u331997680
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) cnt = 0 for x in A: if x > sum(A) / (4 * M): cnt += 1 print("Yes" if cnt > M else "No")
N, M = map(int, input().split()) A = list(map(int, input().split())) cnt = 0 for x in A: if x >= sum(A) / (4 * M): cnt += 1 print("Yes" if cnt >= M else "No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.arguments.change", "io.output.change" ]
485,276
485,275
u451206510
python
p02718
check=True a,b=map(int,input().split()) l=list(map(int,input().split())) l.sort() l.reverse() point=sum(l)//(4*b) for i in range(b): if l[i]<point: check=False break if check: print("Yes") else: print("No")
check=True a,b=map(int,input().split()) l=list(map(int,input().split())) l.sort() l.reverse() point=sum(l)/(4*b) for i in range(b): if l[i]<point: check=False break if check: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
485,277
485,278
u730107446
python
p02718
N, M = map(int, input().split()) A = map(int, input().split()) m = sum(A)/(4*M) n = sum(1 for i in A if i >= m) print(["No", "Yes"][n >= M])
N, M = map(int, input().split()) A = list(map(int, input().split())) m = sum(A)/(4*M) n = sum([1 for i in A if i >= m]) print(["No", "Yes"][n >= M])
[ "call.add", "call.arguments.change" ]
485,296
485,297
u631342090
python
p02718
n, m = input().split() m = int(m) votes = input().split() votes = [int(i) for i in votes] votes.sort(reverse=True) total = sum(votes) valid = True for i in range(m): if votes[i] <= total/(4*m): valid = False break if valid: print('Yes') else: print('No')
n, m = input().split() m = int(m) votes = input().split() votes = [int(i) for i in votes] votes.sort(reverse=True) total = sum(votes) valid = True for i in range(m): if votes[i] < total/(4*m): valid = False break if valid: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,298
485,299
u347363297
python
p02718
n, m = input().split() m = int(m) votes = input().split() votes = [int(i) for i in votes] votes.sort(reverse=True) total = sum(votes) valid = True for i in range(m): if votes[i] <= total/(4*m): valid = False break if valid: print('yes') else: print('no')
n, m = input().split() m = int(m) votes = input().split() votes = [int(i) for i in votes] votes.sort(reverse=True) total = sum(votes) valid = True for i in range(m): if votes[i] < total/(4*m): valid = False break if valid: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
485,300
485,299
u347363297
python
p02718
x,y= list(map(int, input().split())) i = list(map(int, input().split())) i.sort(reverse=True) k=sum(i) flag=0 for j in range(x): if i[j]*4*(j+1)>=k: flag+=1 if flag<y: print("No") else: print("Yes")
x,y= list(map(int, input().split())) i = list(map(int, input().split())) i.sort(reverse=True) k=sum(i) flag=0 for j in range(x): if i[j]*4*y>=k: flag+=1 if flag<y: print("No") else: print("Yes")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
485,301
485,302
u185405877
python
p02718
n, m = [int(i) for i in input().split()] data = sorted([int(i) for i in input().split()], reverse = True) if data[m - 1] >= sum(data) / 4 * m: print('Yes') else: print('No')
n, m = [int(i) for i in input().split()] data = sorted([int(i) for i in input().split()], reverse = True) if data[m - 1] >= sum((data)) / (4 * m): print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
485,303
485,304
u563992898
python
p02718
n, m = map(int, input().split()) item = input().split() item = [int(x) for x in item] item.sort(reverse=True) s = sum(item) res = 0 for i in range(n): if item[i] > s / (4*m): res += 1 if res >= m: print('Yes') else: print('No')
n, m = map(int, input().split()) item = input().split() item = [int(x) for x in item] item.sort(reverse=True) s = sum(item) res = 0 for i in range(n): if item[i] >= s / (4*m): res += 1 if res >= m: print('Yes') break else: print('No') break
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.break.add" ]
485,307
485,306
u736189571
python
p02718
n, m = map(int, input().split()) a = list(map(float, input().split())) A = sum(a) / (4 * M) N = sum(x >= A for x in a) print('Yes' if N >= m else 'No')
n, m = map(int, input().split()) a = list(map(float, input().split())) A = sum(a) / (4 * m) N = sum(x >= A for x in a) print('Yes' if N >= m else 'No')
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
485,316
485,317
u970407071
python
p02718
n, M = map(int, input().split()) a = list(map(float, input().split())) A = sum(a) / (4 * M) N = sum(x >= A for x in a) print('Yes' if N >= m else 'No')
n, m = map(int, input().split()) a = list(map(float, input().split())) A = sum(a) / (4 * m) N = sum(x >= A for x in a) print('Yes' if N >= m else 'No')
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "expression.operation.binary.change" ]
485,318
485,317
u970407071
python
p02718
n, M = map(int, input().split()) a = list(map(float, input().split())) A = sum(a) / (4 * M) N = sum(x >= A for x in a) print('Yes' if n >= M else 'No')
n, m = map(int, input().split()) a = list(map(float, input().split())) A = sum(a) / (4 * m) N = sum(x >= A for x in a) print('Yes' if N >= m else 'No')
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "expression.operation.binary.change", "call.arguments.change", "io.output.change" ]
485,319
485,317
u970407071
python
p02718
n, m = map(int, input().split()) a = sorted(list(map(int, input().split())), reverse = True) if a[m-1] >= n/(4*m): print("Yes") else: print("No")
n, m = map(int, input().split()) a = sorted(list(map(int, input().split())), reverse = True) if a[m-1] >= sum(a)/(4*m): print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "call.arguments.add" ]
485,322
485,323
u340494803
python
p02718
n, m = [int(x) for x in input().split()] l = [int(x) for x in input().split()] k = [] for i in l: if(i > sum(l)/(4*m)): k.append(i) if(len(k) < m): print("No") else: print("Yes")
n, m = [int(x) for x in input().split()] l = [int(x) for x in input().split()] k = [] for i in l: if(i >= sum(l)/(4*m)): k.append(i) if(len(k) < m): print("No") else: print("Yes")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,326
485,325
u423520901
python
p02718
n,m=map(int, input().split()) a=list(map(float, input().split())) A=sum(a)/(4*m) N=sum(x>=A for x in a) if N>=m: print("yes") else: print("No")
n,m=map(int, input().split()) a=list(map(float, input().split())) A=sum(a)/(4*m) N=sum(x>=A for x in a) if N>=m: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
485,335
485,336
u915066452
python
p02718
n,m=map(int, input().split()) a=list(map(int, input().split())) g=0 count=0 for i in a: g+=i b = float(1/(4*m)) for i in a: t = float(i/g) if t>b: count+=1 if count==m: print("Yes") exit() if count < m: print("No")
n,m=map(int, input().split()) a=list(map(int, input().split())) g=0 count=0 for i in a: g+=i b = float(1/(4*m)) for i in a: t = float(i/g) if t>=b: count+=1 if count==m: print("Yes") exit() if count < m: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,344
485,345
u048915776
python
p02718
n,m=map(int, input().split()) a=list(map(int, input().split())) g=0 count=0 for i in a: g+=i b = float(1/(4*m)) for i in a: t = float(i/g) if t>b: count+=1 if count==m: print("yes") exit() if count < m: print("no")
n,m=map(int, input().split()) a=list(map(int, input().split())) g=0 count=0 for i in a: g+=i b = float(1/(4*m)) for i in a: t = float(i/g) if t>=b: count+=1 if count==m: print("Yes") exit() if count < m: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
485,346
485,345
u048915776
python
p02718
s=input() nn=s.split() n=int(nn[0]) m=int(nn[1]) s=input() aa=s.split() a=[] tot=0 for i in range(0,len(aa)): a.append(int(aa[i])) tot+=a[i] num=0 for i in a: if i>tot/(4*m) : num+=1 if num>=m : print('Yes') else: print('No')
s=input() nn=s.split() n=int(nn[0]) m=int(nn[1]) s=input() aa=s.split() a=[] tot=0 for i in range(0,len(aa)): a.append(int(aa[i])) tot+=a[i] num=0 for i in a: if i>=tot/(4*m) : num+=1 if num>=m : print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,347
485,348
u738073877
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) vote = [] all = 0 for j in range(N): all += A[j] for i in range(N): if A[i] >= all // (4 * M): vote.append(A[i]) if len(vote) >= M: print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) vote = [] all = 0 for j in range(N): all += A[j] for i in range(N): if A[i] >= all / (4 * M): vote.append(A[i]) if len(vote) >= M: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
485,361
485,362
u807435555
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) vote = [] for j in range(N): all += A[j] for i in range(N): if A[i] >= all // (4 * M): vote.append(A[i]) if len(vote) >= M: print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) vote = [] all = 0 for j in range(N): all += A[j] for i in range(N): if A[i] >= all / (4 * M): vote.append(A[i]) if len(vote) >= M: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
485,363
485,362
u807435555
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) vote = [] all = 0 for j in range(N): all += A[j] for i in range(N): if A[i] > all // (4 * M): vote.append(A[i]) if len(vote) >= M: print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) vote = [] all = 0 for j in range(N): all += A[j] for i in range(N): if A[i] >= all / (4 * M): vote.append(A[i]) if len(vote) >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
485,364
485,362
u807435555
python
p02718
def solve(n, m, a): return "Yes" if sorted(a)[-m] >= sum(a) // (4*m) else "No" n, m = map(int, input().split()) a = list(map(int, input().split())) print(solve(n, m, a))
def solve(n, m, a): return "No" if sorted(a)[-m] < sum(a) / (4*m) else "Yes" n, m = map(int, input().split()) a = list(map(int, input().split())) print(solve(n, m, a))
[ "literal.string.change", "function.return_value.change", "expression.operator.compare.change", "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
485,371
485,372
u879309973
python
p02718
from math import floor n, m = map(int, input().split()) a = list(map(int, input().split())) c = floor(sum(a) / (4 * m)) d = 0 for e in a: if e >= c: d += 1 if d == m: print('Yes') exit(0) print('No')
from math import ceil n, m = map(int, input().split()) a = list(map(int, input().split())) c = ceil(sum(a) / (4 * m)) d = 0 for e in a: if e >= c: d += 1 if d == m: print('Yes') exit(0) print('No')
[ "misc.opposites", "identifier.change", "assignment.value.change", "call.function.change" ]
485,388
485,389
u428895738
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) c = int(sum(a) / (4 * m)) d = 0 for e in a: if e >= c: d += 1 if d == m: print('Yes') exit(0) print('No')
from math import ceil n, m = map(int, input().split()) a = list(map(int, input().split())) c = ceil(sum(a) / (4 * m)) d = 0 for e in a: if e >= c: d += 1 if d == m: print('Yes') exit(0) print('No')
[ "assignment.value.change", "identifier.change", "call.function.change" ]
485,390
485,389
u428895738
python
p02718
N, M = map(int,input().split()) A = list(map(int,input().split())) #print(M) A.sort() #print(A) limit = sum(A)/(4*M) #print(limit) count = 0 for i in range(N): if A[i] > limit: count +=1 #print(count) #print(N-n-1) if count >= M: print("Yes") else: print("No")
N, M = map(int,input().split()) A = list(map(int,input().split())) #print(M) A.sort() #print(A) limit = sum(A)/(4*M) #print(limit) count = 0 for i in range(N): if A[i] >= limit: count +=1 #print(count) #print(N-n-1) if count >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,391
485,392
u849151695
python
p02718
N, M = map(int,input().split()) A = list(map(int,input().split())) #print(M) A.sort() #print(A) limit = sum(A)/(4*M) #print(limit) count = 0 for i in range(N): if A[i] > limit: count +=1 #print(count) #print(N-n-1) if count >= M: print("Yes") else: print("No")
N, M = map(int,input().split()) A = list(map(int,input().split())) #print(M) A.sort() #print(A) limit = sum(A)/(4*M) #print(limit) count = 0 for i in range(N): if A[i] >= limit: count +=1 #print(count) #print(N-n-1) if count >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,393
485,392
u849151695
python
p02718
N, M = map(int,input().split()) A = list(map(int,input().split())) #print(M) A.sort() #print(A) limit = sum(A)/(4*M) #print(limit) count = 0 for i in range(N): if A[i] > limit: count +=1 #print(count) #print(N-n-1) if count > M: print("Yes") else: print("No")
N, M = map(int,input().split()) A = list(map(int,input().split())) #print(M) A.sort() #print(A) limit = sum(A)/(4*M) #print(limit) count = 0 for i in range(N): if A[i] >= limit: count +=1 #print(count) #print(N-n-1) if count >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,394
485,392
u849151695
python
p02718
N, M = map(int,input().split()) A = list(map(int,input().split())) #print(M) A.sort() #print(A) limit = sum(A)/(4*M) #print(limit) count = 0 for i in range(N): if A[i] > limit: count +=1 print(count) #print(N-n-1) if count > M: print("Yes") else: print("No")
N, M = map(int,input().split()) A = list(map(int,input().split())) #print(M) A.sort() #print(A) limit = sum(A)/(4*M) #print(limit) count = 0 for i in range(N): if A[i] >= limit: count +=1 #print(count) #print(N-n-1) if count >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove" ]
485,395
485,392
u849151695
python
p02718
l = list(map(int, input().split())) a = list(map(int, input().split())) fla=True n=sum(a) a.sort(reverse=True) if a[l[1]-1]>=n/(4*l[0]): print('Yes') else: print('No')
l = list(map(int, input().split())) a = list(map(int, input().split())) fla=True n=sum(a) a.sort(reverse=True) if a[l[1]-1]>=n/(4*l[1]): print('Yes') else: print('No')
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
485,402
485,403
u696646471
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) count=0 x=sum(a) for i in range(n): if(a[i]>x/(4*m)): count+=1 if(count>=m): print("Yes") else: print("No")
n,m=map(int,input().split()) a=list(map(int,input().split())) count=0 x=sum(a) for i in range(n): if(a[i]>=x/(4*m)): count+=1 if(count>=m): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,416
485,417
u755313517
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) x=sum(a)//(4*m) c=0 for i in a: if i>x: c+=1 if c>=m: print('Yes') else: print('No')
n,m=map(int,input().split()) a=list(map(int,input().split())) x=sum(a)/(4*m) c=0 for i in a: if i<x: continue else: c+=1 if c>=m: print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.continue.add" ]
485,434
485,435
u113971909
python
p02718
N,M = map(int, input().split()) A = list(map(int,input().split())) tot = sum(A) cnt = 0 A = sorted(A,reverse = True) for i in range(N): if A[i]/tot > 1/(4*M): cnt += 1 else: break if cnt >= M: print('Yes') else: print('No')
N,M = map(int, input().split()) A = list(map(int,input().split())) tot = sum(A) cnt = 0 A = sorted(A,reverse = True) for i in range(N): if A[i]/tot >= 1/(4*M): cnt += 1 else: break if cnt >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,440
485,441
u607074939
python
p02718
import numpy as np N,M = map(int, input().split()) An = np.array(input().split(), dtype=int) vote_sum = np.sum(An) judge = np.where(An > vote_sum /(4 * M), 1, 0) judge_sum = np.sum(judge) if(judge_sum >= M): print("Yes") else: print("No")
import numpy as np N,M = map(int, input().split()) An = np.array(input().split(), dtype=int) vote_sum = np.sum(An) judge = np.where(An >= vote_sum /(4 * M), 1, 0) judge_sum = np.sum(judge) if(judge_sum >= M): print("Yes") else: print("No")
[ "expression.operator.compare.change", "assignment.value.change", "call.arguments.change" ]
485,447
485,448
u200316926
python
p02718
N,M=map(int,input().split()) List=list(map(int,input().split())) Lists=list() for i in List: if i/sum(List)>1/4*M: Lists.append(i) continue print("Yes" if len(Lists)>=M else "No")
N,M=map(int,input().split()) List=list(map(int,input().split())) Lists=list() for i in List: if i/sum(List)>=1/(4*M): Lists.append(i) print("Yes" if len(Lists)>=M else "No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,454
485,455
u705202612
python
p02718
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print ("Yes") if a[m-1] > sum(a)/(4*m) else print ("No")
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=True) print ("Yes") if a[m-1] >= sum(a)/(4*m) else print ("No")
[ "expression.operator.compare.change" ]
485,463
485,464
u422272120
python
p02718
n, m = [int(i) for i in input().split()] a = sorted([int(i) for i in input().split()], reverse=True) ans = 0 t = sum(a) // (4*m) for i in a: if i > t: ans += 1 else: break if ans >= m: print("Yes") else: print("No")
n, m = [int(i) for i in input().split()] a = sorted([int(i) for i in input().split()], reverse=True) ans = 0 t = sum(a) / (4 * m) for i in a: if i >= t: ans += 1 else: break if ans >= m: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,476
485,475
u105302073
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) sm=sum(A) re=0 for a in A: if a>(sm/(4*M)): re+=1 #print(re) if re==M: print('Yes') else: print('No')
N,M=map(int,input().split()) A=list(map(int,input().split())) sm=sum(A) re=0 for a in A: if a>=(sm/(4*M)): re+=1 #print(re) if re>=M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,492
485,493
u880277518
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) sm=sum(A) re=0 for a in A: if a>(sm/(4*M)): re+=1 #print(re) if re>=M: print('Yes') else: print('No')
N,M=map(int,input().split()) A=list(map(int,input().split())) sm=sum(A) re=0 for a in A: if a>=(sm/(4*M)): re+=1 #print(re) if re>=M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,494
485,493
u880277518
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) sm=sum(A) re=0 for a in A: if a>(sm/(4*M)): re+=1 print(re) if re>=M: print('Yes') else: print('No')
N,M=map(int,input().split()) A=list(map(int,input().split())) sm=sum(A) re=0 for a in A: if a>=(sm/(4*M)): re+=1 #print(re) if re>=M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove" ]
485,495
485,493
u880277518
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) line = sum(A) // (4 * M) ans = [i for i in A if i > line] print("Yes") if len(ans) >= M else print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) line = sum(A) / (4 * M) ans = [i for i in A if i >= line] print("Yes") if len(ans) >= M else print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change" ]
485,501
485,502
u450898610
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) line = sum(A) // (4 * M) ans = [i for i in A if i >= line] print("Yes") if len(ans) >= M else print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) line = sum(A) / (4 * M) ans = [i for i in A if i >= line] print("Yes") if len(ans) >= M else print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
485,504
485,502
u450898610
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) S = sum(A) cnt = 0 for Ai in A: if Ai>=S//(4*M): cnt += 1 if cnt>=M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) S = sum(A) cnt = 0 for Ai in A: if Ai>=S/(4*M): cnt += 1 if cnt>=M: print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
485,512
485,513
u047796752
python
p02718
#python3 def main(): n, m = map(int, input().split()) a = [int(i) for i in input().split()] s = sum(a) c = 0 for i in range(n): if a[i] < (s+1)//(4*m): c += 1 ans = n - c print('Yes') if ans >= m else print('No') main()
#python3 def main(): n, m = map(int, input().split()) a = [int(i) for i in input().split()] s = sum(a) c = 0 for i in range(n): if a[i] < (s+4*m-1)//(4*m): c += 1 ans = n - c print('Yes') if ans >= m else print('No') main()
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
485,521
485,522
u775681539
python
p02718
#python3 def main(): n, m = map(int, input().split()) a = [int(i) for i in input().split()] s = sum(a) c = 0 for i in range(n): if a[i] < (s+1)/(4*m): c += 1 ans = n - c print('Yes') if ans >= m else print('No') main()
#python3 def main(): n, m = map(int, input().split()) a = [int(i) for i in input().split()] s = sum(a) c = 0 for i in range(n): if a[i] < (s+4*m-1)//(4*m): c += 1 ans = n - c print('Yes') if ans >= m else print('No') main()
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operator.arithmetic.change" ]
485,523
485,522
u775681539
python
p02718
#python3 def main(): n, m = map(int, input().split()) a = [int(i) for i in input().split()] s = sum(a) x = s//(4*m) c = 0 for i in range(n): if x >= a[i]: c += 1 k = n-c if k >= m: print('Yes') else: print('No') main()
#python3 def main(): n, m = map(int, input().split()) a = [int(i) for i in input().split()] s = sum(a) x = s/(4*m) c = 0 for i in range(n): if x > a[i]: c += 1 k = n-c if k >= m: print('Yes') else: print('No') main()
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,524
485,525
u775681539
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) sumA=sum(a) cnt=0 for i in a: if i>=sum/(4*m): cnt=cnt+1 else: cnt=cnt if cnt>=m: print('Yes') else: print('No')
n,m=map(int,input().split()) a=list(map(int,input().split())) sumA=sum(a) cnt=0 for i in a: if i>=sumA/(4*m): cnt=cnt+1 else: cnt=cnt if cnt>=m: print('Yes') else: print('No')
[ "identifier.change", "control_flow.branch.if.condition.change" ]
485,541
485,542
u224119985
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) sumA=sum(a) cnt=0 for i in a: if i>=sum/(4*m): cnt=cnt+1 if cnt>=m: print('Yes') else: print('No')
n,m=map(int,input().split()) a=list(map(int,input().split())) sumA=sum(a) cnt=0 for i in a: if i>=sumA/(4*m): cnt=cnt+1 else: cnt=cnt if cnt>=m: print('Yes') else: print('No')
[ "identifier.change", "control_flow.branch.if.condition.change" ]
485,543
485,542
u224119985
python
p02718
n, m = map(int,input().split()) A = [int(i) for i in input().split()] cnt = 0 flag = False A = sorted(A)[::-1] for a in A: if a >= (1/(4*m)): cnt += 1 if cnt == m: flag = True break if flag: print("Yes") else: print("No")
n, m = map(int,input().split()) A = [int(i) for i in input().split()] cnt = 0 flag = False A = sorted(A)[::-1] for a in A: if a >= sum(A)*(1/(4*m)): cnt += 1 if cnt == m: flag = True break if flag: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
485,546
485,547
u957872856
python
p02718
m = input() b = input() x = int(0) a = list() n, m = m.split(' ') n = int(n) m = int(m) b = b.split(' ') for i in range(len(b)): a.append(int(b[i])) list.sort(a, reverse = True) for i in range(len(a)): x += int(a[i]) for i in range(m): print(a) if int(a[i]) < x / (4 * m): print('No') ...
m = input() b = input() x = int(0) a = list() n, m = m.split(' ') n = int(n) m = int(m) b = b.split(' ') for i in range(len(b)): a.append(int(b[i])) list.sort(a, reverse = True) for i in range(len(a)): x += int(a[i]) for i in range(m): if int(a[i]) < x / (4 * m): print('No') exit() pri...
[ "call.remove" ]
485,558
485,559
u353478669
python
p02718
N,M=map(int, input().split()) A=list(map(int, input().split())) s=sum(A) cnt=0 for i in A: if i>s*1/(4*M): cnt+=1 if cnt>=M: print('Yes') else: print('No')
N,M=map(int, input().split()) A=list(map(int, input().split())) s=sum(A) cnt=0 for i in A: if i>=s*1/(4*M): cnt+=1 if cnt>=M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,572
485,573
u748311048
python
p02718
N,M=map(int, input().split()) A=list(map(int, input().split())) s=sum(A) cnt=0 for i in A: if i>s/(4*M): cnt+=1 if cnt>=M: print('Yes') else: print('No')
N,M=map(int, input().split()) A=list(map(int, input().split())) s=sum(A) cnt=0 for i in A: if i>=s*1/(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" ]
485,574
485,573
u748311048
python
p02718
import math N,M = map(int,input().split()) List = list(map(int,input().split())) a = 0 b = 0 for i in range(0,N): a = a + List[i] for j in range(0,N): if List[j] > math.floor(a/(4*M)): b = b+1 if b < M: print('No') else: print('Yes')
import math N,M = map(int,input().split()) List = list(map(int,input().split())) a = 0 b = 0 for i in range(0,N): a = a + List[i] for j in range(0,N): if List[j] >= math.ceil(a/(4*M)): b = b+1 if b < M: print('No') else: print('Yes')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "misc.opposites", "identifier.change" ]
485,578
485,579
u233239721
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) total = sum(a) a.sort() if a[-m] >= total/4*m: print('Yes') else: print('No')
n, m = map(int, input().split()) a = list(map(int, input().split())) total = sum(a) a.sort() if a[-m] >= total/(4*m): print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
485,586
485,587
u408375121
python
p02718
N,M = map(int,input().split()) A = [int(i) for i in input().split()] B = [j for j in A if j>(sum(A)/(4*M))] print('Yes' if len(B) >= M else 'No')
N,M = map(int,input().split()) A = [int(i) for i in input().split()] B = [j for j in A if j>=(sum(A)/(4*M))] print('Yes' if len(B) >= M else 'No')
[ "expression.operator.compare.change", "assignment.value.change" ]
485,588
485,589
u822044226
python
p02718
N,M = map(int, input().split(" ")) A = list(map(int, input().split(" "))) B = [] #総投票数を求める sum_vote = sum(A) #print(sum_vote) #投票数が1/4Mを下回る物を削除していく つまり 新しいリストに代入 for i in range(len(A)): if A[i] > sum_vote * 1/(4 * M): B.append(A[i]) else: pass #最終判断 if len(B) > M: print("Yes") else: p...
N,M = map(int, input().split(" ")) A = list(map(int, input().split(" "))) B = [] #総投票数を求める sum_vote = sum(A) #print(sum_vote) #投票数が1/4Mを下回る物を削除していく つまり 新しいリストに代入 for i in range(len(A)): if A[i] >= sum_vote * 1/(4 * M): B.append(A[i]) else: pass #最終判断 if len(B) >= M: print("Yes") else: ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,601
485,600
u651793628
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) A_sum = sum(A) cnt = 0 for i, a in enumerate(A): if a*(4*M) < A_sum: cnt += 1 print("Yes" if cnt >= M else "No")
N, M = map(int, input().split()) A = list(map(int, input().split())) A_sum = sum(A) cnt = 0 for i, a in enumerate(A): if a*(4*M) >= A_sum: cnt += 1 print("Yes" if cnt >= M else "No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,606
485,607
u316341119
python
p02718
# -*- coding: utf-8 -*- #標準入力の取得 N,M = map(int,input().split()) A = list(map(int,input().split())) cutoff = sum(A)/(4*M) count_pop = sum(i > cutoff for i in A) if count_pop<M : print("No") else: print("Yes")
# -*- coding: utf-8 -*- #標準入力の取得 N,M = map(int,input().split()) A = list(map(int,input().split())) cutoff = sum(A)/(4*M) count_pop = sum(i >= cutoff for i in A) if count_pop<M : print("No") else: print("Yes")
[ "expression.operator.compare.change", "assignment.value.change" ]
485,611
485,612
u783273444
python
p02718
# -*- coding: utf-8 -*- #標準入力の取得 N,M = map(int,input().split()) A = list(map(int,input().split())) cutoff = sum(A)/4 count_pop = sum(i >= cutoff for i in A) if count_pop<M : print("No") else: print("Yes")
# -*- coding: utf-8 -*- #標準入力の取得 N,M = map(int,input().split()) A = list(map(int,input().split())) cutoff = sum(A)/(4*M) count_pop = sum(i >= cutoff for i in A) if count_pop<M : print("No") else: print("Yes")
[]
485,613
485,612
u783273444
python
p02718
# -*- coding: utf-8 -*- #標準入力の取得 N,M = map(int,input().split()) A = list(map(int,input().split())) cutoff = sum(A)/4 count_pop = sum(i > cutoff for i in A) if count_pop<M : print("No") else: print("Yes")
# -*- coding: utf-8 -*- #標準入力の取得 N,M = map(int,input().split()) A = list(map(int,input().split())) cutoff = sum(A)/(4*M) count_pop = sum(i >= cutoff for i in A) if count_pop<M : print("No") else: print("Yes")
[ "expression.operator.compare.change", "assignment.value.change" ]
485,614
485,612
u783273444
python
p02718
N,M = [int(i) for i in input().split()] A = [int(i) for i in input().split()] threshold = float(sum(A) / (4 * M)) cnt=0 for i in A: if i > threshold: cnt += 1 if cnt >= M: print('Yes') else: print('No')
N,M = [int(i) for i in input().split()] A = [int(i) for i in input().split()] threshold = float(sum(A) / (4 * M)) cnt=0 for i in A: if i >= threshold: cnt += 1 if cnt >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,642
485,643
u968649733
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[M - 1] < sum(A)/(4*M): print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[M - 1] >= sum(A)/(4*M): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,651
485,652
u500297289
python
p02718
import sys n,m=[int(x) for x in input().split()] a = [int(x) for x in input().split()] total = sum(a) cnt = n for i in range(0, n): if a[i] < int(total / (4 * m)): cnt -= 1 if cnt < m: print("No") sys.exit() print("Yes")
import sys,math n,m=[int(x) for x in input().split()] a = [int(x) for x in input().split()] total = sum(a) cnt = n for i in range(0, n): if a[i] < math.ceil(total / (4 * m)): cnt -= 1 if cnt < m: print("No") sys.exit() print("Yes")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
485,663
485,664
u095094246
python
p02718
import sys import os ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)] iss = lambda: sys.stdin.buffer.readline().decode().rstrip() isn = lambda n: [sys.stdin.buffer.readl...
import sys import os ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)] iss = lambda: sys.stdin.buffer.readline().decode().rstrip() isn = lambda n: [sys.stdin.buffer.readl...
[ "call.remove", "assignment.value.change", "call.arguments.change" ]
485,665
485,666
u634079249
python
p02718
import sys import os ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)] iss = lambda: sys.stdin.buffer.readline().decode().rstrip() isn = lambda n: [sys.stdin.buffer.readl...
import sys import os ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)] iss = lambda: sys.stdin.buffer.readline().decode().rstrip() isn = lambda n: [sys.stdin.buffer.readl...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,667
485,666
u634079249
python
p02718
import sys import os ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)] iss = lambda: sys.stdin.buffer.readline().decode().rstrip() isn = lambda n: [sys.stdin.buffer.readl...
import sys import os ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)] iss = lambda: sys.stdin.buffer.readline().decode().rstrip() isn = lambda n: [sys.stdin.buffer.readl...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,668
485,666
u634079249
python
p02718
import sys import os ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)] iss = lambda: sys.stdin.buffer.readline().decode().rstrip() isn = lambda n: [sys.stdin.buffer.readl...
import sys import os ii = lambda: int(sys.stdin.buffer.readline().rstrip()) il = lambda: list(map(int, sys.stdin.buffer.readline().split())) iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)] iss = lambda: sys.stdin.buffer.readline().decode().rstrip() isn = lambda n: [sys.stdin.buffer.readl...
[ "expression.operation.binary.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,669
485,666
u634079249
python
p02718
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=1) asum = sum(a) if a[m-1] >= asum//(4*m): print("Yes") else: print("No")
n,m = map(int,input().split()) a = sorted(list(map(int,input().split())),reverse=1) asum = sum(a) if a[m-1] >= asum/(4*m): print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
485,676
485,677
u738898077
python
p02718
n,m=map(int,input().split()) a=[int(i) for i in input().split()] count=0 A=sum(a)/(4*m) for i in a: if i>A: count+=1 if count>=m: print("Yes") else: print("No")
n,m=map(int,input().split()) a=[int(i) for i in input().split()] count=0 A=sum(a)/(4*m) for i in a: if i>=A: count+=1 if count>=m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,703
485,704
u740047492
python
p02718
n,m=map(int,input().split()) a=[int(i) for i in input().split()] count=0 A=sum(a)//(4*m) for i in a: if i>=A: count+=1 if count>=m: print("Yes") else: print("No")
n,m=map(int,input().split()) a=[int(i) for i in input().split()] count=0 A=sum(a)/(4*m) for i in a: if i>=A: count+=1 if count>=m: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
485,705
485,704
u740047492
python
p02718
n,m=map(int,input().split()) a=[int(i) for i in input().split()] count=0 A=sum(a)//(4*m) for i in a: if a[i]>=A: count+=1 if count>=m: print("Yes") else: print("No")
n,m=map(int,input().split()) a=[int(i) for i in input().split()] count=0 A=sum(a)/(4*m) for i in a: if i>=A: count+=1 if count>=m: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change", "control_flow.loop.for.condition.change", "control_flow.branch.if.condition.change" ]
485,706
485,704
u740047492
python
p02718
import sys def main(): n, m = map(int, input().split()) l = list(map(int, input().split())) d = sum(l) / (4 * m) cnt = 0; for li in l: if li > d: cnt = cnt + 1 if cnt > m : print ("Yes") else : print ("No") return if __name__ == '__main__': main()
import sys def main(): n, m = map(int, input().split()) l = list(map(int, input().split())) d = sum(l) / (4 * m) cnt = 0; for li in l: if li >= d: cnt = cnt + 1 if cnt >= m : print ("Yes") else : print ("No") return if __name__ == '__main__': main()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,713
485,714
u846516787
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = 0 for i in range(len(a)): sum += a[i] min_hyou = sum/(4*m) count = 0 for i in range(len(a)): if min_hyou < a[i]: count+=1 if count>=m: print("Yes") else: print("No")
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = 0 for i in range(len(a)): sum += a[i] min_hyou = sum/(4*m) count = 0 for i in range(len(a)): if min_hyou <= a[i]: count+=1 if count>=m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,715
485,716
u404789658
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = 0 for i in range(len(a)): sum += a[i] min_hyou = 1/(4*m) * sum count = 0 for i in range(len(a)): if min_hyou < a[i]: count+=1 if count==m: print("Yes") else: print("No")
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = 0 for i in range(len(a)): sum += a[i] min_hyou = sum/(4*m) count = 0 for i in range(len(a)): if min_hyou <= a[i]: count+=1 if count>=m: print("Yes") else: print("No")
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "expression.operation.binary.change", "expression.operation.binary.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,717
485,716
u404789658
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = 0 for i in range(len(a)): sum += a[i] min_hyou = 1/(4*m) * sum count = 0 for i in range(len(a)): if min_hyou < a[i]: count+=1 if count>=m: print("Yes") else: print("No")
n,m = map(int,input().split()) a = list(map(int,input().split())) sum = 0 for i in range(len(a)): sum += a[i] min_hyou = sum/(4*m) count = 0 for i in range(len(a)): if min_hyou <= a[i]: count+=1 if count>=m: print("Yes") else: print("No")
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "expression.operation.binary.change", "expression.operation.binary.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,718
485,716
u404789658
python
p02718
n,m=map(int,input().split()) a=list(map(int,input().split())) sum=0 for i in range(n): sum=sum+a[i] x= round((sum)/(4*m)) #print(x) l=[] for j in range(n): if(a[j] >= x): l.append(a[j]) #print(l) if(len(l)>=m): print("Yes") else: print("No")
n,m=map(int,input().split()) a=list(map(int,input().split())) sum=0 for i in range(n): sum=sum+a[i] x= (sum)/(4*m) #print(x) l=[] for j in range(n): if(a[j] >= x): l.append(a[j]) #print(l) if(len(l)>=m): print("Yes") else: print("No")
[ "call.remove", "call.arguments.change" ]
485,744
485,745
u334242570
python
p02718
#B NM = input().split(' ') N = int(NM[0]) ; M = int(NM[1]) Ai = input().split(' ') all_A = 0 for k in Ai: all_A += int(k) line = all_A / (4*M) count = 0 for k in Ai: if int(k) <= line: count += 1 if count >= M: print('Yes') else: print('No')
#B NM = input().split(' ') N = int(NM[0]) ; M = int(NM[1]) Ai = input().split(' ') all_A = 0 for k in Ai: all_A += int(k) line = all_A / (4*M) count = 0 for k in Ai: if int(k) >= line: count += 1 if count >= M: print('Yes') else: print('No')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,755
485,756
u795928154
python
p02718
n, m = map(int,input().split()) product_list = sorted(list(map(int,input().split())),reverse=True) if product_list[m-1] > sum(product_list)/(4*m): print("Yes") else: print("No")
n, m = map(int,input().split()) product_list = sorted(list(map(int,input().split())),reverse=True) if product_list[m-1] >= sum(product_list)/(4*m): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,759
485,760
u919734978
python
p02718
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] > sum(A)/4/m: print("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= sum(A)/4/m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,764
485,765
u551437236
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("Yes") else: print("No")
n, m = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if A[m-1] >= sum(A)/4/m: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
485,766
485,765
u551437236
python
p02718
n,m = map(int,input().split()) ai = list(map(int,input().split())) s = sum(ai) count = 0 for i in ai: if i > s/(4*m): count += 1 if count >= m: print('Yes') else: print('No')
n,m = map(int,input().split()) ai = list(map(int,input().split())) s = sum(ai) count = 0 for i in ai: if i >= s/4/m: count += 1 if count >= m: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
485,769
485,770
u493318999
python
p02718
n,m = map(int,input().split()) ai = list(map(int,input().split())) s = sum(ai) count = 0 for i in ai: if i > s/4/m: count += 1 if count >= m: print('Yes') else: print('No')
n,m = map(int,input().split()) ai = list(map(int,input().split())) s = sum(ai) count = 0 for i in ai: if i >= s/4/m: count += 1 if count >= m: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,771
485,770
u493318999
python
p02718
n,m = map(int,input().split()) ai = list(map(int,input().split())) s = sum(ai) count = 0 for i in ai: if i > s/(4*m): count += 1 if count >= m: print('Yes') else: print('No')
n,m = map(int,input().split()) ai = list(map(int,input().split())) s = sum(ai) count = 0 for i in ai: if i >= s/(4*m): count += 1 if count >= m: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,769
485,772
u493318999
python
p02718
n,m = map(int,input().split()) ai = list(map(int,input().split())) s = sum(ai) count = 0 for i in ai: if i > s/4/m: count += 1 if count >= m: print('Yes') else: print('No')
n,m = map(int,input().split()) ai = list(map(int,input().split())) s = sum(ai) count = 0 for i in ai: if i >= s/(4*m): count += 1 if count >= m: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
485,771
485,772
u493318999
python
p02718
a,b=map(int,input().split()) c=list(map(int,input().split())) required=sum(c)/(4*b) count=0 for d in sorted(c,reverse=True): if d>=required: count=+1 else: break print("YNeos"[count<b::2])
a,b=map(int,input().split()) c=list(map(int,input().split())) required=sum(c)/(4*b) count=0 for d in sorted(c,reverse=True): if d>=required: count+=1 else: break print("YNeos"[count<b::2])
[ "assignment.value.change", "expression.operation.unary.arithmetic.remove" ]
485,777
485,778
u927860986
python
p02718
N,M = [int(i) for i in input().split(" ")] A = [int(i) for i in input().split(" ")] cnt = 0 sum1 = sum(A) p = 1/(4*M) for i in range(len(A)): A[i] = A[i]/sum1 for i in A: if i >= p: cnt = cnt + 1 if cnt > M: print('Yes') else: print('No')
N,M = [int(i) for i in input().split(" ")] A = [int(i) for i in input().split(" ")] cnt = 0 sum1 = sum(A) p = 1/(4*M) for i in range(len(A)): A[i] = A[i]/sum1 for i in A: if i >= p: cnt = cnt + 1 if cnt >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
485,834
485,835
u789205676
python