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):
inputs = input().split()

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

if not 0 <= A <= 100 or 2 <= B <= 1000:
    exit(0)

if A <= 5:
    B = 0
elif 5 < A <= 12:
    B /= 2

print(B)

inputs = input().split()

N = int(inputs[0])
M = int(inputs[1])

passIDs = [0] * (10**5 + 10)

for i in range(M):
    inputs = input().split()

    L = int(inputs[0])
    R = int(inputs[1])

    for j in range(L, R+1):
        passIDs[j] += 1

IDs = 0

for passId in passIDs:
    if passId == M:
        IDs += 1

print(IDs)



inputs = input().split()

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

if not 0 <= A <= 100:
    exit(0)

if not 2 <= B <= 1000:
    exit(0)

if not B % 2 == 0:
    exit(0)

if A <= 5:
    B = 0
elif 5 < A < 13:
    B /= 2

print(int(B))


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

if a >= 13:
    print(b)
if a >= 6:
    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: 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())
result = set()
first = True
for i in range(m):
    l, r = map(int, input().split())
    tmp = set()
    for i in range(l, r + 1):
        tmp.add(i)
    if first:
        result = tmp
        # print("tmp {}".format(tmp))
        first = False
    else:
        result = result.intersection(tmp)
        # print("result {} tmp {}".format(result, tmp))

print(len(result))

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: 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(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):
#include <stdio.h>
#include <stdlib.h>


using namespace std;

int main(){
  int A,B;
  cin >>A>>B;
  if (A>=13){
    cout <<B;
  }  
  else if (A>=6){
    cout <<B/2;
  }  
  else{
    cout <<0;
  }
}  

A,B=map(int,input().split())
if A>=13:
  print(B)
if 6<=A<13:
  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):
L, R = [[], []]
N, M = map(int, input().split())
for i in range(M):
  l, r = map(int, input().split())
  L.append(l)
  R.append(r)

minR = min(R)
maxL = max(L)
if minR <= maxL:
  count = 0
else:
  count = minR - maxL + 1
      
print('%d' % count)

L, R = [[], []]
N, M = map(int, input().split())
for i in range(M):
  l, r = map(int, input().split())
  L.append(l)
  R.append(r)

minR = min(R)
maxL = max(L)
if minR <= maxL:
  count = 0
else:
  count = minR - maxL + 1
      
print('%d' % count)

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

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 6 <= a => 12 :
  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 6 <= 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())
if A<=5:
  print(0)
if (6<=A) or(A<=12):
  print(B/2)
if 13<=A:
  print(B)


A, B = map(int,input().split())
if A<=5:
  print(0)
elif A<=12:
  print(int(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):
n,b = map(int,input().split())
if n >= 13:
  print(n)
elif n <= 5:
  print(0)
else:
  print(b//2)

n,b = map(int,input().split())
if n >= 13:
  print(b)
elif n <= 5:
  print(0)
else:
  print(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 6 <= A <= 12:
  B = B / 2
elif 5 => B:
  B = 0
else:
  psss

print(int(B))

A, B = map(int, input().split())
if(A >= 13):
  print(B)
elif(12 >= 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 = int(input().split())
if a<= 13:
  sum = b
elif 6<= a <= 12:
  sum = b/2
elif 5>=a:
  sum = 0
print(sum)
 

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

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

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

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

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

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

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):
print(B if A >=13 else B//2 if 6 <= A <= 12 else 0)

A,B = map(int, input().split())
print(B if A >=13 else B//2 if 6 <= A <= 12 else 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 = int(input())
b = int(input())
if 0 <= a and  a <= 5:
    print(0)
if 6 <= a  and a <= 12:
    print(b//2)
if 13 <= a and a <= 100:
    print(b)

a, b = map(int, input().split())
if a <= 5:
    print(0)
elif a >= 6 and 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 = map(int(input()).split())

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

#! python3
#  solve127A.py

age,cost = map(int,input().split())

if age <= 5:
    cost = 0
elif 6 <= age <= 12:
    cost = cost//2
elif 7 <= age:
    cost = cost

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):
def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    from itertools import combinations, permutations, accumulate, groupby, product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    import math
    #from math import gcd

    #inf = 10**17
    mod = 10**9 + 7

    
    max_n = 4*10**5
    fac, inv = [1]*(max_n+1), [0]*(max_n+1)
    for i in range(2, max_n+1):
        fac[i] = fac[i-1] * i % mod
    inv[-1] = pow(fac[-1], mod-2, mod)
    for i in range(max_n, 0, -1):
        inv[i-1] = inv[i] * i % mod
    
    
    def ncr(n, r):
        return fac[n]*inv[r]*inv[n-r]%mod

    n,m,k = map(int, input().split())

    base = ncr(n*m-2, k-2)

    res = 0
    
    for i in range(1, m):
        res += n**2 * i * (m-i)
        res %= mod

    for i in range(1, n):
        res += m**2 * i * (n-i)
        res %= mod

    print(res*base%mod)

if __name__ == '__main__':
    main()

def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby, product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    from math import floor, ceil
    #from operator import itemgetter

    #inf = 10**17
    #mod = 10**9 + 7

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

if __name__ == '__main__':
    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):
A = input()
B = input()
A=int(A)
B=int(B)

if 0 <=A<=100 and 2<=B<=1000:
    if B%2 == 1:
        print("ERROR")
        exit()
    else :
        if A <=5 :
            fare=0
        elif 6<=A<=12 :
            fare=B//2
        else:
            fare=B
else:
    print("ERROR")
    exit()

print(fare)

# -*- coding: utf-8 -*-
import sys

args=sys.argv
A=int(args[1])
B=int(args[2])


if 0 <=A<=100 and 2<=B<=1000:
    if B%2 == 1:
        print("ERROR")
        exit()
    else :
        if A <=5 :
            fare=0
        elif 6<=A<=12 :
            fare=int(B/2)
        else:
            fare=B
else:
    print("ERROR")
    exit()

print(fare)

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

if 0 <=A<=100 and 2<=B<=1000:
    if B%2 == 1:
        print("ERROR")
        exit()
    else :
        if A <=5 :
            fare=0
        elif 6<=A<=12 :
            fare=B//2
        else:
            fare=B
else:
    print("ERROR")
    exit()

print(fare)

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):
if 13 <= A:
    print(B)
elif (6 <= A) and (A<=12):
    print(B/2)
else:
    print(0)

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

if a >= 13:
    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())
if a<13:
  if 5<a:
  print(b/2)
  else:
    print(0)
else:
  print(b)

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


a,b=map(int,input().split())
if a<13:
  if 5<a:
    print(b//2)
  else:
    print(0)
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 < 6:
    print(0)
else if a < 14:
    print(int(b / 2))
else:
    print(b)

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

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

a,b = map(int, input().split())
if a >= 13:
    print(b)
    exit()
elif a >= 6:
    print(int(b / 2))
    exit()
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())

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

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

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

a,b = map(int,input().split())
print((a>=13)*b or (6<=a)*b//2)

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):
data = [int(s) for in s input().split()]

if data[1] >= 13:
    print(data[0]):
elif data[1] >= 6:
    print(data[0]/2):
else:
    print(0)

data = [int(s) for s in  input().split()]

if data[1] >= 13:
    print(data[0])
elif data[1] >= 6:
    print(data[0]/2)
else:
    print(0)


data = [int(s) for in input().split()]

if data[1] >= 13:
    print(data[0])
elif data[1] >= 6:
    print(data[0]/2)
else:
    print(0)

data = [int(s) for in input().split()]

if data[1] >= 13:
    print(data[0]):
elif data[1] >= 6:
    print(data[0]/2):
else:
    print(0)

data = [int(s) for s in  input().split()]

if data[0] >= 13:
    print(data[1])
elif data[0] >= 6:
    print(int(data[1]/2))
else:
    print(0)


Verdicts: Runtime Error

Wrong Answer

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(input().split())
if a>=13:
  print(b)
elif 12<=a<=6:
  print(b//2)
else:
  print(0)

a,b=map(int,input().split())
if a>=13:
  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):
list_l = []
list_R = []
ID,gate = map(int,input().split())
s = 0
for i in range(gate):
  l,r = map(int,input().split())
  list_l.append(l)
  list_R.append(r)
a = max(list_l)
b = min(list_R)

for i in range(ID+1):
  if a <= i <= b:
    s += 1
  else:
    None
print(s)

a,b = map(int,input().split())
if a >= 13:
  print(b)
elif 12 >= 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):
n, m = map(int, input().split())
a = list(map(int, input().split()))
bc = [list(map(int, input().split())) for _ in range(m)]

bc.sort(key=lambda x: x[1], reverse=True)
d = []
i = 0

while len(d) <= n and i < len(bc):
    d += ([bc[i][1]] * bc[i][0])
    i += 1

if len(d) > n:
    d = d[:n]

a += d
a.sort(reverse=True)

print(sum(a[:n]))


a, b = map(int, input().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 = int(input())
b = int(input())
if a >= 13 :
  print(b)
elif a >= 6 :
  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

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 > 5 and A <= 12:
    print(B//2)
else:
    print(A)


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

if A <= 5:
    print(0)
elif A > 5 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):
import collections

def int_cards(N, cards, operations):
    col_cards = collections.deque(sorted(cards), N)
    operations.sort(reverse=True)
    for c, b in operations:
        for _ in range(b):
            if col_cards[0] >= c:
                break
            col_cards.popleft()
            col_cards.append(c)
            
    print(sum(col_cards))
    
N, M = map(int, input().split())
A = list(map(int,input().split()))
operations = []
for i in range(M):
    B, C = map(int, input().split())
    operations.append([C, B])
    
int_cards(N, A, operations)

def ferris_wheel(age, cost):
    if age <= 5:
        print(0)
    elif age <= 12:
        print(int(cost / 2))
    else:
        print(cost)
        
a, b = map(int, input().split())
ferris_wheel(a, 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().sprit())
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(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 = int(input())
B = int(input())

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


A = input()

B = input()

if A >= 13:
  return B
elif 13> A >=6:
  return B/2
else:
  return 0

A = input()
B = input()

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

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

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

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

A, B = map(int, input().split())
 
if (A >=13):
  print(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):
a,b,c=(int(i) for i in input().split())
for i in range(0,9):
  c=a*c-b
  int c
  print(c)


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


a,b,c=(int(i) for i in input().split())
while i<9:
  i=i+1
  c=a*c-b
  print(c)


a,b,c=(int(i) for i in input().split())
for i in range(0,9):
  c=a*c-b
  print(int c)


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


n,m=(int(i) for i in input().split())
a=[]
a.append(int(j) for j in input().split())
for i in range(m):
  b,c=(int(i) for i in input().split())
  a.sort()
  for j in range(b):
    if a[j]<c:
      a[j]=c
r=0
for i in range(n):
  r=r+a[i]
print(r)

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

a,b,c=(int(i) for i in input().split())
for i in range(0,9):
  c=a*c-b
  int(c)
  print(c)


a,b,c=(int(i) for i in input().split())
d=9
for i in range(0,d):
  c=a*c-b
  print(c)


n,m=(int(i) for i in input().split())
a=0
b=0
for i in range(m):
  l,r=(int(j) for j in input().split())
  if l>a and r<b:
    a=l
    b=r
  elif l>a and r>=b:
    a=l
  elif r<b and l<=a:
    b=r
if b>=a:
	if n>a and n<b:
  		print(n-a+1)
	elif n>a and n>=b:
  		print(b-a+1)
	else:
  		print(0)
else:
  print(0)


n,m=(int(i) for i in input().split())
a=0
b=0
for i in range(m):
  l,r=(int(j) for j in input().split())
  if l>a and r<b:
    a=l
    b=r
  elif l>a and r>=b:
    a=l
  elif r<b and l<=a:
    b=r
if b>=a:
	if n>a and n<b:
  		t=n-a+1
        print(t)
	elif n>a and n>=b:
  		t=b-a+1
        print(t)
	else:
  		print(0)
else:
  print(0)


a,b,c=(int(i) for i in input().split())
for i in range(1,10):
  c=int(a*c-b)
  print(c)


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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

keisuu_lower = []
keisuu_upper = []
keisuu_lower_max = 0
keisuu_upper_min = float("inf")
keisuu_lower_count = 0
keisuu_upper_count = 0
keisuu_lower_sum = 0
keisuu_upper_sum = 0
teisuu = 0

for i in range(q):
    query = input()
    if query == "2":
        print(keisuu_lower_max,
              - keisuu_lower_sum + keisuu_lower_count * keisuu_lower_max
              + keisuu_upper_sum - keisuu_upper_count * keisuu_lower_max + teisuu)

    else:
        _, a, b = [int(i) for i in query.split()]
        keisuu_lower.append(a)
        keisuu_lower_count += 1
        keisuu_lower_max = max(keisuu_lower_max, a)
        keisuu_lower_sum += a

        if keisuu_lower_count > keisuu_upper_count + 1:
            keisuu_lower.sort()
            c = keisuu_lower.pop()
            keisuu_lower_count -= 1
            keisuu_lower_max = keisuu_lower[-1]
            keisuu_lower_sum -= c

            keisuu_upper.append(c)
            keisuu_upper.sort(reverse=True)
            keisuu_upper_count += 1
            keisuu_upper_min = keisuu_upper[-1]
            keisuu_upper_sum += c

        elif keisuu_lower_count < keisuu_upper_count:
            keisuu_upper.sort()
            c = keisuu_upper.pop()
            keisuu_upper_count -= 1
            keisuu_upper_min = keisuu_upper[-1]
            keisuu_upper_sum -= c

            keisuu_lower.append(c)
            keisuu_lower.sort(reverse=True)
            keisuu_lower_count += 1
            keisuu_lower_max = keisuu_lower[-1]
            keisuu_lower_sum += c

        if keisuu_lower_max > keisuu_upper_min:
            d = keisuu_upper.pop()
            e = keisuu_lower.pop()
            keisuu_lower.append(d)
            keisuu_upper.append(e)
            keisuu_lower_sum += d - e
            keisuu_upper_sum += e - d
            keisuu_lower_max = d
            keisuu_upper_min = e

        
        
        
        teisuu += b


a, b = [int(i) for i in 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):
N, M = map(int, input().split())
t_list = [[0] * 2 for _ in range(M)]
ans = 0
is_change = False
for i in range(M):
  t_list[i] = list(map(int, input().split()))
bottom = t_list[i][0]
up = t_list[i][1]
for i in range(M):
  t_bottom = t_list[i][0]
  t_up = t_list[i][1]
  if t_bottom > bottom and t_bottom <= up:
    bottom = t_bottom
    is_change = True
  if t_up < up and t_up >= bottom :
    up = t_up
    is_change = True
if is_change:
  print(ans)
else:
  print("0")

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

A, B = map(int, input().split())
if A >= 13:
  print(B)
elif A <= 12 and A >= 6:
  print(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):
#coding:utf-8
A,B = map(int,input().split())
if  A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(B / 2)
print(0)

#coding:utf-8
A,B = map(int,input(),split())
if  A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(B / 2)
print(0)

#coding:utf-8
A,B = map(int,input().split())
if  A >= 13:
    print(B)
elif 6 <= A and A <= 12:
    print(int(B / 2))
print(0)

#coding:utf-8
A,B = map(int,input().split())
if  A >= 13:
    print(B)
elif 6 <= A and A <= 12:
    print(int(B / 2))
else:
    print(0)

Verdicts: Wrong Answer

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

answer = []
tmp = []

L, R = map(int, input().split())
answer = list(range(L, R+1))

for i in range(M-1):
    L, R = map(int, input().split())
    for j in range(L, R+1):
        if j in answer:
            tmp.append(j)
        elif j > answer[-1]:
            continue
            
    answer = tmp
    tmp = []

print(len(answer))

A, B = map(int, 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= map(int,open(0).read().split())

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

a, b= map(int,open(0).read().split())

if (a >=13):
    print (b)
elif(a<=12 and 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(s) for s in input().split()]
if a>=13:
  print(b)
elif a<=6:
  print(b/2)
else:
  print 0

a,b = [int(s) for s in input().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):
def input_from_console():
    a, b = map(int, input().split())
    return a, b


def solve(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return b / 2
    else:
        return 0


def main():
    a, b = input_from_console()


if __name__ == "__main__":
    DEBUG = False
    if not DEBUG:
        main()

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


def solve(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return int(b / 2)
    return 0


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


if __name__ == "__main__":
    import sys
    if sys.gettrace():
        check_cases()
    else:
        main()

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 > 12:
  print(b)
  break
elif a > 5:
  print(b/2)
  break
else:
  print(0)

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

if a > 12:
  print(b)
elif a > 5:
  print(round(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):
def main():
    inp=list(map(lambda x:int(x),input().split()))
    A=inp[0]
    B=inp[1]

    res=B
    if 6<=B=<12:
        res=res//2
    elif B<=5:
        res=0

    print(res)

if __name__=="__main__":
    main()
    


def main():
    inp=list(map(lambda x:int(x),input().split()))
    A=inp[0]
    B=inp[1]

    res=B
    if A>=6 and A<=12:
        res=res//2
    elif A<=5:
        res=0

    print(res)

if __name__=="__main__":
    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):
age,money=map(int, input()).split()
assert 1<=age<=100 and 2<=b<=1000 and b%2==0
if age<=5:
	print('0')
elif 6<=age<=12:
  	print(money/2)
else:
  	print(money)


  

age,money=map(int, input().split())
assert 1<=age<=100 and 2<=b<=1000 and b%2==0
if age<=5:
    print('0')
elif 6<=age<=12:
    print(money/2)
else:
    print(money)


age,money=map(int, input()).split()
assert 1<=age<=100 and 2<=b<=1000 and b%2==0
if age<=5:
    print('0')
elif 6<=age<=12:
    print(money/2)
else:
    print(money)


age,money=map(float, input().split())
assert 1<=age<=100 and 2<=money<=1000 and money%2==0
if age<=5:
    print('0')
elif 6<=age<=12:
    print(money/2)
else:
    print(money)



try:
    age,money=map(int, input().split())
    assert 0<=age<=100 and 2<=money<=1000 and money%2==0
    if age<=5:
        print('0')
    elif 6<=age<=12:
        print(money//2)
    else:
        print(money)
except AssertionError:
    print('')



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):
A,B = map(int(input().split()))
if A>=13:
  print(B)
elif A>=6
  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)

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

A,B = map(int,input().split())
if A>=13:
  print(B)
elif A>=6:
  print(int(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())
if a<=5:
    X=0
elif a>5 and a<=12:
    X=a/2
else :
    X=a
print(X)

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

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):
r,d,x = map(int, input().split())
result=[]
result.append(x)
for i in range(10):
	x=r*x-d
	result.append(x)
for i in result[1:11]:
	print(i)

r,d,x = map(int, input().split())
result=[]
result.append(x)
for i in range(10):
	x=r*x-d
	result.append(x)
for i in result[1:10]:
	print(i)

r,d,x = map(int, input().split())
result=[]
result.append(x)
for i in range(10):
	x=r*x-d
	result.append(x)
for i in result[1:11]:
	print(int(i))

r,d,x = map(int, input().split())
result=[]
result.append(x)
for i in range(10):
	x=r*x-d
	result.append(x)
for i in result[1:11]:
	print(str(i))

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

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):
a,b = list(map(int, input().split()))
if a < 6:
  print(0)
elif a >= 6 & a <= 12:
  print(int(b/2))
else:
  print(b)

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

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

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):
A,B = map(input().split())
if A < 7:
  print(0)
elif A < 13:
  print(B//2)
else:
  print(B)

A,B = map(int, input().split())
if A < 6:
  print(0)
elif A < 13:
  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=map(int,input().split())
if a >= 13:
  print(a)
elif a >= 6:
  print(a//2)
else:
  print(0)

a,b=map(int,input().split())
if b >= 13:
  print(a)
elif b >= 6:
  print(a//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: 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):
A, B = map(int, input().split())
if A >= 13:
  print(B)
elif A <= 12 and A >= 6:
  print(B/2)
eiif A < 6:
  print(0) 

A, B = map(int, input().split())
if A >= 13:
	B = B
elif A <= 12 and A >= 6:
  B = B // 2
elif A < 6:
  B *= 0
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 >= 13:
  out = b
elif a >= 6:
  out = b/2
else:
  out = 0
print(out)

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

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

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, b = map(int,input().split())
cnt = 0
for i in range(1, m):
  l, r = map(int,input().split())
  if (l > b and r > b) or (l < a and r < a):
    print(0)
    exit()
  if a<=l<=b:
    a = l
  if r <= b:
    b = r
print(b-a+1)

a, b = map(int,input().split())
if a <= 5:
  print(0)
elif 5 < a <= 12:
  print(int(b/2))
elif 13 <= a:
  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: 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())
X = 0
if A >= 13:
	X = B
elif A < 13 AND A >= 6:
	X = B/2

print(X)

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

print(X)

Verdicts: Runtime Error

Accepted