TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N , K = map(int, input().split())

length = list(map(int, input().split()))
ans = 0
print(length)
for i in range(N):
    if length[i] >= K:
        ans += 1

print(ans)


N , K = map(int, input().split())

length = list(map(int, input().split()))
ans = 0
for i in range(N):
    if length[i] >= i:
        ans += 1

print(ans)


N , K = map(int, input().split())

length = list(map(int, input().split()))
ans = 0

for i in range(N):
    if length[i] >= K:
        ans += 1

print(ans)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k=map(int,input().split())
a=list(map(int,input().split()))
ans=0
for b in a:
  if b>=k:
    ans+=0
print(ans)

n,k=map(int,input().split())
a=list(map(int,input().split()))
ans=0
for b in a:
  if b>=k:
    ans+=1
print(ans)


Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
import numpy as np
n, k = map(int, input().split())
aa = np.array(list(map(int, input().split())))
print(sum(aa > k))

import numpy as np
n, k = map(int, input().split())
aa = np.array(list(map(int, input().split())))
print(sum(aa >= k))

Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):

n,k = list(map(int, input().split()))
h = list(map(int, input().split()))

cnt = 0
for i in range(k):
    if h[i] >= k:
        cnt += 1
print(cnt)




n,k = list(map(int, input().split()))
h = list(map(int, input().split()))

cnt = 0
for i in range(n):
    if h[i] >= k:
        cnt += 1
print(cnt)



Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N = input().split()
man = int(N[0])
border = int(N[1])
hight = input().split()
enable = 0
for i in range(man):
  if hight[i] >= border:
    enable +=1

print(enable)
    

N = input().split()
man = int(N[0])
border = int(N[1])
hight = input().split()
enable = 0
for i in range(man):
  if int(hight[i]) >= border:
    enable +=1
print(enable)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
x,y = map(float,input().split())	
li = list(map(float,input().split()))	
print(y)
count=0
for i in li:
    if(y <= i):
        count+=1
print(count)

x,y = map(int,input().split())	
c=input()
c.split()
print(y)
count=0
for i in c:
    if(float(y) <= float(i)):
        count+=1
print(count)

x,y = map(float,input().split())	
li = list(map(float,input().split()))	
count=0
for i in li:
    if(y <= i):
        count+=1
print(count)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N, K = map(int, input().split)
h = list(map(int, input().split()))
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(N)
        

N, K = map(int, input().split)
h = list(map(int, input().split()))
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(N)
        

N, K = map(int, input().split)
h = map(int, input().split())
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(str.N)
        

N, K = map(int, input().split)
h = map(int, input().split())
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(N)
        

N, K = map(int, input().split)
A = N
h = list(map(int, input().split()))
for hantei in h:
    if K > hantei:
        A -= 1
    else:
        pass
print(A)

N, K = map(int, input().split)
h = list(map(int, input().split()))
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(str.N)
        

N, K = map(int, input().split)
h = []
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(str.N)
        

N, K = map(int, input().split)
h = []
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(str.N)
        

N, K = map(int, input().split)
h = [int(i) for i in input().split()] 
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(N)

N, K = map(int, input().split())
h = list(map(int, input().split()))
for hantei in h:
    if K > hantei:
        N -= 1
    else:
        pass
print(N)
        

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n = int(input())
k = int(input())
h = list(map(int, input().split()))

ans = 0

for i in h:
  if i >= k:
    ans += 1
print(ans)



n, k = map(int, input().split())
l = list(map(int, input().split()))

ans = 0

for i in range(n):
    if l[i] >= k:
        ans += 1

print(ans)




Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k = list(map(int, input().split()))
h = list(map(int, input().split()))
count = 0
for i in range(h):
    if h[i] >= k:
        count += 1
print(count)

n,k = list(map(int, input().split()))
h = list(map(int, input().split()))
count = 0
for i in range(len(h)):
    if h[i] >= k:
        count += 1
print(count)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n=int(input())
k=int(input())
sum=0
for i in range(n):
  h=int(input())
  if h>=k:
    sum=sum+1
print(sum)

n=input().split()
N=int(n[0])
K=int(n[1])
h=list(map(int,input().split()))
sum=0
for i in range(N):
    if h[i]>=K:
        sum=sum+1
print(sum)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
NK = input().split()
N = int(NK[0])
K = int(NK[1])
h = list(map(int, input().split()))
for j in range(N):
    i = 0
    if h[i] < K:
        h.pop(i)
    else:
        i = i + 1
print(len(h))

NK = input().split()
N = int(NK[0])
K = int(NK[1])
h = list(map(int, input().split()))
i = 0
for j in range(N):
    if h[i] < K:
        h.pop(i)
    else:
        i = i + 1
print(len(h))

Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = list(map(int, input().split()))
h = list(map(int, input().split()))

able_to_ride = [p for p in h if h >= k]
print(len(able_to_ride))

n, k = list(map(int, input().split()))
h = list(map(int, input().split()))

able_to_ride = [p for p in h if p >= k]
print(len(able_to_ride))

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
NK = input().split()
hs = input().split()
ans = 0
for i in range(0, int(NK[0])):
    if int(hs[i]) > int(NK[1]):
        ans += 1

print(ans)

NK = input().split()
hs = input().split()
ans = 0
for i in range(0, int(NK[0])):
    if int(hs[i]) >= int(NK[1]):
        ans += 1

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k=map(int,input())
a=list(map(int,input().split()))
cnt=0
for i in range(n):
  if(a[i]>=k):
    cnt+=1
    
print(cnt)  

n,k=map(int,input().split())
a=list(map(int,input().split()))
cnt=0
for i in range(n):
  if(a[i]>=k):
    cnt+=1
    
print(cnt)  


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
import numpy as np

N = int(input())
K = int(input())
h_i = np.array(map(int, input().split()))

can_ride = h_i[h_i>=K]
print(len(can_ride))

import numpy as np

N = int(input())
K = int(input())
h_i = np.arry(input().split()) 

can_ride = h_i[h_i>=K]
print(len(can_ride))

import numpy as np

N = int(input())
K = int(input())
h_i = list(map(int, input().split()))
h_i = np.array(h_i)

can_ride = h_i[h_i>=K]
print(len(can_ride))

import numpy as np
 
N, K = map(int, input().split())
h_i = np.array(map(int, input().split()))

can_ride = h_i[h_i>=K]
print(len(can_ride))

import numpy as np

N = int(input())
K = int(input())
h_i = map(int,input().spilt())

can_ride = h_i[h_i>=K]
print(len(can_ride))

import numpy as np
 
N, K = map(int, input().split())
h_i = list(map(int, input().split()))
h_i = np.array(h_i)
can_ride = h_i[h_i>=K]
print(len(can_ride))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N,K = map(int, input().split())
h = list(map(int, input().split()))
h.sort(reverse=True)
a=0:
for i in h:
  if i>=h:
    a+=1
  else:
    break
print(a)

N,K = map(int, input().split())
h = list(map(int, input().split()))
h.sort(reverse=True)
a=0:
for i in h:
  if i>=h:
    a+=1
  else:
    break
    

N,K = map(int, input().split())
h = list(map(int, input().split()))
h.sort(reverse=True)
a=0
for i in h:
  if i>=K:
    a+=1
  else:
    break
    

N,K = map(int, input().split())
h = list(map(int, input().split()))
h.sort(reverse=True)
a=0:
for i in h:
  if i>=K:
    a+=1
  else:
    break
print(a)

N,K = map(int, input().split())
h = list(map(int, input().split()))
h.sort(reverse=True)
a=0
for i in h:
  if i>=K:
    a+=1
  else:
    break
print(a)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N,K=map(int,input().split())
h_i=(int(x) for x in input().split())
count=0
for i in range(N):
  if h_i[i] >= K:
    count+=1
print(count)

N,K=map(int,input().split())
h_i=(int(x) for x in input().split())
count=0
for i in range(N):
  if h_i[i] => K:
    count+=1
print(count)

N,K=map(int,input().split())
h_i=list(int(x) for x in input().split())
count=0

for i in range(N):
  if h_i[i] >= K:
    count+=1
print(count)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int, input().split())
h = list(map(int, input().split()))
h_s = sorted(h, reverse = True)
ans = n
for i in range(n):
    if h_s[i] >= k:
        ans = i + 1
        break
print(ans)

n, k = map(int, input().split())
h = list(map(int, input().split()))
h_s = sort(h, reverse = True)
ans = n
for i in range(n):
    if h_s[i] > k:
        ans = i + 1
        break
print(ans)

n, k = map(int, input().split())
h = list(map(int, input().split()))
h_s = sorted(h, reverse = True)
ans = n
for i in range(n):
    if h_s[i] < k:
        ans = i
        break
print(ans)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N = input()
K = input()
counter = 0
for i in range(int(N))
    if int(input()) >= int(K) :
       counter++
print(counter)


N = input()
K = input()
counter = 0
for i in range(N)
    if input() >= K :
       counter++
print(counter)


N,K = map(int,input().split())
height_list = list(map(int,input().split()))
print(sum(1 for i in h if i >= K]))

N = input()
K = input()
counter = 0
for i in range(int(N)):
    if int(input()) >= int(K) :
       counter = counter + 1
print(counter)

N = input()
K = input()
for i in N
    if input() >= K :
       counter++
print(counter)


N = input()
K = input()
counter = 0
for i in range(int(N)):
    temp = int(input())
    if temp >= int(K) :
       counter = counter + 1
print(counter)

N,K = map(int,input().split())
height_list = list(map(int,input().split()))
print(sum(1 for i in height_list if i >= K]))

N,K = map(int,input().split())
height_list = list(map(int,input().split()))
print(sum([1 for i in height_list if i >= K]))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N, K = map(int, input().split())
h = list(map(int, input().split()))
a=0
for i in range(N):
  if h[i]>=K:
    a+=1


N, K = map(int, input().split())
h = list(map(int, input().split()))
a=0
for i in range(N):
  if h[i]>=K:
    a+=1
print(a)

Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int, input().split())
h = list(map(int, input().split()))
h.sort()
for index, x in enumerate(h):
  if x == k:
    print(n - index + 1)
    break

N, K = map(int, input().split())
h = [int(x) for x in input().split()]
a = 0
for i in h:
  if i > K:
    a += 1
print(a)

N, K = map(int, input().split())
h = [int(x) for x in input().split()]
a = 0
for i in h:
  if i >= K:
    a += 1
print(a)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k = map(int,input().split())
h = list(map(int,inpu().split()))
c = 0

for i in range(n):
    if h[i] >= k:
        c += 1

print(c)

n,k = map(int,input().split())
h = list(map(int,input().split()))
c = 0

for i in range(n):
    if h[i] >= k:
        c += 1

print(c)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
in1 = input()
in2 = input()

N,K = in1.split()

#h_list = in2.split()

h_list = list(map(int, input().split()))

num=0
for h in h_list:
        if h >= K:
                num+=1

print(num)

N, K = map(int, input().split())


#h_list = in2.split()

h_list = list(map(int, input().split()))

num=0
for h in h_list:
        if h >= K:
                num+=1

print(num)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N, K = map(int, input().split())
h = list(map(int, input().split()))
print (len([1 for x in h if h >= K]))

N, K = map(int, input().split())
h = list(map(int, input().split()))

L = [1 for i in range(N) if h[i] >= K]
print (len(L))

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int, input().split())
h = list(map(int,input().split()))
oppai = 0
for i in range n:
  if h[i] >= k:
    oppai += 1
print(oppai)
    

n, k = map(int, input().split())
h = list(map(int,input().split()))
oppai = 0
for i in range (n):
  if h[i] >= k:
    oppai += 1
print(oppai)
    


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
a,b=map(int,input().split())
list_a=list(map(int,input().split()))
list_b=x for x in list_a if x>=b
print(len(list_b))

a,b=map(int,input().split())
list_a=list(map(int,input().split()))
list_b=[x for x in list_a if x>=b]
print(len(list_b))

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k=map(int,input().split())
h=list(int,input().split())
ans=n
for i in h:
    if i<k:
        ans-=1
print(ans)


n,k=map(int,input().split())
h=list(map(int,input().split()))
ans=n
for i in h:
    if i<k:
        ans-=1
print(ans)


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k = map(int,input().split())
l = [list(map(int,input().split()))]
count=0
for i in l:
  if i >= k:
    count+=1
    
print(count)

n,k = map(int,input().split())
l = list(map(int,input().split()))
count=0

for i in l:
  if i >= k:
    count+=1
    
print(count)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k =  map(int,input().split())
h = list(map(int,input().split()))

count =	0
for ii in range(n):
    if h[ii] >=	k:
	count += 1

print(count)

n,k =  map(int,input().split())
h = list(map(int,input().split()))

count = 0
for ii in range(n):
    if h[ii] >= k:
        count += 1

print(count)


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N, K = map(int, input().split())
total = 0
for i in range(N):
  h = int(input())
  if h >= K:
    total += 1
    
print(total)

N, K = map(int, input().split())
h = list(map(int, input().split()))

total = 0
for height in h:
  if height >= K:
    total += 1
    
print(total)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k=[int(x) for x in input().split()]
h = [int(y) for y in input().split()]
leng=len(h)
counter=0
print(leng)
for i in range(1,leng+1):

    if h[i-1]>=k:
        counter+=1
print(counter)

n,k=[int(x) for x in input().split()]
h = [int(y) for y in input().split()]
leng=len(h)
counter=0
print(leng)
for i in range(1,leng+1):

    if h[i-1]>=k:
        counter+=1
print(counter)

n,k=[int(x) for x in input().split()]
h = [int(y) for y in input().split()]
leng=len(h)
counter=0
for i in range(1,leng+1):

    if h[i-1]>=k:
        counter+=1
print(counter)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N, K = map(int,input().split())
b = input().split()

print(N)
print(K)
print(b)

passengers = 0

for i in b:
  if int(i) >= K:
    passengers += 1

print(passengers)

N, K = map(int,input().split())
b = input().split()

print(N)
print(K)
print(b)

passengers = 0

for i in b:
  if int(i) >= K:
    passengers += 1

print(passengers)

N, K = map(int,input().split())
t = input().split()

passengers = 0

for i in t:
  if int(i) >= K:
    passengers += 1

print(passengers)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k=map(int,input().split())
h=list(map(int,input().split()))
ans=0
for i in h:
    if h>=k:
        ans+=1
print(ans)

n,k=map(int,input().split())
h=list(map(int,input().split()))
ans=0
for i in h:
    if i>=k:
        ans+=1
print(ans)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int, input().split())
h = list(map(int, input().split()))
print(len(filter(lambda x: x >= k, h)))


n, k = map(int, input().split())
h = list(map(int, input().split()))
print(len(list(filter(lambda x: x >= k, h))))

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N, K = map(int,input().split())
H = input().split()
H_i = [int(h) for h in H]

print(sum(h>K for h in H_i)

N, K = map(int,input().split())
H = input().split()
H_i = [int(h) for h in H]
print(sum(h>K for h in H_i))


N, K = map(int,input().split())
H = input().split()
H_i = [int(h) for h in H]

print(sum(h>=K for h in H_i))


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k = map(int,input().split())
H = list(map(int,input().split()))
cnt = 0
H.sort(reverse=True))
for h in H :
    if h >=k:
        cnt+=1
print(cnt)


n,k = map(int,input().split())
H = list(map(int,input().split()))
cnt = 0
H.sort(reverse=True)
for h in H :
    if h >=k:
        cnt+=1
print(cnt)


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N, K = map(int, input().split())
li = []
for i in range(N):
  li.append(int(input())

member = [ n for n in li if e >= K]
print(len(member))


N, K = map(int, input().split())
li = []
for i in range(N):
  li.append(int(input())

member = [ x for j in li if x >= K]
print(len(member))


N, K, *H = map(int, open(0).read().split())
count = 0
for i in range(N):
  if i >= K:
    count += 1
print(count)


N, K = map(int, input().split())
li = []
for i in range(N):
  li.append(int(input())

member = [ n for n in li if e >= K]
print(len(member))

N, K, *H = map(int, input().split())
count = 0
for i in range(H):
  if i >= K:
    count += 1
print(count)


N, K, *H = map(int, open(0).read().split())
print(sum([1 for i in range(N) if i >=K]))

N, K = list(map(int, input().split()))
li = []
for i in range(N):
  if i >= K:
    li.append(i)
  else:
    pass
print(len(li))

N, K = map(int, input().split())
H = map(int, input().split())
count = 0
for i in range(H):
  if i >= K:
    count += 1
print(count)


N, K, *H = map(int, open(0).read().split())
li = [i for i in H if i >= K]
print(len(li))

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N=int(input())
K=int(input())
h=list(map(int,input().split()))
for i in range(N):
    if h[i]>=K:
        ans+=1
print(ans)


N,K=map(int,input().split())
h=list(map(int,input().split()))
ans=0
for i in range(N):
    if h[i]>=K:
        ans+=1
print(ans)


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int, input().split())
hs = input().split()
num = 0
for i in range(len(n)):
  if int(hs[i]) >= k:
    num += 1
print(num)

n,k  = map(int, input().split())
his = list(map(int, input().split()))
j = 0
for i in range(n):
  if his[i] >= k:
    j += 1
print(j)


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
d, e = map(int, input().strip().split())
g = list(map(int, input().strip().split()))
print(d, e)
#print(g)
#total = 0
for i in g:
    if i >= e:
        total += 1
print(total)

d, e = map(int, input().strip().split())
g = list(map(int, input().strip().split()))
#print(d, e)
#print(g)
total = 0
for i in g:
    if i >= e:
        total += 1
print(total)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
result = 0

for h in heights:
    if h >= K:
        result += 1
print(result)

N, K = map(int, input().split())
heights = list(map(int, input().split()))

result = 0

for h in heights:
    if h >= K:
        result += 1
print(result)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n = list(map(int, input().split()))
h = list(map(int, input().split()))
c = 0
for i in range(n[0]):
  if h[i] => n[1]:
    c += 1
    
print(c)

n = list(map(int, input().split()))
h = list(map(int, input().split()))
c = 0
for i in range(n[1]):
  if h[i] >= n[0]:
    c += 1
    
print(c)

n = list(map(int, input().split()))
h = list(map(int, input().split()))
c = 0
for i in range(n[0]):
  if h[i] >= n[1]:
    c += 1
    
print(c)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
a,b = map(int, input().split())
l = list(map(int, input().split()))
ans = 0
for i in range(a):
  if b >= l[i]:
    ans += 1
print(ans)

a,b = map(int, input().split())
l = list(map(int, input().split()))
ans = 0
for i in range(a):
  if b <= l[i]:
    ans += 1
print(ans)


Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, K = map(int,input().split())
h =[int(_) for _ in input().split()]

res = 0
for i in range(n):
  if h[i] >= k:
    res += 1
print(res)

n, k = map(int,input().split())
h =[int(_) for _ in input().split()]
 
res = 0
for i in range(n):
  if h[i] >= k:
    res += 1
print(res)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N, K = map(int, input().split())
lis = list(map(int, input().split()))
count = 0
for i in range(1, N + 1):
    if lis[i] >= K:
        count += 1
print(count) 

N, K = map(int, input().split())
lis = list(map(int, input().split()))
count = 0
for i in range(1, N + 1):
    if lis[i] >= K:
        count += 1
print(count) 

N, K = map(int, input().split())
lis = list(map(int, input().split()), N)
count = 0
for i in range(N):
    if lis[i] >= K:
        count += 1
print(count) 

N, K = map(int, input().split())
lis = list(map(int, input().split()))
count = 0
for i in range(N):
    if lis[i] >= K:
        count += 1
print(count) 

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int, input().split())
h_1 h_2 h_3 ... h_n
h = list(map(int, inpnt().split())) 
h_refined = [ i for i if i >=  k]
print(len(h_refined))

n, k = map(int, input().split())
h = list(map(int, input().split())) 
h_refined = [ i for i in h if i >=  k]
print(len(h_refined))

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,m=int(input().split())
l=list(map(int,input().split()))
c=0
for i in l:
  if i>=m:
    c+=1
print(c)    
    


n,m=list(map(int,input().split()))
l=list(map(int,input().split()))
c=0
for i in l:
  if i>=m:
    c+=1
print(c)    
    


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
(N,K)=map(int,input().split())
v=list(map(int, input().split()))

z=0
for i in range(v):
    if i>=K:
         z=z+1

print(z)

(N,K)=map(int,input().split())
v=list(map(int, input().split()))

z=0
for i in v:
    if i>=K:
         z=z+1

print(z)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
s = input()
odds = [s[i] for i in range(len(s)) if i % 2 == 0]
evens = [s[i] for i in range(len(s)) if  i % 2 == 1]
if odds.count('L') > 0:
  print('No')
elif evens.count('R') > 0:
  print('No')
else:
  print('Yes')

n, k  = map(int, input().split())
s = list(map(int, input().split()))
ans = 0
for i in range(n):
  if(s[i] >= k):
    ans += 1   
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k = int(imput().split()) 
a = list(map(int,imput().split()))
b = 0
for c in a:
    if c>=k:
        b = b+1
print(b)


n,k = input().split() 
k = int(k)
a = list(map(int,input().split()))
b = 0
for c in a:
    if c>=k:
        b = b+1
print(b)


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k =(int(x) for x in input().split())
list = (int(x) for x in input().split())
p = 0
     
for i in range(0, n):
	if list[i] >= k:
		p = p + 1

print(p)

n,k =(int(x) for x in input().split())
list = (int(x) for x in input().split())
p = 0

for i in range(0, n)
	if list[i] >= k:
    	p = p + 1

print(p)

n,k =(int(x) for x in input().split())
list = input().split()
p = 0
list = [int(s) for s in list]
     
for i in range(0, n):
    if list[i] >= k:
        p = p + 1

print(p)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N = [int(i) for i in input().split()]
count = 0

print(N)

h = [int(i) for i in input().split()]
for i in range(N[0]):
    if h[i] >= N[1]: 
        count+=1
    
print(count)


N = [int(i) for i in input().split()]
count = 0

h = [int(i) for i in input().split()]
for i in range(N[0]):
    if h[i] >= N[1]: 
        count+=1
    
print(count)


Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N,K = list(map(int,input().split())).[:2]
height = list(map(int,input().split())).[:N]
able2ride = [a in height if a > K]
print(len(able2ride))

N,K = list(map(int,input().split()))[:2]
height = list(map(int,input().split()))[:N]
able2ride = [a for a in height if a >= K]
print(len(able2ride))

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):

N, K = [int(_) for _ in input().split()]
h = [int(_) for _ in input().split()]
print(len([i for i in h if 

# N = int(input())
N, K = [int(_) for _ in input().split()]
h = [int(_) for _ in input().split()]
print(len([i for i in h if i >= K]))



Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int, input().split())
h = list(int(input()).split())
tmp = 0

for i in range(n):

    if h[i] >= k:
        tmp += 1

print(tmp)

n, k = map(int, input().split())
h = list(map(int, input().split()))
tmp = 0

for i in range(n):

    if h[i] >= k:
        tmp += 1

print(tmp)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N = int(input())
K = int(input())
h = list(map(int, input().split()))


count = 0
for i in h:
    if i >= K:
        count += 1

print(count)


N, K = list(map(int, input().split()))
h = list(map(int, input().split()))


count = 0
for i in h:
    if i >= K:
        count += 1

print(count)


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N,K = list(map(int,input().split())
h = list(map(int,input().split()))
ans = 0
for i in range(N):
  if h[i] >= K:
    ans += 1
print(ans)

import sys
import math
import numpy as np
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

N,K = I()
h = l()
h.sort()
print(N-bisect.bisect_left(h,K))

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n=int(input())
k =int(input()) 
count=0
for i in range(n):
  x=int(input())
  if x>=k:
    count=count+1
print(count)

n,k = [int(x) for x in input().split()] 
count=0
for i in range(n):
  x=int(input())
  if x>=k:
    count=count+1
print(count)

n,k = [int(x) for x in input().split()]
cnt=0
list  = input().split()
for num in list:
    if int(num)>=k: cnt=cnt+1
print(cnt)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = list(map(int, input().split()))
h = list(map(int, input().split()))

print(sum([x>=k for x in h])


n, k = list(map(int, input().split()))
h = list(map(int, input().split()))

print(sum(x >= k for x in h))


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int, input().split())
h = list(map(int, input().split()))
num = 0
for i in range(n):
    if h[i] > k:
        num += 1
print(num)

n, k = map(int, input().split())
h = list(map(int, input().split()))
num = 0
for i in range(n):
    if h[i] >= k:
        num += 1
print(num)

Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
a,b=map(int,input().split())
height=list(map(int,input().split()))
count=0
for i in range (a):
  	 if int(height[i])>=b:
      	count+=count
print(str(count))

a,b=map(int,input().split())
height=list(map(int,input().split()))
count=0
for i in range (a):
  	 if int(height[i])>=b:
      	count+=1
print(str(count))

a,b=map(int,input().split())
height=list(map(int,input().split()))
count=0
for i in range (a):
  	 if int(height[i])>=b:
      	count+=1
print(count)

a,b=map(int,input().split())
height=list(input())
count=0
for i in range (a):
  	 if height[i]>=b:
      	count+=count
print(str(count))

a,b=map(int,input().split())
height=list(map(int,input().split()))
count=0
for i in range (a):
  	 if int(height[i])>=b:
  	 	count+=1
print(str(count))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k = map(int,input().spilit())
h = list(map(int,input().split()))
ans = 0
for a in h:
  if a>=k:
    ans += 1
print(ans)

n,k = map(int,input().split())
h = list(map(int,input().split()))
ans = 0
for a in h:
  if a>=k:
    ans += 1
print(ans)


Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
N ,K = map(int, input().split())
ans=0
for i in range(N):
  if int(input())>=K:
    ans+=1
print(ans)
    

N ,K = map(int, input().split())
ans=0
for i in range(N):
  h=int(input())
  if h>=K:
    ans+=1
print(ans)
    


N ,K = map(int, input().split())
ans=0
h=list(map(int, input().split()))
for i in range(N):
  if h[i]>=K:
    ans+=1
print(ans)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
# -*- coding: UTF-8 -*-

N, K = input().split()
height_list = input().split()
count = sum([1 for h in height_list if h>K])
print('{}'.format(count))


# -*- coding: utf-8 -*-

N, K = map(int, input().split())
h_list = list(map(int, input().split()))
count = sum(h>=K for h in h_list)
print('{}'.format(count))


Verdicts: Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
_,b = list(map(int, input()))
hoge = list(map(int,input()))

count = 0
for i in hoge:
  if i >= b:
    count += 1
    
print(count)

_,a = list(map(int,input().split()))
hoge = list(map(int,input().split()))
count = 0
for i in hoge:
  if i >= a:
    count += 1
print(count)

Verdicts: Runtime Error

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n, k = map(int,input().split())
H = sorted(list(map(int, input().split())))
cnt = 0
for i in range(n):
    if H[i] >= k:
        cnt += 1
    else:
        break
print(cnt)

n, k = map(int,input().split())
H = sorted(list(map(int, input().split())), reverse=True)
cnt = 0
for i in range(n):
    print(H[i])
    if H[i] >= k:
        cnt += 1
    elif H[i] < k:
        break
print(cnt)

n, k = map(int,input().split())
H = sorted(list(map(int, input().split())), reverse=True)
cnt = 0
for i in range(n):
    if H[i] >= k:
        cnt += 1
    elif H[i] < k:
        break
print(cnt)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N friends of Takahashi has come to a theme park.  To ride the most popular roller coaster in the park, you must be at least K centimeters tall.  The i-th friend is h_i centimeters tall.  How many of the Takahashi's friends can ride the roller coaster?

Submission attempts (in order):
n,k = map(int,input().split())
l = list(map(int,input().split()))
print(sum(list(filter(lambda x:x>=k,l))))

n,k = map(int,input().split())
l = list(map(int,input().split()))
print(sum(map(lambda x: x>=k,l)))  

Verdicts: Wrong Answer

Accepted