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 = map(int, input().split()) a = list(map(int, input().split())) b = sum(a) / (4 * m) c = 0 for i in a: if i > b: c += 1 if c >= m: print("Yes") else: print("No")
n, m = map(int, input().split()) a = list(map(int, input().split())) b = sum(a) / (4 * m) c = 0 for i in a: if i >= b: c += 1 if c >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,456
489,457
u339503988
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) to = sum(A) cnt = 0 for a in A: if a>=(to * (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())) to = sum(A) cnt = 0 for a in A: if a>=(to * (1/(4*M))): cnt += 1 if cnt >= M: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
489,462
489,463
u896726004
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) s = sum(a) c = 0 for i in a: if i > (1/(4*m))*s: c += 1 if c >= m: print ("Yes") else: print ("No")
n, m = map(int, input().split()) a = list(map(int, input().split())) s = sum(a) c = 0 for i in a: if i >= (1/(4*m))*s: c += 1 if c >= m: print ("Yes") else: print ("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,470
489,471
u124498235
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) m = 0 S = sum(A) for i in range(N): if A[i] > S / (4 * M): m += 1 if m >= M: print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) m = 0 S = sum(A) for i in range(N): if A[i] >= S / (4 * M): m += 1 if m >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,478
489,479
u553308611
python
p02718
#!usr/bin/env python3 import sys import math import string import collections import fractions import random from operator import itemgetter import itertools from collections import deque import copy import heapq import bisect MOD = 10 ** 9 + 7 INF = float('inf') input = lambda: sys.stdin.readline().strip() sys.setre...
#!usr/bin/env python3 import sys import math import string import collections import fractions import random from operator import itemgetter import itertools from collections import deque import copy import heapq import bisect MOD = 10 ** 9 + 7 INF = float('inf') input = lambda: sys.stdin.readline().strip() sys.setre...
[]
489,482
489,483
u385244248
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) total = sum(A) if sorted(A, reverse=True)[M-1] > total/(4*M): print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) total = sum(A) if sorted(A, reverse=True)[M-1] >= total/(4*M): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,486
489,487
u873616440
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) S=sum(A) c=0 for i in A: if S<i*4*M: c+=1 print("Yes" if c>=M else "No")
N,M=map(int,input().split()) A=list(map(int,input().split())) S=sum(A) c=0 for i in A: if S<=i*4*M: c+=1 print("Yes" if c>=M else "No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,490
489,491
u187516587
python
p02718
a,b=[int(i) for i in input().split()] arr=[int(i) for i in input().split()] tot=sum(arr) p=(tot/(4*b)) arr.sort() if arr[-b]>p: print('Yes') else: print('No')
a,b=[int(i) for i in input().split()] arr=[int(i) for i in input().split()] tot=sum(arr) p=(tot/(4*b)) arr.sort() if arr[-b]>=p: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,513
489,514
u051843295
python
p02718
N, M = map(int, input().split()) A=list(map(int,input().split())) count=0 count2=0 flag=False for i in range(N): count+=A[i] for i in range(N): if A[i]>count*1/(4*M) and flag==False: count2+=1 if count2>=M: flag=True break if flag: print("Yes") else: print("No")
N, M = map(int, input().split()) A=list(map(int,input().split())) count=0 count2=0 flag=False for i in range(N): count+=A[i] for i in range(N): if A[i]>=count*1/(4*M) and flag==False: count2+=1 if count2>=M: flag=True break if flag: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,519
489,520
u462976050
python
p02718
N,M = [int(i) for i in input().split()] A = [int(i) for i in input().split()] sumA = sum(A) pop_cnt = 0 for a in A: if a > (sumA/(4*M)): pop_cnt += 1 if pop_cnt >= M: print("Yes") else: print("No")
N,M = [int(i) for i in input().split()] A = [int(i) for i in input().split()] sumA = sum(A) pop_cnt = 0 for a in A: if a >= (sumA/(4*M)): pop_cnt += 1 if pop_cnt >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,523
489,524
u093384595
python
p02718
#!/usr/bin/env python3 import sys DEBUG = False def read(t): return t(sys.stdin.readline().rstrip()) def read_list(t, sep = " "): return [t(s) for s in sys.stdin.readline().rstrip().split(sep)] def dprint(*args, **kwargs): if DEBUG: print(*args, **kwargs) return def main(): n, m = r...
#!/usr/bin/env python3 import sys DEBUG = False def read(t): return t(sys.stdin.readline().rstrip()) def read_list(t, sep = " "): return [t(s) for s in sys.stdin.readline().rstrip().split(sep)] def dprint(*args, **kwargs): if DEBUG: print(*args, **kwargs) return def main(): n, m = r...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,527
489,528
u641851773
python
p02718
import sys sys.setrecursionlimit(10**6) from math import floor,ceil,sqrt,factorial,log from heapq import heappop, heappush, heappushpop from collections import Counter,defaultdict,deque from itertools import accumulate,permutations,combinations,product,combinations_with_replacement from bisect import bisect_left,bisect...
import sys sys.setrecursionlimit(10**6) from math import floor,ceil,sqrt,factorial,log from heapq import heappop, heappush, heappushpop from collections import Counter,defaultdict,deque from itertools import accumulate,permutations,combinations,product,combinations_with_replacement from bisect import bisect_left,bisect...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
489,541
489,542
u404290207
python
p02718
N,M=list(map(int,input().split(' '))) A=list(map(int,input().split(' '))) k=0 for i in range(0,N): if A[i]/sum(A)>1/(4*M): k=k+1 if k>M-1: print('Yes') else: print('No')
N,M=list(map(int,input().split(' '))) A=list(map(int,input().split(' '))) k=0 for i in range(0,N): if A[i]/sum(A)>=1/(4*M): k=k+1 if k>M-1: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,549
489,550
u311176548
python
p02718
n, m = map(int, input().split()) A = list(map(int, input().split())) sa = sum(A) print('Yes' if len([a for a in A if a>=sa/(4*m)])>m else 'No')
n, m = map(int, input().split()) A = list(map(int, input().split())) sa = sum(A) print('Yes' if len([a for a in A if a>=sa/(4*m)])>=m else 'No')
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
489,560
489,561
u747703115
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) s = sum(A) ans = 0 for i in A: if 4 * M * i < s: ans += 1 print("Yes") if ans >= M else print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) s = sum(A) ans = 0 for i in A: if 4 * M * i >= s: ans += 1 print("Yes") if ans >= M else print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,562
489,563
u779728630
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) s = sum(a) // (4 * m) cnt = 0 for ai in a: if ai >= s: 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) / (4 * m) cnt = 0 for ai in a: if ai >= s: cnt += 1 if cnt >= m: print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,588
489,589
u711539583
python
p02718
import sys import re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_upp...
import sys import re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_upp...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
489,603
489,604
u287775083
python
p02718
n, m = map(int, input().split()) a_list = list(map(int, input().split())) sum_a = 0 for a in a_list: sum_a += a count_a = 0 for a in a_list: if a >= sum_a// 4 // m: count_a += 1 if count_a >= m: print("Yes") else: print("No")
n, m = map(int, input().split()) a_list = list(map(int, input().split())) sum_a = 0 for a in a_list: sum_a += a count_a = 0 for a in a_list: if a >= sum_a / (4 * m): count_a += 1 if count_a >= m: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
489,607
489,608
u363992934
python
p02718
N,M = map(int,input().split()) A = sorted(map(int,input().split()),reverse = True) goukei = sum(A) judge = goukei/4/M if A[M-1]>judge: print('Yes') else: print('No')
N,M = map(int,input().split()) A = sorted(map(int,input().split()),reverse = True) goukei = sum(A) judge = goukei/4/M if A[M-1]>=judge: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,615
489,616
u004312392
python
p02718
n, m = (int(i) for i in input().split()) A = [int(i) for i in input().split()] _sum = sum(A) th = _sum / (4*m) cnt = 0 for a in A: if a >= th: 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()] _sum = sum(A) th = _sum / (4*m) cnt = 0 for a in A: if a >= th: cnt += 1 if cnt >= m: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,627
489,628
u058592821
python
p02718
N,M=list(map(int,input().split())) A=list(map(int,input().split())) limit=sum(A)/(4*M) A.sort() c=0 for a in A: if a > limit: c+=1 if c==M: break if c==M: print("Yes") else: print("No")
N,M=list(map(int,input().split())) A=list(map(int,input().split())) limit=sum(A)/(4*M) A.sort() c=0 for a in A: if a >= limit: c+=1 if c==M: break if c==M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,633
489,634
u948233576
python
p02718
n, m = [int(n) for n in input().split()] a = [int(n) for n in input().split()] p = [ai for ai in a if ai > sum(a)/(4 * m)] if len(p) >= m: print("Yes") else: print("No")
n, m = [int(n) for n in input().split()] a = [int(n) for n in input().split()] p = [ai for ai in a if ai >= sum(a)/(4 * m)] if len(p) >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "assignment.value.change" ]
489,641
489,642
u244516102
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) c = 0 s = sum(a) for i in range(n): if a[i] >= s//(4*m): c += 1 if c >= m: print("Yes") else: print("No")
n,m = map(int,input().split()) a = list(map(int,input().split())) c = 0 s = sum(a) for i in range(n): if a[i] >= s/(4*m): c += 1 if c >= m: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
489,645
489,646
u918935103
python
p02718
# Code for B - Popular Vote # Use input() to fetch data from STDIN from math import floor [n, m] = map(int, input().split()) a = list(map(int, input().split())) total = sum(a) if len(list(filter(lambda x: x >= floor(total / (4 * m)), a))) >= m: print("Yes") else: print("No")
# Code for B - Popular Vote # Use input() to fetch data from STDIN [n, m] = map(int, input().split()) a = list(map(int, input().split())) total = sum(a) if len(list(filter(lambda x: x >= (total / (4 * m)), a))) >= m: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
489,660
489,661
u638629468
python
p02718
if __name__ == '__main__': n, m = tuple([int(i) for i in input().split()]) a = [int(i) for i in input().split()] total = float(sum(a)) selected = [i >= (total // (4 * m)) for i in a] result = len([r for r in selected if r]) print("Yes" if result >= m else "No")
if __name__ == '__main__': n, m = tuple([int(i) for i in input().split()]) a = [int(i) for i in input().split()] total = float(sum(a)) selected = [float(i) >= (total / (4.0 * m)) for i in a] result = len([r for r in selected if r]) print("Yes" if result >= m else "No")
[ "call.add", "call.arguments.change", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,668
489,669
u959628874
python
p02718
N,M = map(int,input().split()) A = list(map(int,input().split())) c=0 for i in range(N): if A[i] > sum(A)//(4*M): c+=1 if c>=M: print("Yes") else: print("No")
N,M = map(int,input().split()) A = list(map(int,input().split())) c=0 for i in range(N): if A[i] >= sum(A)/(4*M): c+=1 if c>=M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operator.arithmetic.change" ]
489,684
489,685
u861471387
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) A.sort() s=sum(A) a=0 for i in A: if not i<s//(4*M): a+=1 print('Yes' if a>=M else 'No')
N,M=map(int,input().split()) A=list(map(int,input().split())) s=sum(A) a=0 for i in A: if not i<s/(4*M): a+=1 print('Yes' if a>=M else 'No')
[ "call.remove", "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
489,692
489,693
u521602455
python
p02718
N, M = map(int,input().split()) a = list(map(int,input().split())) a.sorted(reverse=True) K = 0 for i in range(N): K += a[i] if(a[M-1]>=K/(4*M)): print("Yes") else: print("No")
N, M = map(int,input().split()) a = list(map(int,input().split())) a.sort(reverse=True) K = 0 for i in range(N): K += a[i] if(a[M-1]>=K/(4*M)): print("Yes") else: print("No")
[ "identifier.change" ]
489,703
489,704
u655048024
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) suma = sum(a) tmp = 0 for i in range(n): if a[i] > suma/(4*m): tmp += 1 if m <= tmp: print("Yes") else: print("No")
n,m = map(int,input().split()) a = list(map(int,input().split())) suma = sum(a) tmp = 0 for i in range(n): if a[i] < suma/(4*m): tmp += 1 if m <= (n-tmp): print("Yes") else: print("No")
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,707
489,708
u432853936
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) if a[m] * 4 * m >= sum(a): 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] * 4 * m >= sum(a): print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
489,719
489,720
u365364616
python
p02718
def main(): #from sys import stdin, setrecursionlimit #setrecursionlimit(10**9) #r = input() #n = int(input()) #a, b = map(int, input().split()) #s, y = input().split() #a = input().split() #a = list(map(int, input().split())) #a = [list(input().split()) for i in range(n)] #a = [...
def main(): #from sys import stdin, setrecursionlimit #setrecursionlimit(10**9) #r = input() #n = int(input()) #a, b = map(int, input().split()) #s, y = input().split() #a = input().split() #a = list(map(int, input().split())) #a = [list(input().split()) for i in range(n)] #a = [...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,721
489,722
u414458988
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) miman = sum(A)/(4*M) for i in range(M): if not(A[i] > miman): print('No') exit(0) print('Yes')
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) miman = sum(A)/(4*M) for i in range(M): if not(A[i] >= miman): print('No') exit(0) print('Yes')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,723
489,724
u189487046
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) su=sum(A) th=su//(4*M) ans=0 for i in A: if not(i <th): ans+=1 if ans>=M: print("Yes") else: print("No")
N,M=map(int,input().split()) A=list(map(int,input().split())) su=sum(A) th=su/(4*M) ans=0 for i in A: if not(i <th): ans+=1 if ans>=M: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,727
489,728
u825378567
python
p02718
# n = int(input()) n, m = map(int, input().split()) a = list(map(int, input().split())) border = sum(a) // (4*m) cnt = 0 for _a in a: if _a >= border: cnt += 1 if cnt >= m: print("Yes") else: print("No")
# n = int(input()) n, m = map(int, input().split()) a = list(map(int, input().split())) border = sum(a) / (4*m) cnt = 0 for _a in a: if _a >= border: cnt += 1 if cnt >= m: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,733
489,734
u353895424
python
p02718
N,M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) total = sum(A) cnt = 0 for a in A: if a * 4 * M > total: cnt += 1 print("Yes" if cnt >= M else "No")
N,M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) total = sum(A) cnt = 0 for a in A: if a * 4 * M >= total: cnt += 1 print("Yes" if cnt >= M else "No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,735
489,736
u037430802
python
p02718
n, m = map(int, input().split()) As = list(map(int, input().split())) As = sorted(As, reverse=True) num = sum(As) ans = 0 for a in As: if num / (4*m) <= a: ans += 1 if ans > m: print('Yes') else: print('No')
n, m = map(int, input().split()) As = list(map(int, input().split())) As = sorted(As, reverse=True) num = sum(As) ans = 0 for a in As: if num / (4*m) <= a: ans += 1 if ans >= m: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,737
489,738
u844646164
python
p02718
N,M = map(int,input().split()) A = list(map(int,input().split())) S = sum(A) t = 0 for i in A: if i >= S/(4*M): t += 1 if t > M: print("Yes") else: print("No")
N,M = map(int,input().split()) A = list(map(int,input().split())) S = sum(A) t = 0 for i in A: if i >= S/(4*M): t += 1 if t >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,739
489,740
u273496671
python
p02718
def main(): import sys input = sys.stdin.readline N, M = map(int, input().split()) A = list(map(int, input().split())) S = sum(A) X = S // (4*M) cnt = 0 for a in A: if a >= X: cnt += 1 if cnt >= M: print('Yes') else: print('No') if __name__...
def main(): import sys input = sys.stdin.readline N, M = map(int, input().split()) A = list(map(int, input().split())) S = sum(A) X = S / (4*M) cnt = 0 for a in A: if a >= X: cnt += 1 if cnt >= M: print('Yes') else: print('No') if __name__ =...
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,743
489,744
u892251744
python
p02718
N, M = map(int, input().split()) A = [int(a) for a in input().split()] A.sort(reverse=True) print("Yes" if A[M - 1] > sum(A) / (4 * M) else "No")
N, M = map(int, input().split()) A = [int(a) for a in input().split()] A.sort(reverse=True) print("Yes" if A[M - 1] >= sum(A) / (4 * M) else "No")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
489,761
489,762
u782930273
python
p02718
N, M = map(int, input().split()) A = [int(i) for i in input().split()] threshold = N/M/4 count = 0 for elem in A: if elem >= threshold: count += 1 if count >= M: print("Yes") else: print("No")
N, M = map(int, input().split()) A = [int(i) for i in input().split()] threshold = sum(A)/M/4 count = 0 for elem in A: if elem >= threshold: count += 1 if count >= M: print("Yes") else: print("No")
[ "assignment.value.change", "expression.operation.binary.change", "call.arguments.add" ]
489,769
489,770
u749359783
python
p02718
n, m = map(int,input().split()) a = list(map(int,input().split())) get = sum(a) num = 0 for i in range(n): if 4 * m * a[i] > get: num += 1 print('Yes') if num >= m else print('No')
n, m = map(int,input().split()) a = list(map(int,input().split())) get = sum(a) num = 0 for i in range(n): if 4 * m * a[i] >= get: num += 1 print('Yes') if num >= m else print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,773
489,774
u627803856
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) for i in range(m): if a[i] < sum(a) // (4*m): print("No"); break else: print("Yes")
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) for i in range(m): if a[i] < sum(a) / (4*m): print("No"); break else: print("Yes")
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
489,779
489,780
u193182854
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) fl = "Yes" a.sort(reverse = True) s = sum(a) for i in range(m): if a[m] < s * (1 / (4*m)): fl = "No" print(fl)
n,m = map(int,input().split()) a = list(map(int,input().split())) fl = "Yes" a.sort(reverse = True) s = sum(a) for i in range(m): if a[i] < s * (1 / (4*m)): fl = "No" print(fl)
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
489,781
489,782
u246217175
python
p02718
import sys sys.setrecursionlimit(10 ** 8) input = sys.stdin.readline def main(): N, M = [int(x) for x in input().split()] A = [int(x) for x in input().split()] total = sum(A) ans = 0 for a in A: if a >= (total // (4 * M)): ans += 1 if ans >= M: print("Yes") ...
import sys sys.setrecursionlimit(10 ** 8) input = sys.stdin.readline def main(): N, M = [int(x) for x in input().split()] A = [int(x) for x in input().split()] total = sum(A) ans = 0 for a in A: if a >= (total / (4 * M)): ans += 1 if ans >= M: print("Yes") e...
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
489,789
489,790
u098012509
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) if a[m-1]>=1/(4*m): print('Yes') else: print('No')
n, m = map(int, input().split()) a = list(map(int, input().split())) a.sort(reverse=True) if a[m-1]>=sum(a)/(4*m): print('Yes') else: print('No')
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "call.arguments.add" ]
489,793
489,794
u318127926
python
p02718
N,M=list(map(int,input().split())) A = list(map(int,input().split())) total = sum(A) maxi = total / (4*M) item = 0 for a in A: if a > maxi: item+=1 print('Yes' if item >= M else 'No')
N,M=list(map(int,input().split())) A = list(map(int,input().split())) total = sum(A) maxi = total / (4*M) item = 0 for a in A: if a >= maxi: item+=1 print('Yes' if item >= M else 'No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,795
489,796
u243699903
python
p02718
N, M = list(map(int, input().split(' '))) A_list = list(map(int, input().split(' '))) sum_A = sum(A_list) count = 0 for A in A_list: if A >= sum_A // (4 * M): count += 1 if count >= M: print('Yes') else: print('No')
N, M = list(map(int, input().split(' '))) A_list = list(map(int, input().split(' '))) sum_A = sum(A_list) count = 0 for A in A_list: if A >= sum_A / (4 * M): count += 1 if count >= M: print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
489,805
489,806
u334260611
python
p02718
n,m = map(int,input().split()) l = list(map(int,input().split())) a = sum(l) b = a/4/m ans = 0 for i in l: if i > b: ans += 1 if ans >= m: print("Yes") else: print("No")
n,m = map(int,input().split()) l = list(map(int,input().split())) a = sum(l) b = a/4/m ans = 0 for i in l: if i >= b: ans += 1 if ans >= m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,807
489,808
u368796742
python
p02718
def main(): n, m, *a = map(int, open(0).read().split()) k = sum(a)//(4*m) l = sum([i>=k for i in a]) print('Yes' if l>=m else 'No') if __name__ == '__main__': main()
def main(): n, m, *a = map(int, open(0).read().split()) k = sum(a)/(4*m) l = sum([i>=k for i in a]) print('Yes' if l>=m else 'No') if __name__ == '__main__': main()
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,809
489,810
u127499732
python
p02718
n, m = map(int, input().split()) aa = list(map(int, input().split())) t = sum(aa) // (4 * m) c = 0 for a in aa: if a >= t: c += 1 if c >= m: print("Yes") else: print("No")
n, m = map(int, input().split()) aa = list(map(int, input().split())) t = sum(aa) / (4 * m) c = 0 for a in aa: if a >= t: c += 1 if c >= m: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,811
489,812
u622570247
python
p02718
N,M = map(int,input().split()) A = list(map(int,input().split())) soutokuhyou = sum(A) A.sort(reverse=True) if A[M-1] > soutokuhyou * (1/(4*M)): print("Yes") else: print("No")
N,M = map(int,input().split()) A = list(map(int,input().split())) soutokuhyou = sum(A) A.sort(reverse=True) if A[M-1] >= soutokuhyou * (1/(4*M)): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,815
489,816
u120691615
python
p02718
n,m = map(int, input().split()) a = list(map(int, input().split())) sm=sum(a) cnt=0 for i in range(n): if a[i]*4*m > sm: cnt+=1 if cnt >=m: print("Yes") else: print("No")
n,m = map(int, input().split()) a = list(map(int, input().split())) sm=sum(a) cnt=0 for i in range(n): if a[i]*4*m >= sm: cnt+=1 if cnt >=m: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,819
489,820
u358254559
python
p02718
n, m = map(int, input().split()) a = list(map(int, input().split())) total = sum(a) cnt = 0 for ai in a: if ai > (total/(4*m)): cnt += 1 if cnt >= m: print('Yes') else: print('No')
n, m = map(int, input().split()) a = list(map(int, input().split())) total = sum(a) cnt = 0 for ai in a: if ai >= (total/(4*m)): cnt += 1 if cnt >= m: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,823
489,824
u829859091
python
p02718
N,M=map(int,input().split()) A=sorted(map(int,input().split())) print(['No','Yes'][A[-M]>=sum(A)//(4*M)])
N,M=map(int,input().split()) A=sorted(map(int,input().split())) print(['No','Yes'][A[-M]>=sum(A)/(4*M)])
[ "expression.operator.arithmetic.change", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
489,829
489,830
u509368316
python
p02718
import numpy as np def main(): N,M = map(int,input().split()) A = np.array(list(map(int,input().split()))) ans = 'No' if sum( A>= int(sum(A)/4/M) ) >= M: ans = 'Yes' print(ans) return if __name__ == "__main__": main()
import numpy as np def main(): N,M = map(int,input().split()) A = np.array(list(map(int,input().split()))) ans = 'No' if sum( A >= sum(A)/4/M ) >= M: ans = 'Yes' print(ans) return if __name__ == "__main__": main()
[ "call.remove", "control_flow.branch.if.condition.change" ]
489,833
489,834
u021022333
python
p02718
import numpy as np def main(): N,M = map(int,input().split()) A = np.array(list(map(int,input().split()))) ans = 'No' if sum( A> int(sum(A)/4/M) ) >= M: ans = 'Yes' print(ans) return if __name__ == "__main__": main()
import numpy as np def main(): N,M = map(int,input().split()) A = np.array(list(map(int,input().split()))) ans = 'No' if sum( A >= sum(A)/4/M ) >= M: ans = 'Yes' print(ans) return if __name__ == "__main__": main()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.remove" ]
489,835
489,834
u021022333
python
p02718
n, m = map(int, input().split()) a = [int(x) for x in input().split()] ng = sum(a) // (4 * m) a.sort(reverse=True) ans = 'Yes' for i in a[:m]: if i < ng: ans = 'No' print(ans)
n, m = map(int, input().split()) a = [int(x) for x in input().split()] ng = sum(a) / (4 * m) a.sort(reverse=True) ans = 'Yes' for i in a[:m]: if i < ng: ans = 'No' print(ans)
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,841
489,842
u709799578
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) b=0 for a in A: if a>=1/(4*M): b+=1 print("Yes" if b>=M else "No")
N,M=map(int,input().split()) A=list(map(int,input().split())) b=0 for a in A: if a>=1/(4*M)*sum(A): b+=1 print("Yes" if b>=M else "No")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
489,850
489,851
u694665829
python
p02718
n, m = input().strip().split(' ') n, m = [int(n), int(m)] array = list(map(int, input().strip().split(' '))) sum = 0 for i in range(n): sum = sum + array[i] bd = sum // (4*m) cnt = 0 for i in range(n): if array[i] >= bd: cnt = cnt + 1 ans = 'No' if cnt >= m: ans = 'Yes' print(ans)
n, m = input().strip().split(' ') n, m = [int(n), int(m)] array = list(map(int, input().strip().split(' '))) sum = 0 for i in range(n): sum = sum + array[i] bd = sum / (4*m) cnt = 0 for i in range(n): if array[i] >= bd: cnt = cnt + 1 ans = 'No' if cnt >= m: ans = 'Yes' print(ans)
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,852
489,853
u776800336
python
p02718
NM = list(map(int, input().split())) score = list(map(int, input().split())) cutter = 0 all = 0 for i in range(len(score)): all += score[i] candidate = 0 criteria = 4 * NM[1] for i in range(len(score)): if (all < (score[i] * criteria)): candidate += 1 if (candidate >= NM[1]): print("Yes") else: ...
NM = list(map(int, input().split())) score = list(map(int, input().split())) cutter = 0 all = 0 for i in range(len(score)): all += score[i] candidate = 0 criteria = 4 * NM[1] for i in range(len(score)): if (all <= (score[i] * criteria)): candidate += 1 if (candidate >= NM[1]): print("Yes") else: ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,854
489,855
u995323427
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort() A.reverse() A_sum = sum(A) bound = 0 if A_sum % (4 * M) == 0: bound = A_sum // (4 * M) - 1 else: bound = A_sum // (4 * M) if A[M - 1] >= bound: print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort() A.reverse() A_sum = sum(A) bound = 0 if A_sum % (4 * M) == 0: bound = A_sum // (4 * M) else: bound = A_sum // (4 * M) + 1 if A[M - 1] >= bound: print("Yes") else: print("No")
[ "expression.operation.binary.remove" ]
489,861
489,862
u623349537
python
p02718
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A.sort() real = A[M-1] / sum(A) ideal = 1 / (4 * M) if real >= ideal: print("Yes") else: print("No")
N, M = list(map(int, input().split())) A = list(map(int, input().split())) A.sort(reverse = True) real = A[M-1] / sum(A) ideal = 1 / (4 * M) if real >= ideal: print("Yes") else: print("No")
[ "call.arguments.keyword_argument.add" ]
489,863
489,864
u894521144
python
p02718
from sys import stdin def main(): input = lambda: stdin.readline()[:-1] N, M = map(int, input().split()) A = list(map(int, input().split())) num = (sum(A) + (4 * M) + 1) // (4 * M) A.sort(reverse=1) if A[M-1] >= num: print('Yes') else: print('No') main()
from sys import stdin def main(): input = lambda: stdin.readline()[:-1] N, M = map(int, input().split()) A = list(map(int, input().split())) num = (sum(A) + (4 * M) - 1) // (4 * M) A.sort(reverse=1) if A[M-1] >= num: print('Yes') else: print('No') main()
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
489,865
489,866
u125205981
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 "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 "No")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
489,879
489,880
u086172144
python
p02718
from collections import defaultdict import math N, M = map(int, input().split(' ')) A = list(map(int, input().split(' '))) kijun = sum(A)/M/4 a = list(filter(lambda x: x > kijun, A)) if len(a) >= M: print('Yes') else: print('No')
from collections import defaultdict import math N, M = map(int, input().split(' ')) A = list(map(int, input().split(' '))) kijun = sum(A)/M/4 a = list(filter(lambda x: x >= kijun, A)) if len(a) >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "assignment.value.change", "call.arguments.change" ]
489,887
489,888
u360061665
python
p02718
if __name__ == '__main__': N, M = map(int, input().split()) A = [int(a) for a in input().split()] th = sum(A)/4/M A.sort(reverse=True) print(A) if A[M-1] >= th: print('Yes') else: print('No')
if __name__ == '__main__': N, M = map(int, input().split()) A = [int(a) for a in input().split()] th = sum(A)/4/M A.sort(reverse=True) if A[M-1] >= th: print('Yes') else: print('No')
[ "call.remove" ]
489,891
489,892
u053699292
python
p02718
def f(A,M): N=len(A) c=0 for i in range(N): if A[i]>1/(4*M)*(sum(A)): c+=1 if c>=M: return "Yes" else: return "No" N,M=map(int,input().split()) A=list(map(int,input().split())) print(f(A,M))
def f(A,M): N=len(A) c=0 for i in range(N): if A[i]>=1/(4*M)*(sum(A)): c+=1 if c>=M: return "Yes" else: return "No" N,M=map(int,input().split()) A=list(map(int,input().split())) print(f(A,M))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,930
489,931
u420399048
python
p02718
N,M=map(int,input().split()) A=list(map(int,input().split())) L=max(A) flag=0 for i in range(N): if A[i]>=L/(4*M): flag+=1 if flag>=M: print('Yes') else: print('No')
N,M=map(int,input().split()) A=list(map(int,input().split())) L=sum(A) flag=0 for i in range(N): if A[i]>=L/(4*M): flag+=1 if flag>=M: print('Yes') else: print('No')
[ "assignment.value.change", "identifier.change", "call.function.change" ]
489,934
489,935
u008079810
python
p02718
N, M = map(int,input().split()) A = list(map(int, input().split())) line = sum(A)/(4*M) A.sort(reverse=True) if A[M-1]>line: print('Yes') else: print('No')
N, M = map(int,input().split()) A = list(map(int, input().split())) line = sum(A)/(4*M) A.sort(reverse=True) if A[M-1]>=line: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,941
489,942
u148753842
python
p02718
N, M = map(int,input().split()) A = list(map(int, input().split())) line = sum(A)/(4*M) A.sort(reverse=True) if A[M]>line: print('Yes') else: print('No')
N, M = map(int,input().split()) A = list(map(int, input().split())) line = sum(A)/(4*M) A.sort(reverse=True) if A[M-1]>=line: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
489,943
489,942
u148753842
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) cnt = 0 s = sum(A) for i in range(N): if A[i] > s/(4*M): cnt += 1 if cnt >= M: print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) cnt = 0 s = sum(A) for i in range(N): if A[i] >= s/(4*M): cnt += 1 if cnt >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,944
489,945
u762424840
python
p02718
n, m = map(int, input().split()) a = [ i for i in map(int, input().split())] # print(n, m) # print(a) a.sort(reverse=True) # print(a) last = a[m-1] # print(last) total = sum(a) if (last > (total / (4 * m))): print('Yes') else: print('No')
n, m = map(int, input().split()) a = [ i for i in map(int, input().split())] # print(n, m) # print(a) a.sort(reverse=True) # print(a) last = a[m-1] # print(last) total = sum(a) if (last >= (total / (4 * m))): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,953
489,954
u290563917
python
p02718
N, M = list(map(int, input().split())) A = list(map(int, input().split())) lower_limit = sum(A) * 1 / (4 * M) cnt = 0 for a in A: if a >= lower_limit: cnt += 1 if cnt > M: print('Yes') else: print('No')
N, M = list(map(int, input().split())) A = list(map(int, input().split())) lower_limit = sum(A) / (4 * M) cnt = 0 for a in A: if a >= lower_limit: cnt += 1 if cnt >= M: print('Yes') else: print('No')
[ "expression.operation.binary.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,968
489,969
u123648284
python
p02718
N,M = map(int, input().split()) A = list(map(int, input().split())) a=sum(A) number=0 for i in A: if i>a/(4*M): number+=1 if number>=M: print('Yes') else: print('No')
N,M = map(int, input().split()) A = list(map(int, input().split())) a=sum(A) number=0 for i in A: if i>=a/(4*M): number+=1 if number>=M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,970
489,971
u519922200
python
p02718
N,M = map(int, input().split()) A = list(map(int, input().split())) a=sum(A) number=0 for i in A: if i>a/4: number+=1 if number>=M: print('Yes') else: print('No')
N,M = map(int, input().split()) A = list(map(int, input().split())) a=sum(A) number=0 for i in A: if i>=a/(4*M): number+=1 if number>=M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
489,972
489,971
u519922200
python
p02718
n,m = map(int, input().split()) l = list(map(int, input().split())) count = 0 for tg in l: if tg >= 1 / (4 * m): count += 1 if count >= m: print("Yes") else: print("No")
n,m = map(int, input().split()) l = list(map(int, input().split())) count = 0 for tg in l: if tg >= 1 / (4 * m)* sum(l): count += 1 if count >= m: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
489,992
489,993
u509725329
python
p02718
n,m = map(int, input().split()) l = list(map(int, input().split())) count = 0 for tg in l: if tg >= 1 / (4 * m): count += 1 if count > m: print("Yes") else: print("No")
n,m = map(int, input().split()) l = list(map(int, input().split())) count = 0 for tg in l: if tg >= 1 / (4 * m)* sum(l): count += 1 if count >= m: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operator.compare.change" ]
489,994
489,993
u509725329
python
p02718
N, M = [int(i) for i in input().split()] Ai = [int(i) for i in input().split()] min_voted_num = 1 / (4 * M) * sum(Ai) num_selected = sum(A > min_voted_num for A in Ai) if num_selected >= M: print('Yes') else: print('No')
N, M = [int(i) for i in input().split()] Ai = [int(i) for i in input().split()] min_voted_num = 1 / (4 * M) * sum(Ai) num_selected = sum(A >= min_voted_num for A in Ai) if num_selected >= M: print('Yes') else: print('No')
[ "expression.operator.compare.change", "assignment.value.change" ]
489,995
489,996
u681197547
python
p02718
N,M = map(int,input().split()) a = list(map(int,input().split())) a.sort(reverse=True) s = sum(a) vor = s//(4*M) if a[M-1] >= vor: print("Yes") else: print("No")
N,M = map(int,input().split()) a = list(map(int,input().split())) a.sort(reverse=True) s = sum(a) vor = -(-s//(4*M)) if a[M-1] >= vor: print("Yes") else: print("No")
[]
489,999
490,000
u648212584
python
p02718
# -*- coding: utf-8 -*- """ Created on Sat Apr 4 20:49:19 2020 @author: naoki """ N, M = map(int,input().split()) A = list(map(int,input().split())) criteria = sum(A) / (4*M) count = 0 for i in range(N): if A[i] > criteria: count+=1 if count >= M: print("Yes") else: print("No")
# -*- coding: utf-8 -*- """ Created on Sat Apr 4 20:49:19 2020 @author: naoki """ N, M = map(int,input().split()) A = list(map(int,input().split())) criteria = sum(A) / (4*M) count = 0 for i in range(N): if A[i] >= criteria: count+=1 if count >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
490,006
490,007
u207097826
python
p02718
n, m = map(int, input().split()) a = sorted(list(map(int, input().split()))) sum_a = sum(a) if a[n-2] >= sum_a/(4*m): print('Yes') else: print('No')
n, m = map(int, input().split()) a = sorted(list(map(int, input().split()))) sum_a = sum(a) if a[n-m] >= sum_a/(4*m): print('Yes') else: print('No')
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
490,021
490,022
u266294380
python
p02718
n, m = map(int, input().split()) a = sorted(list(map(int, input().split()))) sum_a = sum(a) if a[m-2] >= sum_a/(4*m): print('Yes') else: print('No')
n, m = map(int, input().split()) a = sorted(list(map(int, input().split()))) sum_a = sum(a) if a[n-m] >= sum_a/(4*m): print('Yes') else: print('No')
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "identifier.replace.add", "literal.replace.remove" ]
490,023
490,022
u266294380
python
p02718
n, m = map(int, input().split()) a = sorted(list(map(int, input().split()))) sum_a = sum(a) if a[m-1] >= sum_a/(4*m): print('Yes') else: print('No')
n, m = map(int, input().split()) a = sorted(list(map(int, input().split()))) sum_a = sum(a) if a[n-m] >= sum_a/(4*m): print('Yes') else: print('No')
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "identifier.replace.add", "literal.replace.remove" ]
490,024
490,022
u266294380
python
p02718
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]*4*m >= s: c+=1 if c>=m: print('Yse') else: print('No')
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]*4*m >= s: c+=1 if c>=m: print('Yes') else: print('No')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
490,036
490,037
u306060982
python
p02718
import sys n, m = map(int, input().split()) table = list(map(int, input().split())) table.sort(reverse=True) for x in range(0, m): if not table[x] >= sum(table) // (4 * m): break else: print('Yes') sys.exit() print('No')
import sys n, m = map(int, input().split()) table = list(map(int, input().split())) table.sort(reverse=True) for x in range(0, m): if table[x] < sum(table) / (4 * m): break else: print('Yes') sys.exit() print('No')
[ "control_flow.branch.if.condition.change", "expression.operator.compare.change", "expression.operator.arithmetic.change" ]
490,040
490,041
u352642051
python
p02718
import numpy as np S = input().split(" ") N = int(S[0]) M = int(S[1]) ARR = np.array([int(s) for s in input().split(" ")]) criterion = np.sum(ARR) / (4 * M) res = ARR > criterion result = np.sum(res) if result >= M: print("Yes") else: print("No")
import numpy as np S = input().split(" ") N = int(S[0]) M = int(S[1]) ARR = np.array([int(s) for s in input().split(" ")]) criterion = np.sum(ARR) / (4 * M) res = ARR >= criterion result = np.sum(res) if result >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "assignment.value.change" ]
490,050
490,051
u788068140
python
p02718
import numpy as np S = input().split(" ") N = int(S[0]) M = int(S[1]) ARR = np.array([int(s) for s in input().split(" ")]) criterion = np.sum(ARR) / (4 * M) res = ARR > criterion result = np.sum(res) if result > M: print("Yes") else: print("No")
import numpy as np S = input().split(" ") N = int(S[0]) M = int(S[1]) ARR = np.array([int(s) for s in input().split(" ")]) criterion = np.sum(ARR) / (4 * M) res = ARR >= criterion result = np.sum(res) if result >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "assignment.value.change", "control_flow.branch.if.condition.change" ]
490,052
490,051
u788068140
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) s = sum(A) c = s / (4 * M) if A[M] < c: print('No') else: print('Yes')
N, M = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) s = sum(A) c = s / (4 * M) if A[M - 1] < c: print('No') else: print('Yes')
[ "control_flow.branch.if.condition.change" ]
490,065
490,066
u137542041
python
p02718
n,m = map(int, input().split()) lis = list(map(int, input().split())) total = sum(lis) count = 0 for e in lis: if e>=(1/(4*m)): count += 1 if count >= m: print("Yes") else: print("No")
n,m = map(int, input().split()) lis = list(map(int, input().split())) total = sum(lis) count = 0 for e in lis: if e>=(1/(4*m))*total: count += 1 if count >= m: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
490,079
490,080
u593490756
python
p02718
def main(): N,M = map(int,input().split()) A = list(map(int,input().split())) m_count = sum(x > sum(A)/(4*M) for x in A) if M <= m_count: print("Yes") else: print("No") if __name__ == '__main__': main()
def main(): N,M = map(int,input().split()) A = list(map(int,input().split())) m_count = sum(x >= sum(A)/(4*M) for x in A) if M <= m_count: print("Yes") else: print("No") if __name__ == '__main__': main()
[ "expression.operator.compare.change", "assignment.value.change" ]
490,083
490,084
u811436831
python
p02718
import numpy as np N, M = list(map(int, input().split())) A = list(map(int, input().split())) total_vote = np.sum(A) threshold = total_vote/(4*M) A.sort(reverse = True) if A[M] > threshold: print('Yes') else: print('No')
import numpy as np N, M = list(map(int, input().split())) A = list(map(int, input().split())) total_vote = np.sum(A) threshold = total_vote/(4*M) A.sort(reverse = True) if A[M-1] >= threshold: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
490,085
490,086
u952081880
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) sum = sum(A) count = 0 for i in A: if i > (sum / (4 * M)): count += 1 if count >= M: print('Yes') else: print('No')
N, M = map(int, input().split()) A = list(map(int, input().split())) sum_a = sum(A) count = 0 for i in A: if i >= (sum_a / (4 * M)): count += 1 if count >= M: print('Yes') else: print('No')
[ "assignment.variable.change", "identifier.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
490,093
490,094
u478888559
python
p02718
import math n,m = list(map(int, input().split(" "))) sequence = list(map(int, input().split(" "))) threshold = math.floor(sum(sequence) // (4*m)) sequence.sort(reverse = True) index = 0 while m > 0: if sequence[index] >= threshold: m -= 1 index += 1 else: break if m == 0: print("Yes") else: print("No")
import math n,m = list(map(int, input().split(" "))) sequence = list(map(int, input().split(" "))) threshold = math.ceil(sum(sequence) / (4*m)) sequence.sort(reverse = True) index = 0 while m > 0: if sequence[index] >= threshold: m -= 1 index += 1 else: break if m == 0: print("Yes") else: print("No")
[ "misc.opposites", "assignment.value.change", "identifier.change", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change" ]
490,123
490,124
u401737209
python
p02718
import math n,m = list(map(int, input().split(" "))) sequence = list(map(int, input().split(" "))) threshold = math.ceil(sum(sequence) // (4*m)) sequence.sort(reverse = True) index = 0 while m > 0: if sequence[index] >= threshold: m -= 1 index += 1 else: break if m == 0: print("Yes") else: print("No")
import math n,m = list(map(int, input().split(" "))) sequence = list(map(int, input().split(" "))) threshold = math.ceil(sum(sequence) / (4*m)) sequence.sort(reverse = True) index = 0 while m > 0: if sequence[index] >= threshold: m -= 1 index += 1 else: break if m == 0: print("Yes") else: print("No")
[ "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
490,125
490,124
u401737209
python
p02718
import numpy as np n, m = list(map(int, input().split())) a = np.array(list(map(int, input().split()))) total = np.sum(a) #print(len(a[a>=total//(4*m)])) if len(a[a>=total//(4*m)])>=m: print('Yes') else: print('No')
import numpy as np n, m = list(map(int, input().split())) a = np.array(list(map(int, input().split()))) total = np.sum(a) #print(len(a[a>=total/(4*m)])) if len(a[a>=total/(4*m)])>=m: print('Yes') else: print('No')
[ "expression.operator.arithmetic.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
490,128
490,129
u915879510
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) if len([c for c in A if c > sum(A) / (4 * M)]) >= M: print("Yes") else: print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) if len([c for c in A if c >= sum(A) / (4 * M)]) >= M: print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
490,130
490,131
u848462327
python
p02718
n,m = map(int,input().split()) A = list(map(int,input().split())) total = sum(A) A.sort() A.reverse() com = 0 for i in A: if(i < total/(4*m)): break else: com += 1 if(com>m): print('Yes') else: print('No')
n,m = map(int,input().split()) A = list(map(int,input().split())) total = sum(A) A.sort() A.reverse() com = 0 for i in A: if(i < total/(4*m)): break else: com += 1 if(com>=m): print('Yes') else: print('No')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
490,136
490,137
u101442050
python
p02718
N, M = map(int, input().split()) A = list(map(int, input().split())) total = sum(A) cnt = 0 for a in A: if a > total/(4*M): cnt += 1 if cnt >=M: print("Yes") else:print("No")
N, M = map(int, input().split()) A = list(map(int, input().split())) total = sum(A) cnt = 0 for a in A: if a >= total/(4*M): cnt += 1 if cnt >=M: print("Yes") else:print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
490,146
490,147
u235783479
python
p02718
n,m = map(int,input().split()) a = list(map(int,input().split())) count = 0 sm = sum(a) for i in a: if( i >= sm/(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 sm = sum(a) for i in a: if( i >= sm/(4*m)): count += 1 if(count >= m): print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
490,162
490,163
u615034089
python
p02718
import sys stdin = sys.stdin sys.setrecursionlimit(10 ** 7) def II(): return int(sys.stdin.readline()) def MI(): return map(int, sys.stdin.readline().split()) # 入力全てを整数に変換したものの配列を受け取る def LI(): return list(map(int, sys.stdin.readline().split())) # 入力全てを整数に変換して1引いたものの配列を受け取る def LLI(rows_number): return [LI() for _ in ...
import sys stdin = sys.stdin sys.setrecursionlimit(10 ** 7) def II(): return int(sys.stdin.readline()) def MI(): return map(int, sys.stdin.readline().split()) # 入力全てを整数に変換したものの配列を受け取る def LI(): return list(map(int, sys.stdin.readline().split())) # 入力全てを整数に変換して1引いたものの配列を受け取る def LLI(rows_number): return [LI() for _ in ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
490,164
490,165
u343850880
python