TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: There are N dots in a two-dimensional plane. The coordinates of the i-th dot are (x_i, y_i).  We will repeat the following operation as long as possible:    * Choose four integers a, b, c, d (a \neq c, b \neq d) such that there are dots at exactly three of the positions (a, b), (a, d), (c, b) and (c, d), and add a dot at the remaining position.  We can prove that we can only do this operation a finite number of times. Find the maximum number of times we can do the operation.

Submission attempts (in order):
from networkx import*
def main():
    g=Graph()
    for a in[*open(x:=0)][1:]:
        a,b=map(int,a.split())
        g.add_edge(a,7**6+b)
    for c in connected_components(g):
        s=g.subgraph(c)
        #a,b=map(len,bipartite.sets(s))
        #x+=a*b-len(s.edges)
    print(x)
main()

from networkx import*
def main():
    g=Graph()
    for a in[*open(x:=0)][1:]:
        a,b=map(int,a.split())
        g.add_edge(a,7**6+b)
    for c in connected_components(g):
        #a,b=map(len,bipartite.sets(s:=g.subgraph(c)))
        #x+=a*b-len(s.edges)
        None
    print(x)
main()


from networkx import*
def main():
    g=Graph()
    for a in[*open(x:=0)][1:]:
        a,b=map(int,a.split())
        g.add_edge(a,b+.5)
    for c in connected_components(g):
        s=g.subgraph(c)
        #a,b=map(len,bipartite.sets(s))
        x+=-s.size()
    print(x)
main()

class UnionFind():
    def __init__(self,size):
        self.table=[-1]*size
    def root(self,x):
        while self.table[x]>=0:
            x=self.table[x]
        return x
    def unite(self,x,y):
        s1=self.root(x)
        s2=self.root(y)
        if s1!=s2:
            if self.table[s1]>self.table[s2]:
                s1,s2=s2,s1
            self.table[s1]+=self.table[s2]
            self.table[s2]=s1
        return
    def same(self,x,y):
        return self.root(x)==self.root(y)
    def size(self,x):
        return -self.table[self.root(x)]
n,*z=map(int,open(0).read().split())
u=UnionFind(10**5*2+1)
for x,y in zip(*[iter(z)]*2):
    u.unite(x,10**5+y)
d=[[0,set(),set()]for _ in range(10**5*2+1)]
for x,y in zip(*[iter(z)]*2):
    t=d[u.root(x)]
    t[0]+=1
    t[1].add(x)
    t[2].add(y)
print(sum(len(x)*len(y)-a for a,x,y in d))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: There are N dots in a two-dimensional plane. The coordinates of the i-th dot are (x_i, y_i).  We will repeat the following operation as long as possible:    * Choose four integers a, b, c, d (a \neq c, b \neq d) such that there are dots at exactly three of the positions (a, b), (a, d), (c, b) and (c, d), and add a dot at the remaining position.  We can prove that we can only do this operation a finite number of times. Find the maximum number of times we can do the operation.

Submission attempts (in order):
def main():
    N = int(input())
    X, Y = {}, {}
    for _ in range(N):
        x, y = map(int, input().split())
        if x not in X:
            X[x] = set()
        X[x].add(y)
        if y not in Y:
            Y[y] = set()
        Y[y].add(x)
    processed = set()
    r = 0
    while X:
        x, ys = X.popitem()
        tx = set([x])
        ty = set()
        mx, my = set(), set(ys)
        while mx or my:
            while my:
                y = my.pop()
                mx |= Y.pop(y, set())
            tx |= mx
            while mx:
                x = mx.pop()
                my |= X.pop(x, set())
            ty |= my
        r += len(tx) * len(ty)
    return r - N

print(main())


def main():
    N = int(input())
    X, Y = {}, {}
    for _ in range(N):
        x, y = map(int, input().split())
        if x not in X:
            X[x] = set()
        X[x].add(y)
        if y not in Y:
            Y[y] = set()
        Y[y].add(x)
    r = 0
    while X:
        x, ys = X.popitem()
        tx = set([x])
        ty = set(ys)
        mx, my = set(), set(ys)
        while mx or my:
            while my:
                y = my.pop()
                mx |= Y.pop(y, set())
            tx |= mx
            while mx:
                x = mx.pop()
                my |= X.pop(x, set())
            ty |= my
        r += len(tx) * len(ty)
    return r - N

print(main())


Verdicts: Wrong Answer

Accepted
Problem: There are N dots in a two-dimensional plane. The coordinates of the i-th dot are (x_i, y_i).  We will repeat the following operation as long as possible:    * Choose four integers a, b, c, d (a \neq c, b \neq d) such that there are dots at exactly three of the positions (a, b), (a, d), (c, b) and (c, d), and add a dot at the remaining position.  We can prove that we can only do this operation a finite number of times. Find the maximum number of times we can do the operation.

Submission attempts (in order):
def main():
    # functions used
    r = lambda: sys.stdin.readline().strip()
    R = lambda: list(map(int, r().split()))

    N = int(r())
    Dic = defaultdict(list)
    V = 10**5 + 5
    Arrived = [False] * (2 * V)
    for _ in range(N):
        x, y = R()
        y += V
        Dic[x].append(y)
        Dic[y].append(x)

    ans = 0
    task = []
    for k, v in Dic.items():
        if Arrived[k]:
            continue
        Arrived[k] = True
        if k < V:
            cntx = 1
            cnty = 0
        else:
            cntx = 0
            cnty = 1
        cntdot = 0
        task.extend(v)
        cntdot += len(v)
        while task:
            s = task.pop()
            if Arrived[s]:
                continue
            if s < V:
                cntx += 1
            else:
                cnty += 1
            Arrived[s] = True
            task.extend(Dic[s])
            cntdot += len(Dic[s])
        ans += cntx * cnty - cntdot // 2
    print(ans)

if __name__ == '__main__':
    main()

def main():
    from collections import defaultdict
    import sys
    # functions used
    r = lambda: sys.stdin.readline().strip()
    R = lambda: list(map(int, r().split()))

    N = int(r())
    Dic = defaultdict(list)
    V = 10**5 + 5
    Arrived = [False] * (2 * V)
    for _ in range(N):
        x, y = R()
        y += V
        Dic[x].append(y)
        Dic[y].append(x)

    ans = 0
    task = []
    for k, v in Dic.items():
        if Arrived[k]:
            continue
        Arrived[k] = True
        if k < V:
            cntx = 1
            cnty = 0
        else:
            cntx = 0
            cnty = 1
        cntdot = 0
        task.extend(v)
        cntdot += len(v)
        while task:
            s = task.pop()
            if Arrived[s]:
                continue
            if s < V:
                cntx += 1
            else:
                cnty += 1
            Arrived[s] = True
            task.extend(Dic[s])
            cntdot += len(Dic[s])
        ans += cntx * cnty - cntdot // 2
    print(ans)

if __name__ == '__main__':
    main()

Verdicts: Runtime Error

Accepted
Problem: There are N dots in a two-dimensional plane. The coordinates of the i-th dot are (x_i, y_i).  We will repeat the following operation as long as possible:    * Choose four integers a, b, c, d (a \neq c, b \neq d) such that there are dots at exactly three of the positions (a, b), (a, d), (c, b) and (c, d), and add a dot at the remaining position.  We can prove that we can only do this operation a finite number of times. Find the maximum number of times we can do the operation.

Submission attempts (in order):
class UnionFind:
    def __init__(self, n):
        self.n = n
        self.parent = [None]*n

    def root(self, x):
        if self.parent[x] == None:
            return x
        else:
            return self.root(self.parent[x])

    def union(self, x, y):
        x0 = self.root(x)
        y0 = self.root(y)
        if x0 == y0:
            return
        if x0 > y0:
            x0, y0 = y0, x0
        self.parent[y0] = x0


n = int(input())
m = 10**5
uf = UnionFind(2*m)
X, Y = [], []
for i in range(n):
    x, y = map(int, input().split())
    X.append(x-1)
    Y.append(y-1+m)
    uf.union(x-1, y-1+m)
R = {}
for x, y in zip(X, Y):
    r = uf.root(x)
    try:
        R[r][0].add(x)
        R[r][1].add(y)
    except:
        R[r] = [{x}, {y}]
ans = 0
for r in R.keys():
    ans += len(R[r][0])*len(R[r][1])
print(R)
print(ans-n)


class UnionFind:
    def __init__(self, n):
        self.n = n
        self.parent = [None]*n

    def root(self, x):
        if self.parent[x] == None:
            return x
        else:
            return self.root(self.parent[x])

    def union(self, x, y):
        x0 = self.root(x)
        y0 = self.root(y)
        if x0 == y0:
            return
        if x0 > y0:
            x0, y0 = y0, x0
        self.parent[y0] = x0


n = int(input())
m = 10**5
uf = UnionFind(2*m)
X, Y = [], []
for i in range(n):
    x, y = map(int, input().split())
    X.append(x-1)
    Y.append(y-1+m)
    uf.union(x-1, y-1+m)
R = {}
for x, y in zip(X, Y):
    r = uf.root(x)
    try:
        R[r][0].add(x)
        R[r][1].add(y)
    except:
        R[r] = [{x}, {y}]
ans = 0
for r in R.keys():
    ans += len(R[r][0])*len(R[r][1])
print(ans-n)


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):
A,X=map(int,input().split())
if X<A:
  print('0')
else:
  print('10')

A,X=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 = [int(i) for i in input().split()]
if X > A:
  print(0)
else:
  print(10)

X, A = [int(i) for i in input().split()]
if X < A: 
    print(0)
elif X >= A:
    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())
print(0 if x >= a else 10)

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

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):
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])
  
    if k<=sum :
      count = count + 1
  #    print("sum:{} count:{}".format(sum,count))
    j += 1

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


xa = input().split(" ")
x = int(xa[0])
a = int(xa[1])

if x<a:
  print("0")
elif a<=x:
  print("10")
else:
  print("error")

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)
print(0 if X < A else 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 = map(int,input().split())
pritn(0 if x < a else 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 = map(int, input())

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: 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 = int(input())
A = int(input())

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


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

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")
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()
x = int(x)
a = int(a)
if x < a:
	print(0)
else:
	print(10)

x, a = input().split()
x = int(x)
a = int(a)
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):
n,x=map(int,input().split())
L = list(map(int,input().split()))
count=0
D=0
for i in range(n+1):
    if D>x:
        print(count)
        break
    else:
        D=D+L[i]     
        count+=1


n,x=map(int,input().split())
L = list(map(int,input().split()))
count=1
D=0
for i in range(n):
    if D>x:
        print(count)
        break
    else:
        D=D+L[i]     
        count+=1

n,a=map(int,input().split())
if n>=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):
x,a=map(int,input().split())
if x<a:
    print(a)
else:
    print(10)

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=input()
a=input()

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


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

if a>x:
    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):
N, X = map(int, input().split())
L = map(int, input().split())

x = 0
cnt = 0
for l in L:
    x += l
    if x > X:
        break
    else:
        cnt += 1

print(cnt+1)

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):
N,X = map(int,input().split())
li = list(map(int,input().split()))

point=0
count=1
for i in li:
  point += i
  if point<=X:
    count+=1
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().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):
W, H, x, y = map(int, input().split())
s = H*W/2

if x*2 == W and y*2 == H:
    print(s, 1)
else:
    print(s, 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):
N,X=input().split()
n=int(N)
x=int(X)
i=list(map(int,input().split()))
D=0
k=0
while D<=x:
  if k<=n+1:
    D=D+i[k]
    k=k+1
  else:
    k=n+1
print(k)

N,X=input().split()
n=int(N)
x=int(X)
i=list(map(int,input().split()))
D=0
k=0
while D<=x:
  while k<=n+1:
    D=D+i[k]
    k=k+1
print(k)

X,A=input().split()
x=int(X)
a=int(A)
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 sys
a, x = [int(d) for d in sys.stdin.readline().strip().split()]

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

import sys
x, a = [int(d) for d in sys.stdin.readline().strip().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())
difs = list(map(int, input().split()))
steps = [0]
for i in range(N):
    steps.append(steps[i] + difs[i])
for i in range(N+1):
    if steps[i] > X:
        print(i)
        break
    elif i == N:
        print(N+1)

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 s < 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):
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)

a, x = map(int, input().split())
if a<x:
    print(0)        
elif a>=x:
    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 -*-
from bisect import bisect_left


def main():
    N, K = map(int, input().split())
    *a, = map(int,input().split())
    sum_a = [0] * N
    sum_a[0] = a[0]
    for i in range(N - 1):
        sum_a[i + 1] = sum_a[i] + a[i + 1]

    ans = N - bisect_left(sum_a, K)

    for l in range(1, N):
        ans += N - bisect_left(sum_a, K + sum_a[l - 1])

    print(ans)




if __name__ == '__main__':
    main()

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


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



if __name__ == '__main__':
    main()

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())
print(0 if X < a else 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):
lst = list(int, input().split())

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

lst = list(map(int, input().split()))
 
if (lst[0] < lst[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):
n,x = (int(x) for x in input().split())
l=list(map(int,input().split()))
k=0
d=0

while d<=x:
   if len(l)<=k:
    break
   else:
    d=d+l[k]
    k=k+1
if d<x:
  print(k+1)
else:print(k)

a,b = (int(x) for x in 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):
xa = list(map(int, input().split()))

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


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

if xa[0] < xa[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):
a,b = map(int,input().split())

if a > b:
  print("0")
elif a <= b:
  print("10")

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

if a < b:
  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:
  return 10
else:
  return 0

X, A = map(int, input().split())
print(int(X >= A)*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):
if x < a:
	print(0)
if x >= a:
	print(10)

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: 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 main():
    while True:
        try:
            listA=list(input())
        except:
            break;

    if listA[0] > listA[1]:
        return(0)
    else:
        return(10)


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

if x < y:
    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):
d = list(map(int, d.split()))
if d[0] < d[1]:
  print(0)
else:
  print(10)

d = list(map(int, input().split()))
if d[0] < d[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):
w,h,x,y = map(int,input().split())


num = 0

if w%2 is 0 and h%2 is 0:
  if w//2 is x and h//2 is y:
  	num = 1
    num = 2/0
print(w*h/2,num)


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 = input()
y = input()
x = int(x)
y = int(y)

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

x = input()
y = input()

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

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

if x >= y:
    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):
import numpy as np

ina = input()
N = int(ina)
x_list = []
y_list = []
dx_list = []
dy_list = []
for i in range(N):
  x,y,d = input().split()
  x_list.append(float(x))
  y_list.append(float(y))
  if d == 'L':
  	dx_list.append(-1)
  	dy_list.append(0)
  elif d == 'R':
  	dx_list.append(1)
  	dy_list.append(0)
  elif d == 'D':
  	dy_list.append(-1)
  	dx_list.append(0)
  elif d == 'U':
  	dy_list.append(1)
  	dx_list.append(0)


x = np.array(x_list)
y = np.array(y_list)
dx = np.array(dx_list)
dy = np.array(dy_list)

min_obj = (max(x)-min(x)) * (max(y)-min(y))

t = 0
t_min = 0
for t in range(1, 10000):
  x = x + dx*0.1
  y = y + dy*0.1
  obj = (max(x)-min(x)) * (max(y)-min(y))
  if obj < min_obj:
    min_obj = obj
    t_min = t
  if t_min + 500 < t:
    break
print(min_obj)

ina = input()
inb = input()
N, K = ina.split()
N = int(N)
K = int(K)

a = inb.split()
a = [int(elem) for elem in a]

total = 0
for i in range(len(a)):
  for j in range(i+1, len(a)+1):
    if sum(a[i:j]) >= K:
      total += 1 + len(a)-j
      break
print(total)

ina = input()
ina = ina.split()
X = ina[0]
A = ina[1]
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):
N,X=map(int,input().split())
L=list(map(int,input().split()))
D=[]
D.append(0)
for i in range(1,N+1):
  D.append(D[i-1]+L[i-1])
s=0
for j in range(0,N+1):
  if D[j]<=X:
    s+=1
print(s)

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):
def Input():
    return mapt(int, input().split(" "))

def main():
    a, b = Input()
    print(0 if a < b else 10)

main()

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

main()


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 = int(input())

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

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(map(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):
N,X = map(int, input().split())
L = [x for x in map(int, input().split())]
accumL = [sum(L[:x]) <= X for x in range(len(L)+1)]
if accumL[-1] == True:
  print(N + 1)
else:
  print(accumL.index(False))

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):
inputa = list(map(int(), input()))
if inputa[0] < inputa[1]:
  print("0")
else:
  print("10")

inputa = list(map(int, input().split()))
if inputa[0] < inputa[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 = input();

if X<A:
  print(0);
elif X>=A:
  print(10);

X = int(input());
A = int(input());

if X<A:
  print(0);
elif X>=A:
  print(10);
 



x = int(input());
a = int(input());

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



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

if X<A:
  print(0);
elif X>=A:
  print(10);

X = input();
A = input();
 
if X<A:
  print(0);
elif X>=A:
  print(10);

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

Verdicts: 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):
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: 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,n = 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())
print(0 if x < a else 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):
n, x = map(int, input().split(" "))
l = list(map(int, input().split(" ")))
d = 0
a = 1
for i in range(n):
    d += l[i]
    if d > x:
        a += i
        break
print(a)


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


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 = map(int,input().split())
if A//X ==0:
  print(0)
else: print(10)

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

X, A = map(int,input().split())
print(int(X>=A)*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):
alfa=input().split()
N=int(alfa[0])
X=int(alfa[1])

L=input().split()

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

if D<X:
    print(count)

ini=input().split()
ini=[int(i) for i in ini]
N=ini[0]
K=ini[1]
a=input().split()
a=[int(i) for i in a]


count=0
ans=0
x=0
lena=len(a)

for i in range(lena):
    for j in range(N-i):
        #print(i,j,a[i+j])
        x += a[i+j]
#        print(i,j,x,count)
        if x >= K:
#            print("aaa",i,j,x,count,ans)
            count = N-j-i
            x=0
            break
        if j==N-i-1:
            x=0
#    print(i,j,ans)
    ans+=count
    count=0
print(ans)

alfa=input()
N=int(alfa[0])
X=int(alfa[2])

L=input().split()


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


alfa=input().split()
N=int(alfa[0])
X=int(alfa[1])

L=input().split()


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


alfa=input()

X=alfa[0]
A=alfa[2]

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

Verdicts: 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):
a,b=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):
print(max([[str(bin(2*i))[2:],j] for i,j in enumerate(map(int,input().split()))],key=lambda k:k[1])[0])

print(10) if max([[str(bin(2*i))[2:],j] for i,j in enumerate(reversed(list(map(int,input().split()))))],key=lambda k:k[1])[0]==0 else print(10)

print(10) if max([[i,j] for i,j in enumerate(reversed(list(map(int,input().split()))))],key=lambda k:k[1])[0]==0 else print(0)

print(10) if max([[i,j] for i,j in enumerate(reversed(list(map(int,input().split()))))],key=lambda k:k[1])[0]==0 else print(0)


print(eval(input().replace(" ","<"))*10)

#print([[str(bin(i*2))[2:],j] for i,j in range(2)])
print(0) if min([[i,j] for i,j in enumerate(map(int,input().split()))],key=lambda k:k[1])[0]==1 else print(10)

print(int(eval(input().replace(" ","<")))*10)

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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):
N, A = map(int, input().split())

if N<A: print(1)
else: print(0)

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

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

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 = list(map(inte, input().split()))
if x < a:
  print (0)
else:
  print(10)

x, a = list(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):
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')
elif a <= b:
  print('10')

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)
elif a <= b:
  print(10)

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: Wrong Answer

Wrong Answer

Wrong Answer

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):
import sys
input = sys.stdin.readline
N,X = map(int,input().split())

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


res = 0
i = 0
ans = 1
for i in range(N):
    res += li[i]
    ans += 1
    if res > X:
        ans -= 1
        break
    
print(min(ans,N+1))
    

import sys
input = sys.stdin.readline
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):
n,x=list(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)
    break
else:
  print(n+1)

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=[int(i) for i in input().split()]
print(10 if x<a else 0)

x,a=[int(i) for i in input().split()]
print(0 if x<a else 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( 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):
# -*- coding: utf-8 -*-

#a = int(input())

b, c = map(int, input().split())

#s = input()

if b>c:
	print(0)
else:
	print(10)
#print("{} {}".format(a+b+c, s))

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

#a = int(input())

b, c = map(int, input().split())

#s = input()

if b>=c:
	print(0)
else:
	print(10)
#print("{} {}".format(a+b+c, s))

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

#a = int(input())

b, c = map(int, input().split())

#s = input()

if b<c:
	print(0)
else:
	print(10)
#print("{} {}".format(a+b+c, s))

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

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)

import re
X, A = [int(i) for i in re.split(" ", input())]
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):
cnt = 0
a_sum = []
i = 0
l = 0 
for i in range(n):
    a_sum.append(a[i])
    l += a(i)
    while l >= k:
      	l -= a_sum[0]
        cnt += n - i
        a_sum.pop(0)
        
print(cnt)

x, a = map(int, input().split())
print("10") if x >= a 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):
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))


X, A = 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):
n,x = map(int, input().split())
l = list(map(int, input().split()))

s = 0
d = 0
for i in range(n):
  d += l[i]
  s += 1
  if d >= x:
    break
print(s)

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

if a <= x: 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 = 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(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):
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()


#import sys
#input = sys.stdin.readline
def main():
    X, A = map( int, input().split())
    if X < A:
        print(0)
    else:
        print(10)

if __name__ == '__main__':
    main()

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 math
import string


def readints():
    return list(map(int, input().split()))


def nCr(n, r):
    return math.factorial(n)//math.factorial(n-r)*math.factorial(r)


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

cnt = 0
for i in range(n+1):
    if ll[i] <= x:
        cnt += 1
print(cnt)


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())
Y=0
if X<A:
    Y=0
else:
    Y=10

print(Y)        


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):
W, H, x, y = map(int, input().split())
ans = 0
me_x = 0
me_y = 0
total = W * H
# (W - x) * H
if (W - x) > x:
  me_x = x * H
else:
  me_x = (W - x) * H

if (H - y) > y:
  me_y = y * W
else:
  me_y = (H - y) * W

if me_x > me_y:
  me_ans = me_x
else:
  me_ans = me_y

if me_x == (total - me_y):
  ans = 1
elif me_y == (total - me_x):
  ans = 1

if me_x == me_y:
  ans = 1
print(me_ans, ans)

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


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())
print((x>=a)*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 X < A:
    print('10')
else:
    print('0')


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

if X >= A:
    print('10')
else:
    print('0')

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):
a, b = map(int, input().split())
if x < a:
  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):
n,x = map(int, input().split())
l = list(map(int, input().split()))
cnt = 1

for i in range(2,n+2):
  if sum(l[:i-1]) <= x:
    cnt += 1
    
print(cnt)

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,X = 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: 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):
s = input()
s = list(s)
print(s)
if s[0] < s[2]:
    print("0")
else:
    print('1')

s = input()
s = list(s)
print(s)
if s[0] < s[2]:
    print("0")
else:
    print('10')

s = input()
s = list(s)
if s[0] < s[2]:
    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 = input(), input()
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)

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):
a=list(map(int,input().split()))
b=list(map(int,input().split()))
no=0
for i in range(0,a[0]):
    if b[i]<=a[1]:
        no+=1 
print(no)        

a=list(map(int,input().split()))
print('0' if a[0]<a[1] 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(_) for _ in input().split())
if x >= A:
      print(10)
else:
      print(0)

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

X, A = (int(_) for _ 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):
input_line = input()
l = input().split(' ')
l = [int(x) for x in l]

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


N,X = [int(x) for x in input().split()] 
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)


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

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


list_1 = [int(x) for x in il_1.split(' ')] 
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)


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

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

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

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


Verdicts: 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):
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):
W, H, x, y = map(int, input().split())

area = (W * H) / 2
div = 0
if W // 2 == x and H // 2 == y:
    div = 1

print(area, div)


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


Verdicts: Runtime Error

Accepted