TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a, b = map(int,input().split())
if a <= 5:
  print(0)
elif a < = 12:
  print(b//2)
else:
  print(b)

a, b = map(int,input().split())
if a <= 5:
  print(0)
elif a <= 12:
  print(b//2)
else:
  print(b)


Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
A, B = list(map(int, input().split()))
if A <= 5:
  print(0)
elif 6 <= A or A <= 12:
  print(B//2)
else:
  print(B)

A, B = list(map(int, input().split()))
if A <= 5:
  print(0)
elif 6 <= A and A <= 12:
  print(B//2)
else:
  print(B)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a < 6:
  print(0)
elif a > 12:
  print(a)
else:
  print(a/2)

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

if a < 6:
  print(0)
elif a > 12:
  print(b)
else:
  print(int(b/2))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b = map(int, input().split())
if a >= 13:
    print(b):
elif 5 <= a <= 12:
    print(b//2)
else:
    print(0)

a,b = map(int, input().split())
if a >= 13:
    print(b)
elif 5 <= a <= 12:
    print(int(b/2))
else:
    print(0

a,b = map(int, input().split())
if a >= 13:
    print(b):
elif 5 <= a <= 12:
    print(a//2)
else:
    print(0)

a,b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6 and a <= 12:
    print(b//2)
else:
    print(0)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a = int(input("")
b = int(input("")
if b%2==0:
        if a>=13:
          print(b)
        elif 6<=a<=12:
          print(b/2)
        elif a<=5:
          print(0)

a = int(input(""))
b = int(input(""))
if b % 2==0:
   if a>=13:
          print(b)
   elif 6<=a<=12:
          print(b/2)
   elif a<=5:
          print(0)

a,b = [int(a) for a in input().split()]
if b%2==0:
  if a>=13:
    print(b)
  elif 6<=a<=12:
    print(int(b/2))  
  elif a<=5:
    print(0)  

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a >= 13:
  print(b)
  end()
  
if a >= 6:
  b /= 2
  print(b)
  end()
  
print(0)

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

if a >= 13:
  print(b)
  
else if a >= 6:
  b /= 2
  print(b)
  
else print(0)

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

if a >= 13:
  print(b)
  exit()
  
if a >= 6:
  b //= 2
  print(b)
  exit()
  

print(0)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if A => 13:
  print(B)
elif A =< 5:
  print(0)
else:
  print(int(B/2))

A,B = map(int, input().split())
if A <= 5:
  print(0)
elif A <= 12:
  print(int(B/2))
else:
  print(A)

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

if A >= 13:
    print(B)
elif A > 5:
    print(int(B/2))
else:
    print(0)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
A,B = list(map(int,input().split()))
print(A,B)
if A <= 5:
	print(0)
elif A <= 12:
	print(int(B/2))
elif A >= 13:
	print(int(B))

A,B = list(map(int,input().split()))
if A <= 5:
	print(0)
elif A <= 12:
	print(int(B/2))
elif A >= 13:
	print(int(B))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a = []
a = input().split()

A = a[0]
B = a[1]

if A > 13 :
  print(B)
if A >= 6 and A <= 12 :
  print(B / 2)
if A <= 5 :
  print(0)


a = []
a = input().split()

A = int(a[0])
B = int(a[1])

if A >= 13 :
  print(B)
if A >= 6 and A <= 12 :
  print(int(B / 2))
if A <= 5 :
  print(0)


Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if A >= 13:
  print(B)
elif A >= 6 and A <= 12:
  print(int(B/2))
elif A <= 5
  print(0)

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

if A >= 13:
  print(B)
elif A >= 6 and A <= 12:
  print(int(B/2))
elif A <= 5:
  print(0)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a >=13:
  print(b)
elif a >= 6:
  print(int(b/2))
else:
  print('0')

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

if a >= 13:
  print(b)
elif a >= 6:
  print(int(b/2))
else:
  print(0)


Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
A,B = (12,100)
if A<6:
  print(0)
elif A<13:
  print(B//2)
else:
  print(B)


A,B = int(input())
if A<6:
  print(0)
elif A<13:
  print(B/2)
else:
  print(B)

i = list(map(int,input().split()))
A = i[0]
B = i[1]
if A>12:
  print(B)
  elif A<6:
    print(0)
    else:
      print(B/2)
      

i = list(map(int,input().split()))
A = i[0]
B = i[1]
if A>12:
  pritn(B)
  elif A<6:
    print(0)
    else:
      print(B/2)
      

A,B = map(int,input().split())
if A<6:
  print(0)
elif A<13:
  print(B//2)
else:
  print(B)

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a, b = map(int, input().split())
if a >== 13:
  print(b)
elif 6 <= a <= 12:
  print(int(b/2))
else:
  print(0)

a, b = map(int, input().split())
if a >= 13:
  print(b)
elif 6 <= a <= 12:
  print(int(b/2))
else:
  print(0)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a >= 13:
  print(b)
elif a>=6 and a<=12:
  print(b/2)
else:
  print(0)

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

if a >= 13:
  print(b)
elif a>=6 and a<=12:
  print(int(b/2))
else:
  print(0)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a >= 6 and a >= 12:
    c = b / 2
    print(round(c))

if a < 5:
    print("0")

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

if a >= 6 and a >= 12:
    c = b / 2
    print(c)

if a < 5:
    print("0")

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

if a >= 13:
    print(b)

if a >= 6 and a >= 12:
    c = b / 2
    print(round(c))

if a < 5:
    print("0")

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

if a >= 13:
    print(b)

if a >= 6 and a <= 12:
    c = b / 2
    print(round(c))

if a <= 5:
    print("0")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
read=input;
A,B=map(int,read()).spilt()
if A>=0 and A<=5:
  print(0);
elif A>5 and A<=12:
  print(B/2);
else:
  print(B);

read=input();
A,B=read.spilt(' ')
A=int(A)
B=int(B)
if A>12:
  print(B);
elif A>5:
  print(B/2);
else:
  print(B);


if A>=0 and A<=5:
  return 0;
elif A>5 and A<=12:
  return B/2;
else:
  return B;

read=input();
A,B=read.spilt(' ')
A=int(A)
B=int(B)
if A>=0 and A<=5:
  print(0);
elif A>5 and A<=12:
  print(B/2);
else:
  print(B);

read=input();
A,B=read.spilt(' ')
A=int(A)
B=int(B)
if A>12:
  print(B);
elif A>5:
  print(B/2);
else:
  print(0);

read=input();
A,B=map(int,read).spilt(' ')
if A>=0 and A<=5:
  print(0);
elif A>5 and A<=12:
  print(B/2);
else:
  print(B);


if A>=0 and A<=5:
  print(0);
elif A>5 and A<=12:
  print(B/2);
else:
  print(B);

read=input();
A,B=read.split(' ')
A=int(A)
B=int(B)
if A>12:
  print(B);
elif A>5:
  print(int(B/2));
else:
  print(0);

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b=(int (x) for x in input().split())
if a<=5:
  print(0)
elif a<=12:
  print(int((b/2))
else:
  print(b)

a,b=(int (x) for x in input().split())
if a<=5:
  print(0)
elif a<=12:
  print(int(b/2))
else:
  print(b)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b=map(int,input())
if a>12:
    print(b)
elif a>5:
    print(b/2)
else:
    print(0)

a,b=map(int,input())
if a>12:
    print(b)
elif 13>a>5:
    print(b/2)
else:
    print(0)


a,b=map(int,input().split())
if a>12:
    print(b)
elif 12>=a>=6:
    print(b//2)
else:
    print(0)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
N,M = map(int,input().split())
a = []
b = []
for i in range(M):
    x,y = map(int,input().split())
    a.append(x)
    b.append(y)
if max(a) <= min(b):
    print(min(y)-max(x)+1)
else:
    print(0)

a,b = map(int,input().split())
if (13 <= a):
  print(b)
elif (6 <= a <= 12):
  print(b//2)
else:
  print(0)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
A,B = map(int,input().split())
if 13<=A:
    ans=B
elif 6<=A:
    ans=B/2S
else:
    ans = 0

print(ans)


A,B = map(int,input().split())
if 13<=A:
    ans=B
elif 6<=A:
    ans=B/2
else:
    ans = 0

print(int(ans))

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
number = input().split(" ")
A = int(number[0])
B = int(number[1])
if A >= 13:
	print(B)
elif 6 =< A < 13:
	print(B/2)
else:
	print(0)

number = input().split(" ")
A = int(number[0])
B = int(number[1])
if A >= 13:
	print(B)
elif 6 <= A < 13:
	print(int(B/2))
else:
	print(0)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
age, price = map(int, input().split())
print(price * (min(1, age//13) + min(1, age//6)) / 2)

age, price = map(int, input().split())
print(price * (min(1, age//13) + min(1, age//6)) // 2)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
i = input().split(" ")

r = int(i[0])
d = int(i[1])
a = int(i[2])

for i in range(10):
	a = a * r - d
	print(a)


i = input().split(' ')

a = int(i[0])
b = int(i[1])

if a >= 13:
	print(b)
elif a >= 6:
	print(b // 2)
else:
	print(0)


Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
n, m = map(int, input().split())

I = input().split()
A = [int(s) for s in(I)]
d = 1

for i in range(m):
    b, c = map(int, input().split())
    if d == 1:
        A.sort()
        d = 0
    else:
        pass
    for j in range(b):
        if A[j] >= c:
            break
        else:
            A[j] = c
            d = 1
ans = sum(A)
print(ans)


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

if a <= 5:
    c = 0
elif a <= 12:
    c = int(b / 2)
else:
    c = b

print(c)


Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b = map(int,input().split())
if a>=13:
  print(b)
elif a>=6 and a<=12
  print(int(b/2))
else 
  print(0)
    


a,b = map(int,input().split())
if a>=13:
  print(b)
elif 6<=a and a<=13
  print(b/2)
else 
  print(0)
    

a,b = map(int,input().split())
if a>=13:
  print(b)
elif a>=6 and a<=12
  print(b/2)
else 
  print(0)
    

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

if a>=13:
  print(b)
elif a>=6:
  print(b//2)
else:
  print(0)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a, b = map(int, input().split())
print(0 if a < 6 else (b // 2) if a < 13 else a)

a, b = map(int, input().split())
print(0 if a < 6 else (b // 2) if a < 13 else b)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
A,B=int(input())

if B<6:
  print(0)
elif 6<=B<=12:
  print(A/2)
else:
  print(A)



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

if B<6:
  print(0)
elif 6<=B<=12:
  print(A/2)
else:
  print(A)



A,B=int(input())

if A<6:
  print(0)
elif 6<=A<=12:
  print(B/2)
else:
  print(B)



A,B=int(input())

if A<6:
  print(0)
elif 6<=A<12:
  print(B/2)
else:
  print(B)



A,B=int(input())

if A<6:
  print(0)
if 6<=A<12:
  print(B/2)
else:
  print(B)



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

if A<6:
  print(0)
elif 6<=A<=12:
  print(B//2)
else:
  print(B)



Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b = map(int,input().split())
if  6<=a <= 12:
  print(b//2)
elif 6<a:
  print(0)
else:
  print(b)

a,b = map(int,input().split())
if a<6:
  print(0)
elif 6<= a and a <= 12:
  print(b//2)
else:
  print(b)
  

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a >= 6 & a <= 12:
        b = b / 2
elif a <= 5:
        b = 0

print(b)

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

if a <= 12:
        b = b / 2

if a <= 5:
        b = 0

print(int(b))


Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

print(int(B) if A >= 13 else 0 if A <= 5 else int(B//2)

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

if A >= 13:
    print(B)
elif A <= 5:
    print(0)
else:    
    print(B//2)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b = input(),split()
a = int(a)
b = int(b)
price = 0
if(a>=13):
  price = b
if(a>=6):
  price = b / 2
print(price)

a,b = input().split()
a = int(a)
b = int(b)
price = 0
if(a>=13):
  price = b
if(a>=6):
  price = b / 2
print(price)

a,b = input().split()
a = int(a)
b = int(b)
price = 0
if a>=13:
    price = b
elif a>=6:
    price = b / 2
else:
    price = 0
price = int(price)
print(price)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
N,M = map(int,input().split())
L = []
R = []
LR = [list(map(int,input().split())) for _ in range(M)]
for i in range(M):
    L.append(LR[i][0])
countL = 0
countL = max(L)
for j in range(M):
    R.append(LR[j][1])
countR = 0
countR = min(R)
if countR >= countL:
    print(0)
else:
    print(countR-countL+1)
    


    



N,M = map(int,input().split())
L = []
R = []
LR = [list(map(int,input().split())) for _ in range(M)]
for i in range(M):
    L.append(LR[i][0])
countL = 0
countL = max(L)
for j in range(M):
    R.append(LR[j][1])
countR = 0
countR = min(R)
if countR - countL + 1 <= 0:
    print("0")
else:
    print(countR-countL+1)
    


    



A,B = map(int,input().split())
if A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(int(B/2))
else:
    print("0")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a=int(input())
b=int(input())
#a,b = int(input()),int(input())

if 6<=a<=12 :
    ans = b/2

elif 6 > a :
    ans = 0

else :
    ans = b

print(ans)


"""a=int(input())
b=int(input())"""
a,b = int(input()),int(input())

if 6<=a<=12 :
    ans = b/2

elif 6 > a :
    ans = 0

else :
    ans = b

print(ans)


a,b=(int(i) for i in input().split())

#a,b = int(input()),int(input())

if 6<=a<=12 :
    ans = b/2

elif 6 > a :
    ans = 0

else :
    ans = b

print(int(ans))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
def years():
  A=list(map(int,input().split()))
  c=0
  a=A[0]
  b=A[1]
  
  if b%2!=0 or a<0:
    return
  
  
  if a>=13:
    print(b)
    
  if a<=6 and a>=12:
    print(b/2)
    
  if a<=5:
    print(c)
    
    

def years():
  A=list(map(int,input().split()))
  c=0
  a=A[0]
  b=A[1]
  
  if b<2 or (b%2!=0):
    return
  
  
  if a>=13:
    print(b)
    
  if a<=6 and a>=12:
    print(b/2)
    
  if a<=5:
    print(c)
    

def years():
  A=list(map(int,input().split()))
  c=0
  a=A[0]
  b=A[1]
  
  if b%2==0 or a<0:
    return
  
  
  if a>=13:
    print(b)
    
  if a<=6 and a>=12:
    print(b/2)
    
  if a<=5:
    print(c)
    
    
if __name__=="__main__":
  years()

def years():
  A=list(map(int,input().split()))
  c=0
  a=A[0]
  b=A[1]
  
  if b<=1 or (b%2!=0) or a<0:
    return
  
  
  if a>=13:
    print(b)
    
  if a>=6 and a<=12:
    b=b/2
    print(int(b))
    
  if a<=5:
    print(c)
    
    
if __name__=="__main__":
  years()

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
import sys
import bisect
Q = int(input().rstrip())
#queries = []
#for _ in range(Q):


bias = 0
vs = []

qi = 0

#    if len(query) == 3:

for _ in range(Q):
    query = input()
    if query[0] == "1":
        v, b = map(int, query[2:].split(" "))
        qi += 1
        bisect.insort_left(vs, v)
        bias += b
        if qi == 1:
            abs_sum = 0
            med = v
            medp = 0
        else:
            if qi % 2 == 0:
                if v <= med:
                    
                    
                    # medp -> same
                    
                    
                    abs_sum += med - v
                    med = vs[medp]
                else:
                    # * ^ + -> * ^ + v
                    
                    # medp -> same
                    
                    
                    abs_sum += v - med
            else:
                if v <= med:
                    
                    
                    
                    # medp -> += 1
                    
                    
                    abs_sum += med - v
                    medp += 1
                else:
                    
                    
                    # medp -> += 1
                    
                    
                    medp += 1
                    med = vs[medp]
                    abs_sum += v - med
    else:
        print(med, abs_sum+bias)



A, B = map(int, input().rstrip().split())
if A >= 13:
  print(B)
elif A >= 6:
  print(B//2)
else:
  print(0)


Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a >= 13:
  print(b)
if 6 <= a <13:
  print(b/2)
else:
  print(0)

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

if a >= 13:
  print(b)
if 6 <= a <=12:
  print(b//2)
else:
  print(0)

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

answer = B
if 6 <= A <= 12:
  answer = B//2
elif A <= 5:
  answer = 0
  
print(answer)

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

b%2==0
0<=a<=100
2<=b<=1000

if a >= 13:
  print(b)
if 6 <= a <13:
  print(b/2)
else:
  print(0)

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


if a >= 13:
  print(b)
if 6 <= a <13:
  print(b//2)
else:
  print(0)

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

if a>=13:
  print(b)
if 6<=a<=12:
  print(b//2)
else:
  print(0)

A,B = [int(x) for x in input().split()]
 
answer = B
if 6 <= A <= 12:
  answer = B//2
elif A <= 5:
  answer = 0
  
print(answer)

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

for _ in range(M):
    B, C = map(int,input().split())
    A += [C]*B
    A.sort(reverse=True)
    A = A[:N]
print(sum(A))

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

if 13 <= A:
    print(B)
elif 6 <= A:
    print(B//2)
else:
    print(0)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a > 13:
  return b
elif a < 6:
  return 0
else: 
  return b//2


a, b = map(int, input().split())
 
if a > 13:
  return b
elif a < 6:
  return 0
elif a >= 6 and a <= 12: 
  return int(b/2)

a, b = map(int, input().split())
 
if a < 6:
  print(0)
elif a <= 12:
  print(int(b/2))
else: 
  print(b)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b=map(int,input().split())
if a>=13:
    print(b)
if 6<=a<12:
    print(b//2)
else:
    print(0)

a,b=map(int,input().split())
if a>=13:
    print(b)
if 6<=a<=12:
    print(b//2)
if a<=5:
    print(0)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a, b = map(int, input().split())
if a <= 13: 
  print(b)
elif 6 <= a :
  print(b/2)
else :
  print(0)


a, b = map(int, input().split())
if a <= 13: 
  print(b)
elif 6 <= a :
  print(int(b/2))
else :
  print(0)


a, b = map(int, input().split())
if 13 <= a: 
  print(b)
elif 6 <= a :
  print(int(b/2))
else :
  print(0)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
import sys

n, m = map(int, input().split())
nums = []

for i in range(n):
    nums.append(i + 1)

for i in range(m):
    l, r = map(int, input().split())
    nums = list(filter(lambda x: l <= x <= r, nums))
    if len(nums) == 0:
        print(0)
		sys.exit()

print(len(nums))


a, b = map(int, input().split())
 
if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(int(b/2))
else:
    print(0)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a<5:
    print(0)
elif a>=6 & a<13:
    print(int(b/2))
else:
    print(int(b))

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

if a>=13:
    print(int(b))
elif  a<=12 and a>=6:
    print(int(b/2))
else:
    print(0)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
n,m = map(int,input().split())
a = list(map(int,input().split()))
b = []
c = []
for i in range(m):
        bb,cc =map(int,input().split())
        b.append(bb)
        c.append(cc)
a.sort()
for i in range(m):
        for j in range(b[i]):
                if a[j] < c[i]:
                        a[j] = c[i]
                a.sort()
print(sum(a))


n,m = map(int,input().split())
a = list(map(int,input().split()))
b = []
c = []
for i in range(m):
        bb,cc =map(int,input().split())
        b.append(bb)
        c.append(cc)
a.sort()
for i in range(m):
        for j in range(b[i]):
                if a[j] < c[i]:
                        a[j] = c[i]
                elif a[j] >=c[i]:
                        continue
        a.sort()
print(sum(a))


a,b =map(int,input().split()) 
if a < 6:
        print(0)
elif a< 13:
        print(b//2)
else:
        print(b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
import numpy as np

n_ID, n_gates = [int(data) for data in input().split()]
L = np.empty(n_gates, dtype = int)
R = np.empty(n_gates, dtype = int)

for i in range(n_gates):
  L[i], R[i] = [int(data) for data in input().split()]

ID_gate_matrix = np.zeros((n_ID, n_gates))

for j in range(n_gates):
  for i in range(L[j] - 1, R[j]):
    ID_gate_matrix[i][j] = 1

Card_Counter = 0
for i in range(n_ID):
  for j in range(n_gates):
    if ID_gate_matrix[i][j] != 1:
      break
  else:
    Card_Counter += 1

print(Card_Counter)

age, cost = [int(x) for x in input().split()]

if age <= 5:
  print(0)
elif age <= 12:
  print(int(cost / 2))
else:
  print(cost)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
A, B = list(map(int, input().split()))
if A <= 5:
    print(0)
elif 6 <= A <= 12:
    print(A//2)
else:
    print(A)

import sys
input = lambda : sys.stdin.readline().rstrip()

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

ans = 0 if a <= 5 else b//2 if a <= 12 else b

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
#coding:utf-8
A,B = map(int,input().split())

if A >= 13:
    print(B)

if 6 <= A <= 12:
    print(int(B/2))

else:
    print("0")


#coding:utf-8
A,B = map(int,input().split())

if A >= 13:
    print(B)

if 6 <= A <= 12:
    print(int(B/2))

if A <= 5:
    print("0")


Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
def main():
    a,b = map(int, input().split())
    if a>=13:
        print(b)
    elif 6<=a<=12:
        print(int(b/2)
    else:
        print(0)
main()

def main():
    a,b = map(int, input().split())
    if a>=13:
        print(b)
    elif 6<=a<=12:
        print(int(b/2))
    else:
        print(0)
main()

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
N, M = map(int, input().split())
A = list(map(int, input().split()))
BC = [list(map(int, input().split())) for i in range(M)]

A = sorted(A)
BC = sorted(BC, key=lambda x: -x[1])

lenA = len(A)
i = 0
for bc in BC:
  for j in range(bc[0]):
    if A[i] > bc[1]: break
    if i > lenA: break
    A[i] = bc[1]
    i += 1

print(sum(A))

A, B = map(int, input().split())
if A<=5: print(0)
elif A<=12: print(int(B/2))
else: print(B)

Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a<=13:
  print(b)
elif 6<=a<=12:
  print(b/2)
else:
  print(0)

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

if a>=13:
  print(b)
elif 6<=a<=12:
  print(int(b/2))
else:
  print(0)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
import sys
a = int(input())

if a >= 13:
  print(a)
  sys.exit()
elif a >= 6 and a <= 12:
  print(int(a/2))
  sys.exit()
else:
  print(0)


import sys
a = int(input())

if a >= 13:
  print(a)
elif a >= 6 and a <= 12:
  print(a//2)
else:
  print(0)


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

if a >= 13:
  print(b)
elif a >= 6 and a <= 12:
  print(b//2)
else:
  print(0)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b=map(int,input().split())
print(max(b*(1//(min(a, 13)//13+1)-5), 0))

a,b=map(int,input().split())
print(b//(12//min(a, 13)+1)*(min(1, a//6))


a,b=map(int,input().split())
print(b//(13//min(a+1, 14)+1)*min(1, a//6))


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
def wheel(a,b):
    if a>=13:
        return b
    if a>=6 and a<=12:
        return b/2
    if a<6:
    return 0   
a,b = map(int, input().split())
print(wheel(a,b))

def wheel(a,b):
    if a>=13:
        return b
    if a>=6 and a<=12:
        return b/2
    if a<6
    return 0   
a,b = map(int, input().split())
print(wheel(a,b))

def wheel(a,b):
    if a>=13:
        return b
    if a>=6 and a<=12:
        return int(b/2)
    if a<=5:
        return 0   
a,b = map(int, input().split())
print(wheel(a,b))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a <= 5:
	print(0)
  
elif a <=12:
	print(b/2)
    
else:
	print(b)

a,b = map(int,input())
 
if a <= 5:
	print("0")
        
elif a <= 12:
	print(b/2)
        
else:
	print(b)
	

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

if a <= 5:
  print("0"
        
elif a <= 12:
        print(b/2)
        
else:
        print(b)
	

a,b = map(int,input())
 
if a <= 5:
	print(0)
        
elif a <= 12:
	print(b/2)
        
else:
	print(b)
	

a,b = map(int,input().split())
 
if a <= 5:
	print(0)
        
elif a <= 12:
	print(int(b/2))
        
else:
	print(b)
	


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

for i in range(m):
    b,c=map(int,input().split())
    a+=([c]*b)

a.sort()
a.reverse()
ans=0

for i in range(n):
    ans+=a[i]

print(ans)


a,b=map(int,input().split())
if a>=13:
    print(b)
elif 6<=a<13:
    print(b//2)
else:
    print(0)


Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

Submission attempts (in order):
a,b,c=input(int()).split()
s = b
aa = int(a)
cc = int(c)
bb = int(b)
for i in  range(10):
    d= aa * cc - bb
    cc = d
    print (int(d))

a,b=input().split()
if int(a) >= 13 :
    print(int(b))
if int(a) >= 6 and int(a) <=12 :
    print(round(int(b) / 2))
if int(a) <= 5 :
    print(0)


Verdicts: Runtime Error

Accepted
Problem: Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.

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

if a =< 5:
  print(0)
elif a <= 12:
  print(int(b / 2))
else:
  print(b)

a, b = map(int, input().split())
 
if a <= 5:
  print(0)
elif a <= 12:
  print(int(b / 2))
else:
  print(b)

Verdicts: Runtime Error

Accepted