Problem:


Score : 100 points

Problem Statement

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.

Constraints

0 \leq X, A \leq 9

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X A

Output

If X is less than A, print 0; if X is not less than A, print 10.

Sample Input 1

3 5

Sample Output 1

0

3 is less than 5, so we should print 0.

Sample Input 2

7 5

Sample Output 2

10

7 is not less than 5, so we should print 10.

Sample Input 3

6 6

Sample Output 3

10

6 is not less than 6, so we should print 10.



Sample input:
3 5


Sample output:
0

Submission status: Runtime Error

Solution code:
N = int(input())
return 0 if N[0] < N[1] else 10

Submission status: Runtime Error

Solution code:
return (0 if  X < A else 10)

Submission status: Runtime Error

Solution code:
0 if X < A else 10

Submission status: Runtime Error

Solution code:
X, A = map(int, input().split())

if X<A:
  return 0
else:
  return10

Submission status: Runtime Error

Solution code:
if X<A:
  return 0
else:
  return10

Submission status: Runtime Error

Solution code:
N,X = [int(x) for x in input().split()] # N と　X
list_2 = [int(x) for x in input().split()]
 
sum_list = []
for i in list_2:
    if sum(sum_list) < X:
      sum_list.append(i)
    elif sum(sum_list) == X:
      print(len(sum_list) + 1)
      break
    elif sum(sum_list) > X:
      print(len(sum_list))
      break
if sum(sum_list) < X:
    print(N + 1)

Submission status: Runtime Error

Solution code:
list_1 = [int(x) for x in il_1.split(' ')] # N と　X
list_2 = [int(x) for x in il_2.split(' ')]
 
sum_list = []
for i in list_2:
    if sum(sum_list) < list_1[1]:
      sum_list.append(i)
    elif sum(sum_list) == list_1[1]:
      print(len(sum_list) + 1)
      break
    elif sum(sum_list) > list_1[1]:
      print(len(sum_list))
      break
if sum(sum_list) < list_1[1]
    print(list_1[0] + 1)

Submission status: Runtime Error

Solution code:
num = input()
if num[0] < num[2]:
print('0')
else:
print('10')

Submission status: Runtime Error

Solution code:
import sys

argv=sys.argv

#print(argv)

x=int(argv[1])
a=int(argv[2])

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

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
S = list(map(int, input().split()))
T = list(map(int, input().split()))
dp = [1] * (M+1)
dpleft = [0] * (M)
MOD = 10 ** 9 + 7
ndp = [1] * (M+1)
for n in range(N):
    for m in range(M):
        if S[n] == T[m]:
            ndp[m+1] = ndp[m] + dp[m+1]
            dpleft[m] = dp[m+1]
        else:
            ndp[m+1] = ndp[m] + dpleft[m]
        dp[m] = ndp[m]
    dp[M] = ndp[M]
print(dp[-1] % MOD)

Submission status: Runtime Error

Solution code:
# 累積和

N, M = map(int, input().split())
S = list(map(int, input().split()))
T = list(map(int, input().split()))

dp = [1] * (M+1)
dpleft = [0] * (M)
MOD = 10 ** 9 + 7

for n in range(N):
    ndp = [1]
    for m in range(M):
        if S[n] == T[m]:
            ndp.append(ndp[-1] + dp[m+1])
            dpleft[m] = dp[m+1]
        else:
            ndp.append(ndp[-1] + dpleft[m])
    dp = ndp
print(dp[-1] % MOD)

Submission status: Runtime Error

Solution code:
bound = 0
length = 0

n, x = input().split()
l = input().split()

for i in range(int(n)):
  if length <= int(x):
    length += int(l[i])
    bound += 1
  else:
    break

print(bound)

Submission status: Runtime Error

Solution code:
N, K = map(int,input().split())
a = list(map(int,input().split()))

total = 0
ans = 0
r = 0

for l in range(N):
    while total < K:

        if r >= N:
            break

        else:
            total += a[r]
            r += 1

    if total < K:
        break

    ans += N-r+1
    total -= a[l]

print(ans)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
H, W, x, y = map(int, input().strip().split())
S = H*W/2
div = 1 if 2*x==W and 2*y==H else 0
print(S, div)

Submission status: Runtime Error

Solution code:
input_line = input()
l = input().split(' ')
l = [int(x) for x in l]

if l[0] < l[1]:
    print(0)
else:
    print(10)

Submission status: Runtime Error

Solution code:
input_line = input()
l = input().split(' ')
l = [int(x) for x in l]

if l[0] < l[1]:
  print(0)
else:
  print(10)

Submission status: Runtime Error

Solution code:
input_line = input()
l = input().split(' ')
l = [int(x) for x in l]

if l[0] < i[1]:
  print(0)
else:
  print(10)

Submission status: Runtime Error

Solution code:
x1 = list(map(int,input().rstrip().split(" ")))
x2 = list(map(int,input().rstrip().split(" ")))

def makey(x1,x2):
  total = 0
  for i in range(x1[0]):
    total += x2[i]
    if total > x1[1]:
      return i
    return x1[0]

y = makey(x1,x2)
print(y+1)

Submission status: Runtime Error

Solution code:
x1 = list(map(int,input().rstrip().split(" ")))
x2 = list(map(int,input().rstrip().split(" ")))

def makey(x1,x2):
  total = 0
  for i in range(x1[0]):
    total += x2[i]
    if total > x1[1]:
      return i
    return i
y = makey(x1,x2)
print(y+1)

Submission status: Runtime Error

Solution code:
import re
import numpy as np
 
N, K = [int(i) for i in re.split(" ", input())]
A = [int(i) for i in re.split(" ", input())]
count = 0
 
for i in range(N):
  tmp = 0
  for j, a in enumerate(A[i:]):
    tmp += a
    if tmp <= K:
      count += N - j
      break

print(count)

Submission status: Runtime Error

Solution code:
import re
import numpy as np
 
W, H, x, y = [int(i) for i  in re.split(" ", input())]
 
print(W * H / 2)
 
if x * 2 == W and y * 2 == H:
  print(1)
else:
  print(0)

Submission status: Runtime Error

Solution code:
X=int(input("X:"))

A=int(input("A:"))
if 0<=X and X<= 9 and 0<=A and A<=9:

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
W,H,x,y = [int(i) for i in input().split()]
flag=0
if W==x*2 and H==y*2:
    flag=1



print(W*H/2,flag)

Submission status: Runtime Error

Solution code:
a=[int(i) for i in input().split()]
ans=1
if a[2]==0 or a[3]==0 or a[2]==a[0] or a[3]==a[1]:
  ans=0
print(a[0]*a[1]/2,ans)

Submission status: Runtime Error

Solution code:
W,H,x,y = [int(i) for i in input().split()]
flag=0
if W==x+x & H==y+y:
    flag=1



print(float(W*H/2),flag)

Submission status: Runtime Error

Solution code:
W, H, x, y = map(int, input().split())

# 面積は必ず二等分可能
# 面積を二等分する直線は長方形の中心を通る
ans = '{} {}'.format(
    W * H / 2,
    1 if x == W / 2 and y == H / 2 else
    0
)

# 出力
print(ans)

Submission status: Runtime Error

Solution code:
x = input()
y = input()
x = int(x)
y = int(y)

if x >= y:
    print(10)
else:
    print(0)

Submission status: Runtime Error

Solution code:
x = input()
y = input()

if x >= y:
    print(10)
else:
    print(0)

Submission status: Runtime Error

Solution code:
from itertools import accumulate 
N,K=map(int,input().split())
a=[int(i) for i in input().split()]
b=list(reversed(a))
b_sum=list(accumulate(b))
num=0
for i in range(len(b_sum)):
    if b_sum[i]<K:
        num+=1

ans=0
for i in range(N-num):
    b=a[i:]
    c=list(accumulate(b))
    c.reverse()
    for j in range(len(c)):
        if c[j]>=K:
            ans+=1
        else:
            break

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

x = sys.argv[1]
a = sys.argv[2]

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

Submission status: Runtime Error

Solution code:
import numpy as np

N, K = map(int, input().split(" "))
a = list(map(int, input().split(" ")))
a.insert(0, 0)
a_sum = np.tile(np.cumsum(np.array(a, dtype=np.int64)), (N+1, 1))
print(np.count_nonzero(a_sum - a_sum.T >= K))

Submission status: Runtime Error

Solution code:
List = list(map(int,inport().split()))
if List[0] >= List[1]:
  print(10)
else:
  print(0)

Submission status: Runtime Error

Solution code:
List = list(map(int,inport().split()))
if List[0] >= List[1]:
  print('10')
else:
  print('0')

Submission status: Runtime Error

Solution code:
N, X = map(int, input().split())
L = list(map(int, input().split()))

bound = [0]
for i in range(N):
    bound += [L[i] + bound[-1]]
    #print(bound)

#print(bound)

counter = 0
for i in bound:
    if i <= X:
        counter += 1
    else:
        break
print(counter)

Submission status: Runtime Error

Solution code:
N,K=map(int,input().split())
A=list(map(int,input().split()))
S=0
r=0
ans=0
for i in range(N):
    while S<K:
        if r>=N:
            break
        S+=A[r]
        r+=1
    if S>=K:
        ans+=N-r+1
        S-=A[i]
print(ans)

Submission status: Runtime Error

Solution code:
nk = input().split(' ')
n = int(nk[0])
k = int(nk[1])
a = input().split(' ')
count = 0
sum = 0
for i in range(n):
#  print(i)
  sum = int(a[i])
  j = i+1
  if k<=sum :
    count = count + 1
  while j<n:
    sum = sum + int(a[j])
  #  print("sum:{} j:{} a[j]:{}".format(sum,j,a[j]))
    if k<=sum :
      count = count + 1
  #    print("sum:{} count:{}".format(sum,count))
    j += 1

print("{}".format(count))

Submission status: Runtime Error

Solution code:
# 配列数 要素のわ
N, K = map(int, input().split())
number_list = list(map(int, input().split()))

cnt = 0
for i in range(N):
    memo = 0
    for ii in range(i, N):
        memo += number_list[ii]
        if memo >= K:
            cnt += (N - ii)
            break
print(cnt)

Submission status: Runtime Error

Solution code:
# 配列数 要素のわ
N, K = map(int, input().split())
number_list = list(map(int, input().split()))

cnt = 0
for i in range(N):
    memo = 0
    for ii in range(i, N):
        memo += number_list[ii]
        if memo >= K:
            cnt += 1
print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
parseInt(x) = parse(Int,x)

parseMap(x::Array{SubString{String},1}) = map(parseInt, x)

function main()
    X, A = readline() |> split |> parseMap
    if X<A
        println(0)
    else
        println(10)
    end
end

main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
W,H,x,y= map(int,input().split())
big_square = W * H
square_1 = x * H
square_12 = big_square - square_1
if square_1 <= square_12:
  s = square_1
elif square_1> square_12:
  s = square_12

square_2 = W * y
square_22 = big_square - square_2
if square_2 <= square_22:
  t = square_2
elif square_2> square_22:
  t = square_22

if s<=t:
  big = t
else:
  big = s


  
if W == x *2 and H == y *2:
  way = 1
else:
  way = 0
  

print(big,way)

Submission status: Runtime Error

Solution code:
#coding:utf-8

import sys

N,X = map(int,input().split())
L = list(map(int,input().split()))

D = 0 #ジャンプする座標

for i in range(N):
    D += L[i]
    if D > X:
        print(i+1)
        sys.exit()

print(N+1)

Submission status: Runtime Error

Solution code:
N,X = map(int,input().split(" "))
l_list = input().split()

count = 1
d = 0
for i in range(N):
        da = d + int(l_list[i])
        d = da
        if da <= X:
                count +=1
        else:
                print(count)
                break

Submission status: Runtime Error

Solution code:
d_list = [0]
N,X = input().split(" ")
l_list = input().split(" ")

for i in range(int(len(l_list))):
    num = int(d_list[i]) + int(l_list[i])
    d_list.append(num)
    

for i in range(int(len(d_list)-1)):
    if d_list[i]<=int(X)< d_list[i+1]:
        print(i+1)

    elif int(X)>d_list[-1]:
            print(int(d_list))

Submission status: Runtime Error

Solution code:
x, a = [int(n) for n in input().split()]
return 0 if x < a else 10

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X = int(input())
A = int(input())

if X<A:
    print('0')

else:
    print('10')

Submission status: Runtime Error

Solution code:
#-*- coding: utf-8 -*-
N,X = map(int,input().split())
li = list(map(int,input().split()))
d = 0
count = 1
for i in range(len(li)):
  d += li[i]
  if d <= x:
    count += 1
  else:
    break
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if(2*x == w and 2*y ==h) :
    ff = 1
else :
    ff = 0

print(str(w * h / 2) + " " + str(ff))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
lists = []
lists = input.split(" ")
if int(lists[0])<int(lists[1]):
  print(0)
else:
  print(10)

Submission status: Runtime Error

Solution code:
lists = []
lsits = input.split(" ")
if lists[0]<lists[1]:
  print(0)
else:
  print(10)

Submission status: Runtime Error

Solution code:
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

Submission status: Runtime Error

Solution code:
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

Submission status: Runtime Error

Solution code:
x=input()
a=input()

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

Submission status: Runtime Error

Solution code:
a,b,c,d =map(int,raw_input().split())

if c == a/2 and d == b/2:
    print a*b*.5, 1
else:
    print a*b*.5, 0

Submission status: Runtime Error

Solution code:
a,b,c,d =map(int,raw_input().split())

if c == a/2 and d == b/2:
    print a*b/2, 1
else:
    print a*b/2, 0

Submission status: Runtime Error

Solution code:
a,b,c,d =map(int,raw_input().split())

if c == a/2 and d == b/2:
    print a*b/2,1
else:
    print a*b/2,0

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,X = map(int,input().split())
L = list(map(int,input().split()))	

D=0
c=1

for i in range(N):
    D=D+L[i]
    if D<=X:
        c=c+1
    else: break

print(c)

Submission status: Runtime Error

Solution code:
from itertools import accumulate
import bisect
# -*- coding: utf-8 -*-
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline

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

A_acc = [0]+list(accumulate(A))
ans = 0
# スタート位置を固定して、にぶたん
for l in range(N):
    tmp_acc = [v-A_acc[l] for v in A_acc]
    right = bisect.bisect_left(tmp_acc, K)
    ans += max(N-right+1, 0)

print(ans)

Submission status: Runtime Error

Solution code:
import numpy as np
X = input()
A = input()
if X<A:
  print('0')
  
else:
  print('10')

Submission status: Runtime Error

Solution code:
def main():
  N = int(input())
  x = []
  y = []
  d = []
  for i in range(N):
  	x.append(int(input()))
  for i in range(N):
  	y.append(int(input()))
  for i in range(N):
  	x.append(input())
  low = 0
  high = 10**16
  i = 0
  if d[x.index(max(x))] == "L" and d[x.index(min(x))] == "R":
    if d[y.index(max(y))] == "D" and d[y.index(min(y))] == "U":
      d = max(x)-min(x)+max(y)-min(y)
      while(1):
        if d-4*int(d/4) > 2*math.sqrt(m):
          high = high/2
        if d-4*int(d/4) < 2*math.sqrt(m):
          low = high/2
        i++
        if i == 100:
          break
  print(low)

Submission status: Runtime Error

Solution code:
list=[]
>>> for i in range(N):
...     list.append(int(input()))




def main():
  N = int(input())
  x = []
  y = []
  d = []
  for i in range(N):
  	x.append(int(input()))
  for i in range(N):
  	y.append(int(input()))
  for i in range(N):
  	x.append(input())
  low = 0
  high = 10**16
  i = 0
  if d[x.index(max(x))] == "L" and d[x.index(min(x))] == "R":
    if d[y.index(max(y))] == "D" and d[y.index(min(y))] == "U":
      d = max(x)-min(x)+max(y)-min(y)
      while(1):
        if d-4*int(d/4) > 2*math.sqrt(m):
          high = high/2
        if d-4*int(d/4) < 2*math.sqrt(m):
          low = high/2
        i++
        if i == 100:
          break
  print(low)

Submission status: Runtime Error

Solution code:
x, a = map(int,rfile.readline().split())
if x<a:
    print(0)
    else:
    print(10)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X,A = map(int,imput().split())
if X <A:
  print("0")
else:
  print("10")

Submission status: Runtime Error

Solution code:
X,A = map(int,imput().split())
if X <A:
  print("0")
else:
  print("10"

Submission status: Runtime Error

Solution code:
W, H, x, y = map(int, input().split())

multi = 0

if x / W == y / H:
    multi = 1
    S = W * H / 2
else:
    X1 = x
    X2 = (W - x)
    Y1 = y
    Y2 = (H - y)

    X = min(X1, X2)
    Y = min(Y1, Y2)

    S = min(X * H, Y * W)
    multi = 0 #int(x == 0 or x == W or y == 0 or y == H)

print(S, multi)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
X,A = input(), input()
if X < A :
  print(0)
else:
  print(10)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<stdio.h>

int judge(int a, int b)
{
    if(a < b)
    {
        return 0;
    }
    else if(a >= b)
    {
        return 10;
    }
    else
    {
        return 2;
    }
}

int main()
{
    int a, b;
    scanf("%i %i", &a, &b);
    int re = judge(a, b);
    printf("%i\n", re);
}

Submission status: Runtime Error

Solution code:
#include<stdio.h>

int judge(int a, int b)
{
    if(a < b)
    {
        return 0;
    }
    else if(a >= b)
    {
        return 10;
    }
    return 0;
}

int main()
{
    int a, b;
    scanf("%i %i", &a, &b);
    int re = judge(a, b);
    printf("%i\n", re);
}

Submission status: Runtime Error

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

hx = h * x
hx2 = h * (w-x)
wy = w * y
wy2 = w * (h-y)

if(hx > hx2) :
    d1 = hx2
else :
    d1 = hx

if(wy > wy2) :
    d2 = wy2
else :
    d2 = wy


if(d1 == d2) :
    ff = 0
else :
    ff = 0

if(d1 > d2) :
    print(str(d1) + " " + str(ff))
else :
    print(str(d2) + " " + str(ff))

Submission status: Runtime Error

Solution code:
x= input()
a = input()
if x<a:
    print(1)
else:
    print(10)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, X = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
ans = 0
for i in A:
  ans += i
  if ans <= X:
    cnt += 1    
print(cnt)

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
def main():
    Q = 10**9+7
    N, M = map( int, input().split())
    S = list( map( int, input().split()))
    T = list( map( int, input().split()))
    dp = [ [0]*(M+1) for _ in range(N+1)]
    memo = [ [0]*(M+1) for _ in range(N+1)]
    for i in range(N):
        for j in range(M):
            if S[i] == T[j]:
                dp[i+1][j+1] = (dp[i+1][j] + dp[i][j+1]+1)%Q
            else:
                dp[i+1][j+1] = (dp[i+1][j] + dp[i][j+1] - dp[i][j])%Q
    print(dp[N][M]+1)
if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
s = [int(i) for i in input().split()]
left = 0
right = len(s)
count = 0
while not(right == len(s) and left == len(s)):
    if sum(s[left:right])>k:
        count += 1
    if sum(s[left:right])>k:
        right += -1
    else:
        right = len(s)
        left += 1
print(count)

Submission status: Runtime Error

Solution code:
x,a = map(int,input().split())
print(min(10,(x//a)*10))

Submission status: Runtime Error

Solution code:
a,b,c,d,e,f=[],[],[],[],[],[]
INF=10**9
for i in range(int(input())):
    s,t,u=map(str,input().split())
    if u=="R":
        a.append(int(s))
        e.append(int(t))
    elif u=="L":
        c.append(int(s))
        e.append(int(t))
    elif u=="U":
        d.append(int(t))
        b.append(int(s))
    else:
        f.append(int(t))
        b.append(int(s))
l=10**8+1
r=0
a1,a2=max(a+[-INF]),min(a+[INF])
b1,b2=max(b+[-INF]),min(b+[INF])
c1,c2=max(c+[-INF]),min(c+[INF])
d1,d2=max(d+[-INF]),min(d+[INF])
e1,e2=max(e+[-INF]),min(e+[INF])
f1,f2=max(f+[-INF]),min(f+[INF])
p,q=10,1
while l-r>10**-8:
    x2=(l*2+r)/3
    x1=(l+r*2)/3
    s1,s2=max(a1+x2,b1,c1-x2),min(a2+x2,b2,c2-x2)
    t1,t2=max(d1+x2,e1,f1-x2),min(d2+x2,e2,f2-x2)
    u1,u2=max(a1+x1,b1,c1-x1),min(a2+x1,b2,c2-x1)
    v1,v2=max(d1+x1,e1,f1-x1),min(d2+x1,e2,f2-x1)
    p,q=(s1-s2)*(t1-t2),(u1-u2)*(v1-v2)
    if (s1-s2)*(t1-t2)<=(u1-u2)*(v1-v2):
        r=x1
    else:
        l=x2
print(p)

Submission status: Runtime Error

Solution code:
n, k = list(map(int, input().split()))
a = list(map(int,input().split()))

s = 0
j = 0
ans = 0
for i in range(n):
  while(s < k):
    if j == n:
      break
    else:
      s += a[j]
      j += 1
  if s < k:
    break
  ans += n-j+1
  s -= a[i]
print(ans)

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
using namespace std;

int main(){
    int x, a;
    cin >> x >> a;
    if (x < a) cout << 0 << endl;
    else cout << 10 << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np
a=[[[],[],[]],[[],[],[]]]
for i in range(int(input())):
    s,t,u=map(str,input().split())
    if u=="R":
        a[0][0].append(int(s))
        a[1][1].append(int(t))
    elif u=="L":
        a[0][2].append(int(s))
        a[1][1].append(int(t))
    elif u=="U":
        a[1][0].append(int(t))
        a[0][1].append(int(s))
    else:
        a[1][2].append(int(t))
        a[0][1].append(int(s))
for i in range(3):
    a[0][i]=[min(a[0][i]+[INF]),max(a[0][i]+[-INF])]
    a[1][i]=[min(a[1][i]+[INF]),max(a[1][i]+[-INF])]
l=10**8+1
r=0
while l-r>5*(10**-6:
    x2=(l*2+r)/3
    x1=(l+r*2)/3
    h=max(a[0][0][1]+x2,a[0][1]+x2,a[0][
    i=
    j=
    k=
    s=
    t=
    u=
    v=
    print(s,t,u,v)
    if (max(s)-min(s))*(max(t)-min(t))<=(max(u)-min(u))*(max(v)-min(v)):
        r=x1
    else:
        l=x2
print((max(s)-min(s))*(max(t)-min(t)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,K= map(int,input().split())
List=list(map(int,input().split()))
c = 0
for i in range(N):
    A = List[i]
    for k in range(l,N-i):
        if A >= K:
            c += N-i-k
            l = k
            break
        if k != N-i-1:
            A=A +List[k+i+1]
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
lst = list(int, input().split())

if (lst[0] < lst[1]):
  print(0)
else:
  print(10)

Submission status: Runtime Error

Solution code:
N,X=(int(i) for i in input().split())
L=[int(i) for i in input().split()]
for i in range(1,N+1):
  if sum(L[:i])>X:
    print(i)
    break

Submission status: Runtime Error

Solution code:
N,X=(int(i) for i in input().split())
L=[int(i) for i in input().split()]
for i in range(1,N+1):
    if sum(L[:i])>X:
        print(i)
        break

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
n,k = map(int,input().split())
aList = input().split()
aList = [int(i) for i in aList]
cn=0

for i in range(len(aList)):
  for j in range(len(aList[i:])):
    jj = len(aList)-j
    if(i==jj):
       break
    if(sum(aList[i:jj]) >= k):
      cn+=1
    else:
      break;
print(cn)

Submission status: Runtime Error

Solution code:
if input() < input():
  print(0)
else :
  print(1)