TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

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

cnt = 0
def main():
  for i in range(N):
      for j in range(i + 1, N + 1):
          s = sum(a[i:j])
          if s >= K:
              cnt += N - ( j - 1 )
              break
  print(cnt)

if __name__ == "__main__":
  main()

X, A = map(int, input().split())
if X < A:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a=map(int,input().split())
if x<a:
  print('0')
  else:
    print('10')

x,a=map(int,input().split())
if x<a:
  print('0')
else:
  print('10')


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x, a = map(int, input().split())

if a < x:
  ans = 0
else:
  ans = 10
  
print(ans)

x, a = map(int, input().split())

if x < a:
  ans = 0
else:
  ans = 10
  
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

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

print(count)

X, A = map(int, input().split())
if X >= A:
    print(10)
else:
    print(0)


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X, A = input().split()
print(X < A * 10)

X, A =[int(i) for i in  input().split()]
print((X < A) * 10)

import time
time.sleep(3)
print(0)

X, A =[int(i) for i in  input().split()]
print((X >= A) * 10)

Verdicts: Wrong Answer

Wrong Answer

Time Limit Exceeded

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X, A = map(int, input().split)

if X < A:
    print('{}'.format('0'))
else:
    print('{}'.format('10'))

X, A = map(int, input().split())

if X < A:
    print('{}'.format('0'))
else:
    print('{}'.format('10'))

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

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

D=[0]*(N)

D[0]=0
count=1
for i in range(1,N):
  D[i]=D[i-1]+L[i-1]
  if D[i]<=X:
    count+=1
  else:
    break
print(count)


X,A=map(int,input().split())
if X < A:
  print('0')
else:
  print('10')

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x, a = map(int, input())
if x>=a:
  print(10)
else :
  print(0)

x, a = map(int, input().split())
if x>=a:
  print(10)
else :
  print(0)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
w,h,x,y=map(int,input().split())
if w%2==0 and h%2==0:
    print(x*h,1) 
elif w%2==0:
    print(x*h,0)
elif h%2==0:
    print(y*w,0)
elif w%2!=0 and h%2!=0:
    print(w*h/2,0)

w,h,x,y=map(int,input().split())
if w%x==0 and h%y==0:
    print(x*h) 
    print(1)
elif w%x==0:
    print(x*h)
    print(0)
elif w%x!=0:
    print(y*w)
    print(0)
else:
    print(w*h/2)
    print(0)

x,a=map(int,input().split())
print(0 if x<a else 10)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
print(0 if eval(input().replace(" ","-")) > 0 else 10)

print(((eval(input().replace(" ","-"))) >= 0)*10)

Verdicts: Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.buffer.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

print(10 if ri() >= ri() else 0)
















import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.buffer.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7
a, b = rm()
print(10 if a >= b else 0)
















Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X,A=map(int(input().split()))
if X<A:
    print(0)
else:
    print(10)

X,A=map(int,input().split())
if X<A:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x, a = int(input().split())
if x < a:
  print(0)
else:
  print(10)

x, a = list(map(int, input().split()))
if x < a:
  print(0)
else:
  print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X, A = map(int, input.split());
if X < A:
  print(0);
else:
  print(10);

X, A = map(int, input().split());
if X < A:
    print(0);
else:
    print(10);


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a = [int(i) for i in input().split()]

if x < a:
    print(0)
else:
    

x,a = [int(i) for i in input().split()]

if x < a:
    print(0)
else:
    print(10)


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
a,b=map(int,input(),split())
if a<b:
    print("0")
else:
    print("10")

a,b=map(int,input().split())
if a<b:
    print("0")
else:
    print("10")

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
a, b = map(int, input().split())
if a[0] < b[1] :
  print (0)
else:
  print (10)

inp = map(int, input().split())
if (inp[0] < inp[1]) :
  print 0
else:
  print 10

inp = map(int, input().split())
if inp[0] < inp[1] :
  print (0)
else:
  print (10)

a, b = map(int, input().split())
if a < b :
  print (0)
else:
  print (10)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X, A = map(int, input().split())

if X<A:
  return 0
else:
  return10

if X<A:
  return 0
else:
  return10

def a(X,A):
  if X<A:
    return 0
  else:
    return10

X, A = map(int, input().split())
 
if X<A:
  print(0)
else:
  print(10)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
import itertools
N, M = [int(_) for _ in input().split()]
S = [int(_) for _ in input().split()]
T = [int(_) for _ in input().split()]
mod = 10**9 + 7
dp = [[1] * (M + 1)] + [[1] + [0] * M for _ in range(N)]
for n, m in itertools.product(range(N), range(M)):
    dp[n + 1][m + 1] = dp[n][m + 1] + dp[n + 1][m] - dp[n][m]
    if S[n] == T[m]:
        dp[n + 1][m + 1] += dp[n][m]
    dp[n + 1][m + 1] %= mod
print(dp[-1][-1])


X, A = [int(_) for _ in input().split()]
if X < A:
    print(0)
else:
    print(10)


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x, a = int(input())
 
if x >= a:
  print(10)
elif x < a:
  print(0)
else:
  pass

x, a = input()

if x >= a:
  print(10)
elif x < a:
  print(0)
else:
  pass

x, a = map(int,input().split())

if x >= a:
  print(10)
elif x < a:
  print(0)
else:
  pass

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
a, b = map(int, input().split())
if x < a:
  print(0)
else:
  print(10)

a, b = map(int, input().split())
if b < a:
  print(0)
else:
  print(10)


a, b = map(int, input().split())
if a < b:
  print(0)
else:
  print(10)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X,A = int(a) for a in input().split()
if X<A:
    print("0")
else:
    print("10")

X, A = (int(a) for a in input().split())
if X < A:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x, a = int(input())
if x < a:
     print("0")
else:
     print("10")

x, a = map(int,input().split())
if x < a:
     print("0")
else:
     print("10")

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
a, b = map(int, input().split())
if a=>b:
  print('10')
else:
  print('0')

a,b=int(input().split)
if a=>b:
  print('10')
else:
  print('0')

a, b = map(int, input().split())
if a >= b:
  print('10')
else:
  print('0')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a = map(int,input())
if x<a:
  print(0)
else:
  print(10)

x,a = map(int,input().split())
if x<a:
  print(0)
else:
  print(10)


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
import sys
N,X=[int(x) for x in input().split(' ')]
arr=[int(x) for x in input().split(' ')]
temp=0
for x in range(N):
  if arr[x]+temp>X:
    print(x+1)
    sys.exit(1)
  else:
    temp+=arr[x]
print(N+1)

x,a=[int(X) for x in input().split(' ')]
if x<a:
  print(0)
else:
  print(10)

x,a=[int(x) for x in input().split(' ')]
if x<a:
  print(0)
else:
  print(10)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
A,X = map(int,input().split())
if X<A:
  print(0)
if X>=A:
  print(10)

W,H,x,y = map(int,input().split())
if x==0 or x==W or y==0 or y==H:
  s = H*W/2
  print('{:.10f}'.format(s))
else:
  a = min(x*H,(W-x)*H)
  b = min(y*W,(H-y)*W)
  s = max(a,b)
  print('{:.10f}'.format(s))
if x==0 and y==0:
  print(0)
elif x==W and y==0:
  print(0)
elif x==0 and y==H:
  print(0)
elif x==W and y==H:
  print(0)
elif y == H*x/W or y == (-1)*H*x/W:
  print(1)
else:
  print(0)

W,H,x,y = map(int,input().split())
if x==0 or x==W or y==0 or y==H:
  s = H*W/2
  print('{:.10f}'.format(s))
else:
  a = min(x*H,(W-x)*H)
  b = min(y*W,(H-y)*W)
  s = max(a,b)
  print('{:.10f}'.format(s))
if y == H*x/W:
  print(1)
else:
  print(0)

A,X = map(int,imput().split())
if X<A:
  print(0)
if x>=A:
  print(10)

X,A = map(int,input().split())
if X<A:
  print(0)
if X>=A:
  print(10)

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
a,b = map(int, input().sprit())
if a < b:
  print(0)
else:
  print(10)

a,b = map(int, input().split())
if a < b:
  print(0)
else:
  print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
a, x = map(int, input().split())
o = 0 if x<a else 10
print(o)

x, a = map(int, input().split())
o = 0 if x<a else 10
print(o)


Verdicts: Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X, A = int(input().split(''))
if X < A:
    print(0)
else:
    print(10)


X, A = map(int, input())
if X < A:
    print(0)
else:
    print(10)


X, A = map(int, input().split())
if X < A:
    print(0)
else:
    print(10)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X,A=map(int,input().split())
print(10*(A=<X))


X,A=map(int,input().split())
print(10*(A<=X))

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
n, x = (int(i) for i in input().split())  
l = list(int(_) for _ in input().split()) 
distance=0
_count=1
for i in range(0, n+1):
    distance += l[i]
    if distance<=x:
        _count += 1
    else:
        break
print(_count)

x, a = (int(i) for i in input().split())  
if x<a:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
ans = 0 if x < a else 10
print(ans)

ans = 0 if x < a else 10
print(ans)

X,A = map(int, input().split())

print(0 if X < A else  10)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X, A = [int(xa) for xa input().split()]
if X < A:
  print(0)
else:
  print(10)

X, A = [int(xa) for xa in input().split()]
if X < A:
  print(0)
else:
  print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
w,h,x,y = list(map(int,input().split()))
ans = 0
if x == 0 and y == 0:
    print(h * w /2 , 0)
elif x == 0:
    print(h * w /2,0)
elif y == 0:
    print(h * w / 2, 0)
else:
    if x == w /2 and y == h / 2:
        print(h * w /2,1)
    else:
         
        print(h * w /2,0)


x ,a = list(map(int,input().split()))

if x < a:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x, a = map(int, input())
print(10 if x - a >= 0 else 0)

x, a = map(int, input().split())
print(10 if x - a >= 0 else 0)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
s = list(input())
count = 0
for i in range(len(s)-1):
    if s[i] == s[i+1]:
        count += 1

if count > 0:
    print('Bad')
else:
    print('Good')

x,a = map(int,input().split())

if x < a:
    print(0)
else:
    print(10)

Verdicts: Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a=map(int,input().split())
if x<a:
  print(10)
else:
  print(0)

x,a=map(int,input().split())
if x<a:
  print(0)
else:
  print(10)


Verdicts: Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
n, x = map(int, input().split())
l = list(map(int, input().split()))
d = 0
for i in range(n):
    if d <= x:
        d += l[i]
    else:
        break
print(i)

x, a = map(int, input().split())
if x < a :
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X=list(map(int,input().split()))[1]
L=list(map(int,input().split()))
i=0
d=0
while True:
    if d>=X:
        break
    else:
        d+= L[i]
        i+= 1
print(i+1)

N = list(map(int,input().split()))
if N[0]< N[1]:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a=int(input().split())
if x>=a:print(10)
else:print(1)

x,a=map(int,input().split())
if x>=a:print(10)
else:print(1)

x,a=map(int,input().split())
if x>=a:print(10)
else:print(0)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X,A = (int(x) for x in input().split())

if x < A:
  print(0)
else:
  print(10)

X,A = (int(x) for x in input().split())
 
if X < A:
  print(0)
else:
  print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):

X, A = map(int, input.()split())

if X < A:
  print(0)
else:
  print(10)

X, A = map(int, input().split())

if X < A:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X,A = [int(x) for x in input().split()]
print(10 if x >= A else 0)

X,A = [int(x) for x in input().split()]
print(10 if X >= A else 0)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a=map(int,input().split())
if x>a
 print("0")
else x<=a
 print("10")

x,a=map(int,input().split())
print(0 if x<a else 10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a=(int(i) for i in input().split())
print((if(x>=a))*10)

x,a=(int(i) for i in input().split())
t=if(x>=a)
print(t*10)

x,a=(int(i) for i in input().split())
if x>=a:
  print(10)
else:
  print(0)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):

def input_from_console():
    a, x = map(int, input().split())

    return a, x


def solve(a, x):
    result = 0
    if x >= a:
        result = 10
    return result


def main():
    a, x = input_from_console()
    print(solve(a, x))


if __name__ == "__main__":
    import sys

    if sys.gettrace():  # Check if the python interpreter is in debug mode or not.
        check_cases()
    else:
        main()

def input_from_console():
    x,a = map(int, input().split())

    return x,a


def solve(x,a):
    result = 0
    if x >= a:
        result = 10
    return result


def main():
    x,a = input_from_console()
    print(solve(x,a))


if __name__ == "__main__":
    import sys

    if sys.gettrace():  # Check if the python interpreter is in debug mode or not.
        check_cases()
    else:
        main()


Verdicts: Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
w, h, x, y = map(int, input().split())

s = w * h / 2
if (x * 2 == w) and (y * 2 == h):
    print(s, 1)
else:
    print(s, 0)

w, h, x, y = map(int, input().split())

s = w * h / 2
if (x * 2 == w) and (y * 2 == h):
    print(s, 1)
else:
    print(s, 0)

w, h, x, y = map(int, input().split())

s = w * h / 2
if (int(w / x) == 2) and (int(h / y) == 2):
    print(s, 1)
else:
    print(s, 0)

x, a = map(int, input().split())

if x < a:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
W, H, x, y = map(int, input().split())
if (x == W and y == H) or (x == 0 and y == 0) or (x == W and y == 0) or (x == 0 and y == H):
    print(W*H, 0)
else:
    
    A = min((H-y)*W, y*W)
 
    
    B = min((W-x)*H, x*H)
 
    
    
    if A == B:
        print(A, 1)
    else:
        print(max(A, B), 0)

X, A = map(int, input().split())
if X < A:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
# coding: utf-8
# Your code here!

W,H,x,y =  list(map(float,input().split()))


if(W%x==0 and H%y==0):
    print (W*H/2,1)

else:
    print (W*H/2,0)


# coding: utf-8
# Your code here!

X,A =  list(map(int,input().split()))

if X<A:
    print(0)
    
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a = map(int,input().split())
    if x < a:
        print(0)
    else : 
        print(10)

x,a = map(int,input().split())
if x < a:
  print(0)
  else : 
    print(10)

x,a = map(int,input().split())
if x < a:
  print(0)
else : 
  print(10)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
import itertools
from collections import deque,defaultdict,Counter
from itertools import accumulate
import bisect
from heapq import heappop,heappush,heapify
from fractions import gcd
from copy import deepcopy
import math
import queue
import numpy as np

Mod = 1000000007
import sys
sys.setrecursionlimit(1000000) 
  
def sieve_of_eratosthenes(n):
    if not isinstance(n,int):
        raise TypeError("n is not int")
    if n<2:
        raise ValueError("n is not effective")
    prime = [1]*(n+1)
    for i in range(2,int(math.sqrt(n))+1):
        if prime[i] == 1:
            for j in range(2*i,n+1):
                if j%i == 0:
                    prime[j] = 0
    res = []
    for i in range(2,n+1):
        if prime[i] == 1:
            res.append(i)
    return res

def factorial(i):
    if i == 1:
        return 1
    else:
        return i*factorial(i-1)
 
class UnionFind:
    def __init__(self,n):
        self.parent = [i for i in range(n+1)]
        self.rank = [0 for i in range(n+1)]
    
    def findroot(self,x):
        if x == self.parent[x]:
            return x
        else:
            y = self.parent[x]
            y = self.findroot(self.parent[x])
            return y
    
    def union(self,x,y):
        px = self.findroot(x)
        py = self.findroot(y)
        if px < py:
            self.parent[py] = px
        else:
            self.parent[px] = py
 
    def same_group_or_no(self,x,y):
        return self.findroot(x) == self.findroot(y)




def main(): #startline--------------------------------------------
    n,m = map(int,input().split())
    s = list(map(int,input().split()))
    t = list(map(int,input().split()))
    dp = [[0]*(m+2) for i in range(n+2)]
    sdp = [[0]*(m+2) for i in range(n+2)]
    dp[0][0] = 1
    sdp[1][1] = 1
    for i in range(n+1):
        for j in range(m+1):
            if i == 0 and j == 0:continue
            if i>=1 and j >= 1 and s[i-1] == t[j-1]:
                dp[i][j] = sdp[i][j]%Mod
            sdp[i+1][j+1] = (sdp[i+1][j] + sdp[i][j+1] - sdp[i][j] + dp[i][j])%Mod

    print(sdp[n+1][m+1]%Mod)

if __name__ == "__main__":
    main() 
    

    

X,A = map(int,input().split())
print(0 if X < A else 10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a = map(int,input.split())
if x < a:
    print("0")
else:
    print("10")

x,a = map(int,input().split())
if x < a:
    print("0")
else:
    print("10")

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X, A = (int(x) for x in input().split())

if A < X:                                                                                                                                                                                                   
    print(0)                                                                                                                                                                                                
else:                                                                                                                                                                                                       
    print(10)


X, A = (int(x) for x in input().split())

if X < A:                                                                                                                                                                                                   
    print(0)                                                                                                                                                                                                
else:                                                                                                                                                                                                       
    print(10)


Verdicts: Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a=int(input())
if x<a:
  print(0)
else:
  print(10)

X,A=map(int,input().split())
if X>=A:
  print(10)
elif X<A:
  print(0)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x=int(input())
a=int(input())
if x<a:
  print(0)
else:
  print(10)

x,a=map(int,input().split())
if x<a:
  print(0)
else:
  print(10)
  

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X, A = map(int,input.sprit())


if X > A:
  print("10")
  else:
    print("0")


X, A = map(int,input().split())


if X < A:
    print("0")
else:
    print("10")


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
a=list(map(int,input().split()))
if a[1]<a[0]:
  	print(0)
else:
  	print(10)

x,a=(int(i) for i in input().split())
if x<a:
	print(0)
else:
  	print(10)

Verdicts: Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
N,X=map(int, input().split()) 
L=list(map(int, input().split())) 
D = 0
for i in range(N+1):
  D = D + L[i]
  if D > X:
    print(i+1)
    break


N,X=map(int, input().split()) 
L=list(map(int, input().split())) 
D = 0
for i in range(N):
  D = D + L[i]
  print(L[i])
  if D > X:
    print(i+1)
    break
  if D == X:
    print(i+2)
    break


X,A=map(int, input().split()) 

if X < A:
  print(10)
else:
  print(0)

X,A=map(int, input().split()) 

if X < A:
  print(0)
else:
  print(10)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x ,y = int(i) for i in input().split()
if x < y:
  print(0)
else:
  print(10)
	

n , k = [int(i) for i in input().split()]
if n < k:
	print('0')
else:
	print('10')

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a = map(int,input().split())
    if x < a:
        print(0)
    else : 
        print(10)

x,a = map(int,input().split())
if x < a:
  print(0)
  else : 
    print(10)

x,a = map(int,input().split())
if x < a:
  print(0)
else : 
  print(10)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x ,a =  map(int, input().split())
if x < a:
	print(0)
elif:
	print(10)

x ,a =  map(int, input().split())
if x < a:
	print(0)
else:
	print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
a,b = list(map(int, input()split()))
if a>=b:
  print(10)
else:
  print(0)

a,b = list(map(int, input()split()))
if a>=b:
  print(19)
else:
  print(0)

a,b = list(map(int, input().split()))
if a>=b:
  print(10)
else:
  print(0)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
#ABC130 B

N,X = map(int,input().split())
L = list(map(int,input().split()))
D = [0,L[0]]
count = 0
for i in range(2,N+2):
    D.append(D[i-1]+L[i-2])
for i in range(0,N+2):
    if D[i]<= X:
        count += 1

print(count)

#ABC130 A

X,A = map(int,input().split())
if X < A:
    print(0)
else:
    print(10)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
l = list(map(int, input().split()))
print(min(sum((l+[l[0]])[i:i+2]) for i in range(3)))

n, x = map(int, input().split())
l = list(map(int, input().split()))
print(1+sum(i <= x for i in [sum(l[0:i]) for i in range(n)]))

n, x = map(int, input().split())
l = list(map(int, input().split()))
print(1+sum(i <= x for i in [sum(l[0:i+1]) for i in range(n)]))

X, A = map(int, input().split())
print([10, 0][X < A])

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x, a = list(input())
print('100'[x >= a::2])


x, a = map(int, input().split())
print('100'[x >= a::2])


x, a = list(input())
print('100'[if x >= a::2])

x, a = map(int, input().split())
print(int('100'[x >= a::2]))


x, a = map(int, input().split())
print(int('100'[x < a::2]))


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x=int(input())
a=int(input())

if x<a:
  print(0)
else:
  print(10)

x,a=int(input().split())

if x<a:
  print(0)
else:
  print(10)


a=int(input())
x=int(input())
if x<10:
  print(0)
else:
  print(10)

x,a=map(int,input().split())

if x<a:
  print(0)
else:
  print(10)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a=map(int, input.split())
print('10' if x>=a else '0')

x,a=map(int, input.split())
print(10 if x>=a else 0)

x,a=map(int, input().split())
print('10' if x>=a else '0')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X = input()
A = input()

x = int(X)
a = int(A)

if x < a:
    print(0)

elif a > x:
    print(10)

X = input()
A = input()

x = int(X)
a = int(A)

if x < a:
    print(0)

elif a <= x:
    print(10)

# coding: utf-8

X = input()
A = input()

x = int(X)
a = int(A)

if x < a:
    print(0)

elif a <= x:
    print(10)

X = input()
A = input()

if X < A:
    print(0)

elif A <= X:
    print(10)


X = input()
A = input()

x = int(X)
a = int(A)

if x < a:
    print(0)

elif a <= x:
    print(10)

l = map(int, raw_input().split())

x = int(l[0])
a = int(l[1])

if x < a:
    print(0)

elif a <= x:
    print(10)


x = int(X)
a = int(A)

if x < a:
    print(0)

elif a <= x:
    print(10)

X = input()
A = input()

x = int(X)
a = int(A)

if x < a:
    print(0)

elif a >= x:
    print(10)

if X < A:
    print(0)

elif A <= X:
    print(10)

else:
    pass

X = input()
A = input()

x = int(X)
a = int(A)

if x < a:
    print(0)

else :
    print(10)

c = input()
l = c.split()

x = int(l[0])
a = int(l[1])

if x < a:
    print(0)

elif a <= x:
    print(10)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
import numpy as np

k = 0


def calc(a):
    return np.sum(a) >= k


def main():
    global k
    n, k = map(int, input().split())
    a = np.array(list(map(int, input().split())))
    answer = 0
    list_pattern = []
    for i1 in range(n):
        for i2 in range(len(a)):
            list_pattern.append(a[i1:i2 + 1])

            # if a[i1:i2 + 1].sum() >= k:
            #     answer += 1
    list_answer = map(calc, list_pattern)
    print(sum(list_answer))


if __name__ == "__main__":
    main()


if __name__ == '__main__':
    x, a = map(int, input().split())
    if x < a:
        print(0)
    else:
        print(10)


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
W, H, x, y = map(int, input().split())

s = W * H
if x == 0:
    a = W * y
    b = W * (H - y)
    p = 1 if a == b else 0
elif y == 0:
    a = H * x
    b = H * (W - x)
elif W % x == 0 and H % y == 0:
    a = b = W * H // 2
else:
    a = W * y
    b = H * x

p = 1 if a == b else 0
print("{0} {1}".format(min(a, b), p))


X, A = map(int, input().split())
if X >= A:
    print(10)
else:
    print(0)

Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
# A Rounding
x, a = map(int, input())
if x < a:
    print(0)
else:
    print(1o)


x, a = map(int, input())
if x < a:
    print(0)
else:
    print(10)


# A Rounding

x, a = map(int, input().split())
if x < a:
    print(0)
else:
    print(10)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a = map(int,input().split())
if a > x:
    print(10)
else:
    print(0)

x,a = map(int,input().split())
if a > x:
    print('10')
else:
    print('0')

x,a = map(int,input().split())
if a > x:
    print(0)
else:
    print(10)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
x,a=map(int,input())

if x < a:
    print(0)
else:
    print(10)


x,a=map(int,input().split())

if x < a:
    print(0)
else:
    print(10)


Verdicts: Runtime Error

Accepted
Problem: X and A are integers between 0 and 9 (inclusive).  If X is less than A, print 0; if X is not less than A, print 10.

Submission attempts (in order):
X,A=input().split()
if x>=A:
  print(10)
else:
  print(0)
 

X,A=input().split()
if int(X)>=int(A):
  print(10)
else:
  print(0)

Verdicts: Runtime Error

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
N, val= list(map(int,input().split()))
list = list(map(int,input().split()))
d=0
l=[]
for i in list:
  ans=d+i
  l.append(ans)
count=0
for num in l:
  if num<=val:
    count=count+1
print(count)

N, val= list(map(int,input().split()))
list = list(map(int,input().split()))
d=0
l=[]
for i in list:
  d=d+i
  l.append(d)
count=0
for num in l:
  if num<=val:
    count=count+1
print(count+1)

Verdicts: Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

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


cnt=0

ans=1

for i in range(n):
  cnt += i
  if cnt <= x:
    ans += 1
  else:
    break
print(ans)

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


cnt=0

ans=1

for i in l:
  cnt += i
  if cnt <= x:
    ans += 1
  else:
    break
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
n , x = map(int,input().split())
L =list(map(int,input().split()))
ans = 1
D = [0]*(n+1)
for i in range(2,n+2):
    D[i] = D[i-1] + L[i-2]
    if D[i] <=x:
        ans+=1
print(ans)

n , x = map(int,input().split())
L =list(map(int,input().split()))
ans = 1
D = [0]*(n+2)
for i in range(2,n+2):
    D[i] = D[i-1] + L[i-2]
    if D[i] <=x:
        ans+=1
print(ans)

Verdicts: Runtime Error

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
N,X = map(int,input().split())
l = list(map(int,input().split()))
print(l)
d = preD = 0
i = 0
for i in range(N):
    d = preD + l[i]
    preD = d
    print(i+1,d)
    if d == X:
        print(i+2)
        break
    elif d > X:
        print(i+1)
        break
else:
    print(N+1)

N,X = map(int,input().split())
l = list(map(int,input().split()))
#print(l)
d = preD = 0
i = 0
for i in range(N):
    d = preD + l[i]
    preD = d
    #print(i+1,d)
    if d == X:
        print(i+2)
        break
    elif d > X:
        print(i+1)
        break
else:
    print(N+1)

Verdicts: Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
N , X = map(int,input().split())
L = list(input())
cnt = 1
b = 0
lst = list()
for i in range(N + 1):
    if int(len(L) / 2) + 1 > i   :
        lst.append(int(L[i*2]))
    else :
        break
for j in range (N + 1):
    print(b)
    b += lst[j]
    cnt += 1
    if b+lst[j+1] > X :
        break
    if cnt == N:
        break
print(cnt)


N , X = map(int,input().split())
L = list(input())
cnt = 1
x = 0
lst = list()
for i in range(N):
    if int(len(L) / 2) + 1 > i   :
        lst.append(int(L[i*2]))
    else :
        break
print(lst)
for j in range (N):
    x += lst[j]
    cnt += 1

    if x+lst[j+1] > X :
        break
    if cnt >= N:
        break
print(cnt)


N , X = map(int,input().split())
L = list(input())
cnt = 1
x = 0
lst = list()
for i in range(N):
    if int(len(L) / 2) + 1 > i   :
        lst.append(int(L[i*2]))
    else :
        break
print(lst)
for j in range (N):
    x += lst[j]
    cnt += 1

    if x+lst[j+1] > X :
        break
    if cnt >= N:
        break
print(cnt)


N , X = map(int,input().split())
L = list(input())
cnt = 1
x = 0
lst = list()
for i in range(N):
    if int(len(L) / 2) + 1 > i   :
        x + = (int(L[i*2]))
        cnt += 1
    else :
        break
    if x+lst[i+1] > X :
        break
    if cnt >= N:
        break
print(cnt)


N , X = map(int,input().split())
L=list(map(int,input().split()))
b = 0
cnt = 1
for i in range(N):
    b += L[i]
    if b <= X   :
        cnt+=1
    else:
        break
print(cnt)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
n,x=input().split()
L = list(input().split())
d = 0
i = 0
while d <= int(x) and i<int(n):
    d+=int(L[i])
    i+=1
if d > x:
    print(i)
else:
    print(i+1)


a, b = map(int, input().split())
l = list(map(int, input().split()[:a]))
res = 1
d = 0
res= [0]
for item in l:
    res.append(d + item)
    d += item
filtered_res = list(filter(lambda x: x <= b, res))
print(len(filtered_res))

Verdicts: Runtime Error

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
n, x = map(int, input().split())
L = [int(x) for x in input().split()]

D = [0]*(n+1)
for i in range(n):
    D[i+1] = D[i]+L[i]
    if D[i+1] > x:
        print(i+1)
        break
print(n+1)

n, x = map(int, input().split())
L = [int(x) for x in input().split()]

D = [0]*(n+1)
for i in range(n):
    D[i+1] = D[i]+L[i]
    if D[i+1] > x:
        print(i+1)
        break
    if i == n-1:
        print(n+1)

Verdicts: Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
n,x = map(int,input().split())
l = [int(i) for i in input().split()]

d = 0
c = 1
for i in l:
	d = d + i
	if d>x:
		print(c)
		break
	else:
		c+=1
print(c)

n,x = map(int,input().split())
l = [int(i) for i in input().split()]

d = 0
c = 1
for i in l:
	d = d + i
	if d>x:
		print(c)
		exit()
	else:
		c+=1
print(c)

Verdicts: Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

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


n,disup=map(int,input().split())
A=list(map(int,input().split()))
dis=0
ans=1
for i in A:
  dis+=i
  if dis>disup:
    print(ans)
    exit()
  if dis==disup:
    print(ans+1)
    exit()
  ans+=1
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
N,X = map(int,input().split())
L = list(map(int,input().split()))
a = 0
b = 0
for val in L:
  if b<=X:
    a += 1
    b += val
  else:
    break
print(a-1)

N,X = map(int,input().split())
L = list(map(int,input().split()))
a = 0
b = 0
c = [0]
d = []
for val in L:
  a += 1
  b += val
  c.append(b)
for i in c:
  if i <= X:
    d.append(i)
print(len(d))

Verdicts: Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
n,x=map(int,input().split())
d=[0]*(n+1)
ans=0
for i in range(n):
  d[i+1]=d[i]+int(input())
for i in range(n):
  if d[i]<=x:
    ans+=1
print(ans)


n,x=map(int,input().split())
l=list(map(int,input().split()))
d=0
cnt=0
for i in range(n):
  cnt+=1
  if x<d:
    break
  d+=l[i]
print(cnt)

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


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

Submission attempts (in order):
# B - Bounding
N, X = map(int, input().split())
L = list(map(int, input().split()))
D = 0

for i, l in enumerate(L, 1):
    D += l
    if D > X:
        print(i)
        break
print(N+1)

# B - Bounding
N, X = map(int, input().split())
L = list(map(int, input().split()))
D = 0

for i, l in enumerate(L, 1):
    D += l
    if D > X:
        print(i)
        exit()
print(N+1)

Verdicts: Wrong Answer

Accepted
Problem: A ball will bounce along a number line, making N + 1 bounces. It will make the first bounce at coordinate D_1 = 0, and the i-th bounce (2 \leq i \leq N+1) at coordinate D_i = D_{i-1} + L_{i-1}.  How many times will the ball make a bounce where the coordinate is at most X?

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

d = 0
c = 1
for i in l:
    d += i
    if(c <= x):c += 1
    else:break
print(c)

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

d = 0
c = 1
for i in l:
    d += i
    if(d <= x):c += 1
    else:break
print(c)


Verdicts: Wrong Answer

Accepted