TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b = map(nt,input().split())
print(min(a*n,b))

n,a,b = map(int,input().split())
print(min(a*n,b))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
def yo():
    l,r = map(int,input().split())

    a = l*r%2019
    for i in range(l,r) :
        for j in range(i+1,r+1):
            ij = i*j%2019
 
            if(ij==0) :
                return a

            if (a > ij) :
                a = ij


    return a



print(yo())

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

if( a*n < b ) :
    print(a*n)
else :
    print(b)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

b *= n

print(min(a, b))

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

a *= n

print(min(a, b))

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n, a, b = map(int,input().split())
if n*a >= b:
    print(b)
else:
    print(n*a)

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
L,R=map(int, input().split())

if R-L+1>=2019:
    print(0)
else:
    L %= 2019
    R %= 2019
    if L<R:
        k=L*(L+1)
        print(k)
    else:
        print(0)



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

Train = A * N
Taxi = B

if Train > Taxi:
    print(Taxi)
else:
    print(Train)


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n,a,b=INTM()
    print(n*a,b)
if __name__ == '__main__':
    do()

INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n,a,b=INTM()
    print(min(n*a,b))
if __name__ == '__main__':
    do()

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N,A,B = map(int,input().split())
if N*A >= B:
  print(N*A)
else:
  print(B)

N,A,B = map(int,input().split())
if N*A >= B:
  print(B)
else:
  print(N*A)


Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n, a, b = map(int, input().split())
print(min(n*a, b))

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
L, R = map(int, input().split())
from itertools import combinations

mod = 2019
l, r = L % mod, R % mod
if l > r:
    l, r = r, l

mini = l*r % mod
for i, j in combinations(range(l, r+1), 2):
    mini = min(mini, i*j % mod)
    if mini == 0:
        break
print(mini)

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

if N*A <= B:
    print(N*A)
else:
    print(B)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n,a,b=map(int, input().split())
if n*a >b:
  print(b)
else:
  print(n*a)

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n, a, b = map(int, input().split())
print(min(n*a,b))

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
def main01():
    data = input().split()
    nums = []

    for i in range(3):
        nums.append(int(data))
    densya = num[0] * num[1]
    if densya > num[2]:
        print(num[2])
    else:
        print(densya)


if __name__ == "__main__":
    main01()

def main01():
    data = input().split()
    num = []

    for i in range(3):
        num.append(int(data[i]))
    densya = num[0] * num[1]
    if densya > num[2]:
        print(num[2])
    else:
        print(densya)


if __name__ == "__main__":
    main01()

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

a, b, c = map(int, input().split())
s = a*b
if s <= c:
    print("{}".format(s))
   else:
       print("{}".format(c))

import math

n, d = map(int, input().split())
x = [list(map(int, input().split())) for i in range(n)]
cnt = 0
for i in range(n):
    for j in range(i+1, n):
        dis = 0
        for k in range(d):
            dis += (x[i][k]-x[j][k])**2
        if math.sqrt(dis) % 1 == 0:
            cnt += 1
print(cnt)

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

if n*a <= b:
    print(n*a)
else:
    print(b)
    

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N = input()
A = input()
B = input()
if ( N*A <= B ):
	print(N*A)
else:
	print(B)


N = input()
A = input()
B = input()
if ( N*A <= B ){
	print(N*A)
}
else print(B)


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

print(min(n*a,b))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

train = A*N
taxi  = B/N;

if taxi < train:
    print(taxi)
else:
    print(train)


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

train = A*N
taxi  = B/N

if taxi < train:
    print(taxi)
else:
    print(train)



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

train = A*N
taxi  = B

if taxi < train:
    print(taxi)
else:
    print(train)



Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n,a,b = map(int, input().split())
print(min(b,a*n))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
nab = input().split()
n = int(nab[0])
a = int(nab[1])
b = int(nab[2])

if n*a > b:
  print(n*a)
else:
  print(b)

nab = input().split()
n = nab[0]
a = nab[1]
b = nab[2]

if n*a > b:
  print(n*a)
else:
  print(b)

nab = input().split()
n = int(nab[0])
a = int(nab[1])
b = int(nab[2])

if n*a > b:
  print(b)
else:
  print(n*a)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
import numpy as np

def mod_2019(L, R):
  year = 2019
  if (R - L) >= year:
    return 0
 
  import numpy as np
  array = np.array([[i for i in range(L, R)]])
  if (array % year).min() == 0:
    return 0
  
  
  array_2d = np.dot(array.T, array)
  for i in range(len(array_2d[0])):
     array_2d[i][i] = year -1
  return (array_2d % year).min()
  

L, R = (int(i) for i in input().split())

print(mod_2019(L, R))

import time

def mod_2019(L, R):
  year = 2019
  if (R - L) >= year:
    return 0
 
  import numpy as np
  array = np.array([[i for i in range(L, R)]])
  if (array % year).min() == 0:
    return 0
  
  
  array_2d = np.dot(array.T, array)
  for i in range(len(array_2d[0])):
     array_2d[i][i] = year -1
  return (array_2d % year).min()
  

L, R = (int(i) for i in input().split())

print(mod_2019(L, R))

N, A, B = (int(i) for i in input().split())
cost = N * A if N * A < B else B
print(cost)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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


n,a,b=map(int,input().split())
print(min(a*n,b))


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    n=int(input())
    A=list(map(int,input().split()))
    B=[0]*n
    B[0]=sum(A)-sum(A[1::2])*2
    for i in range(1,n):
        B[i]=(A[i-1]-B[i-1]//2)*2
    print(*B)
    
if __name__=='__main__':
    main()

n,a,b=map(int,input().split())
print(min(n*a,b))


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
input_data=input()
N,D=map(int,input_data.split())
X=[] 
for n in range(N) :
    X_data=input() 
    X.append(list(map(int,X_data.split())))

output=0

for i in range(N):
    for j in range(N):
        if i>j:
            dist=0
            for y, z in zip(X[i],X[j]):
                dist=dist+(y-z)**2
            if int(dist**(1/2))==dist**(1/2):
                output=output+1
            else:
                output=output+0
        else: pass
print(output)

input_data=input()
input_data=input_data.split()
a=int(input_data[0])
b=int(input_data[1])
c=int(input_data[2])

if a*b<c:
    output=a*b
    
else :
    output=c

print(output)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

N,A,B=map(input().split())
print(max(N*A,B))

N,A,B=map(int,input().split())
print(min(N*A,B))

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
x,y,z = map(int,input().stlip())
x = int(x)
y = int(y)
z = int(z)
if x＊y > z:
  print(x＊y)
else:
  print(z)


x,y,z = map(int,input().stlip())
x = int(x)
y = int(y)
z = int(z)
if x*y > z:
  print(x*y)
else:
  print(z)


x,y,z = map(int,input().split())
x = int(x)
y = int(y)
z = int(z)
if x*y > z:
  print(x*y)
else:
  print(z)


x,y,z = input().stlip()
x = int(x)
y = int(y)
z = int(z)
if x＊y > z:
  print(x＊y)
else:
  print(z)


x,y,z = input().split()
x = int(x)
y = int(y)
z = int(z)
if x＊y > z:
  print(x＊y)
else:
  print(z)


x,y,z = map(int,input().split())
x = int(x)
y = int(y)
z = int(z)
if x*y < z:
  print(x*y)
else:
  print(z)


Verdicts: Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N = int(input())
A = int(input())
B = int(input())
train = A * N
if train <= B:
    print(train)
else:
    print(B)

N, A, B= int(input()), int(input()), int(input())
train = A * N
if train <= B:
    print(train)
else:
    print(B)

get = input().split()
N = int(get[0])
A = int(get[1])
B = int(get[2])
train = A * N
if train <= B:
    print(train)
else:
    print(B)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

if NA > B:
    print(B)
elif NA < B:
    print(AN)
else:
    print(AN)

N = int(input())
A = int(input())
B = int(input())

if N*A > B:
    print(B)
elif N*A < B:
    print(A*N)
else:
    print(A*N)

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

if N*A > B:
    print(B)
elif N*A < B:
    print(A*N)
else:
    print(A*N)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n, a, b=list(map(int, input().split()))
ans = n*a+b
print(ans)

n, a, b=list(map(int, input().split()))
ans = min(n*a, b)
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
l,r=map(int,input().split())
L=l%2019
R=r%2019
min=2020
if L>R:
    R=R+2019
for j in range(L+1,R+1):
    for i in range(L,j):
        if min > i*j%2019:
            min = i*j%2019
print("{}".format(min))


n,a,b=map(int,input().split())
if n*a<b:
    print("{}".format(n*a))
else:
    print("{}".format(b))


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
inp = list(map(int, input().split()))
print (inp[0] * inp[1] + inp[2])

inp = list(map(int, input().split()))
if (inp[0] * inp[1]) <= ip[2] : 
	print (inp[0] * inp[1])
else :
    print (inp[2])

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N = input()
A = input()
B = input()
if NA > B:
  return B
else:
  return NA

N,A,B=map(int,input().split())
def kansuu(N,A,B):
	if N*A>=B:
	  return B
	else:
 	  return NA

N,A,B=map(int,input().split())
def kansuu(N,A,B):
	if N*A>B:
	  return B
	else:
 	  return NA

N = int(input())
A = int(input())
B = int(input())

def kansuu(N,A,B):
	if N*A>B:
	  return B
	else:
 	  return NA

import numpy as np
N,A,B=map(int,input().split())
if N*A > B:
  print(B)
else:
  print(N*A)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
a,b,c = list(map(input().split()))
print(min(a*b, c))


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

print(min(a*b, c))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

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

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n,a,b = map(int,input().split())
print(min(n*a,b))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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


n,a,b=map(int, input().split())
if n*a >b:
  print(b)
else:
  print(a)


n,a,b=map(int, input().split())
if n*a >=b:
  print(b)
else:
  print(n*a)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
from time import sleep
n, a, b = map(int, input().split())
sleep(3.0)
print(min(a * n, b))

# coding: utf-8
# Your code here!


N,A,B = map(int,input().split()) 
print(B if A*N > B else A*N)

Verdicts: Time Limit Exceeded

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

N = int(a[1])
A = int(a[2])
B = int(a[3])

if A * N  >= B * N:
  print B * N
else:
  print A * N


a = input().split()
 
N = int(a[0])
A = int(a[1])
B = int(a[2])
 
if A * N  >= B:
  print (B)
else:
  print (A * N)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b = map(int,input().split())
if b > n*a:
  print(a*c)
elif b < a*a:
  print(b)
else:
  print(b)


n,a,b = map(int,input().split())
if b > n*a:
  print(a*n)
elif b < a*a:
  print(b)
else:
  print(b)


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

N,A,B=map(int,input().split())
print(min(N*A,B))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

print("{}".format(min(n*a, b)))

n = int(input())
a = int(input())
b = int(input())

print("".format(min(n*a, b)))

n, a, b = input().split()
n = int(n)
a = int(a)
b = int(b)
print("{}".format(min(n*a, b)))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

print(min(a+n,b))


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

print(min(a*n,b))


Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
# -*- coding: utf-8 -*-
import sys


def answer(N, A, B):
    rail = N * A
    taxi = B

    return min(rail, taxi)


if __name__ == '__main__':
    args = sys.stdin
    answer(args[0], args[1], args[2])


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


def answer(N, A, B):
    rail = N * A
    taxi = B

    return min(rail, taxi)


if __name__ == '__main__':
    args = sys.stdin.read().split(' ')
    answer(args[0], args[1], args[2])


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


def answer(N, A, B):
    rail = N * A
    taxi = B

    print(min(rail, taxi))


if __name__ == '__main__':
    args = sys.stdin.read().split(' ')
    answer(int(args[0]), int(args[1]), int(args[2]))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b = map(input().split())
print(n*a if n*a<b else b)

n,a,b = map(int,input().split())
print(n*a if n*a<b else b)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N,A,B=map(int,input().split();print(min(A*N,B))

n,a,b = map(int,input().split())
print(min(n*a,b))


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
A,B,N=map(int,iput(),split())
if A*N<B :
  print(A*N)
else:
    print(B)

A,B,N=map(int,iput(),split())
if A*N<B :
  print("A*N")
else:
  print("B")

A,B=map(int,iput(),split())
if A*N<B :
  print(A*N)
else:
    print(B)

A,B=map(int,iput(),split())
if A*N<B :
  print"A*N"
  else:
    print"B"

N,A,B=map(int,iput(),split())
if A*N<B :
  print(A*N)
else:
    print(B)

A,B=map(int,iput(),split())
if A*N<B :
  print("A*N")
else:
    print("B")

N,A,B=map(int,input().split())
if A*N<B :
  print(A*N)
else:
  print(B)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b-map(int,input().split())
print(min(a*n,b))

n,a,b=map(int,input().split())
print(min(a*n,b))


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
str = input("input: ")
n, a, b = str.split(' ')

#print('n: ', n)
#print('a: ', a)
#print('b ', b)

fare_taxy = int(b)
fare_bus = int(a) * int(n)

if fare_taxy < fare_bus:
    print(fare_taxy)
else:
    print(fare_bus)

str = input("")
n, a, b = str.split(' ')

fare_taxy = int(b)
fare_bus = int(a) * int(n)

if fare_taxy < fare_bus:
    print(fare_taxy)
else:
    print(fare_bus)

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

int train=A*N
int taxi=B
if (train<=taxi):
  print(train)
else:
  print(taxi)

N=int(input())
A=int(input())
B=int(input())

train=A*N
taxi=B
if (train<=taxi):
  print(train)
else:
  print(taxi)

N=int(input())
A=int(input())
B=int(input())

int train=A*N
int taxi=B
if (train<=taxi):
  print(train)
else:
  print(taxi)

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

train=a[0]*a[1]
taxi=a[2]
if (train<=taxi):
  print(train)
else:
  print(taxi)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
import itertools
import numpy as np

def mod(n):
    return n % 2019


L, R = map(int, input().split())

a = list(range(L,R+1))
p = list(itertools.combinations(a, 2))
a1, a2 = map(list, zip(*p))
ans = np.array(a1)*np.array(a2)
ans = map(mod,ans)
print(min(ans))


def mod(n):
    return n % 2019

import itertools
import numpy as np
import operator as op
L, R = map(int, input().split())

a = list(range(L,R+1))
p = list(itertools.combinations(a, 2))
a1, a2 = map(list, zip(*p))
ans = np.array(a1)*np.array(a2)
ans = map(mod,ans)
print(min(ans))



N,A,B = map(int, input().split())
print((B > (N*A)) and B or N*A)

N,A,B = map(int, input().split())
print((B < (N*A)) and B or N*A)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):

N, A, B  = input()

train = N * A

if(train < B) :
  print(train)
else:
  print(B)


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

train = N * A

if(train < B) :
  print(train)
else:
  print(B)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
T = N * A

L = [T, B]
min(L)

N, A, B = map(int, input().split())
T = N * A

L = [T, B]
print(min(L))



Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

if n*a >= b:
  print(n*a)
else:
  print(b)

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

if n*a <= b:
  print(n*a)
else:
  print(b)

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

if a*n >= b:
    print(a*n)
else:
    print(b)


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

if a*n <= b:
    print(a*n)
else:
    print(b)


Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
str = input().split()
l_org = int(str[0])
r_org = int(str[1])

l = 2019
r = 2019

if (2019 > l_org):
	l = l_org
	
if (2019 > r_org):
	r = r_org

min = 2019

for i in range(l,r-1):
	for j in range(i+1,r):
		m = (i * j) % 2019
		if m < min:
			min = m

print(min)


str = input().split()

train = int(str[0]) * int(str[1])
taxi = int(str[2])

if (train >= taxi):
	print(train)
else:
	print(taxi)


str = input().split()

train = int(str[0]) * int(str[1])
taxi = int(str[2])

if (train <= taxi):
	print(train)
else:
	print(taxi)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n,a,b = map(int,input().split())
print(min(n * a, b))

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N, A, B = map(int,input().split())
t = N*A
if t > B:
  print(B)
elif t < B:
  print(t)
elif t = B:
  print(B)


N, A, B = map(int,input().split())
t = N*A
if t > B:
  print(B)
else:
  print(t)


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
#%%
import sys
def input():
    return sys.stdin.readline().rstrip()

def main():
    L, R = map(int, input().split())

    R_r = R%2019
    if (R - L) > R_r :
        print(0)
    else:
        L_r = L%2019
        ans = L_r*(L_r+1)%2019
        for l in range(L_r, R_r):
            for r in range(l+1, R_r+1):
                ans = min(ans, l*r%2019)
        print(ans)

# %%
if __name__ == '__main__':
    main()

# %%
# from atcoder_test import doTest
# doTest("abc133","c",main)

#%%
import sys
def input():
    return sys.stdin.readline().rstrip()

def main():
    L, R = map(int, input().split())

    R_r = R%2019
    if (R - L) >= R_r :
        print(0)
    else:
        L_r = L%2019
        ans = (L_r*(L_r+1))%2019
        for l in range(L_r, R_r):
            for r in range(l+1, R_r+1):
                ans = min(ans, (l*r)%2019)
        print(ans)

# %%
if __name__ == '__main__':
    main()

# %%
# from atcoder_test import doTest
# doTest("abc133","c",main)


#%%
import sys
def input():
    return sys.stdin.readline().rstrip()

def main():
    N, A, B = map(int, input().split())

    print(min(A*N, B))

# %%
if __name__ == '__main__':
    main()

# %%
# from atcoder_test import doTest
# doTest("abc133","a",main)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

N *= A

if (N) < B:
    print(N)
else:
    print(B)

N = int(input())
A = int(input())
B = int(input())

if (N*A) < B:
    print(N*A)
else:
    print(B)

N = int(input())
A = int(input())
B = int(input())

if N*A < B:
    print(N*A)
else:
    print(B)

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

N *= A

if (N) < B:
    print(N)
else:
    print(B)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
inp = input().split(" ")
n = int(inp[0])
a = int(inp[1])
b = int(inp[2])

print(max(n*a, b))

inp = input().split(" ")
n = int(inp[0])
a = int(inp[1])
b = int(inp[2])

print(min(n*a, b))

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

N, A, B = map(int, input().split())
print(min(N*A, B))

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
def input_from_console():
    l, r = map(int, input().split())
    return l, r


def solve(l, r):
    minimum = 2020
    if r - l >= 2019:
        return 0
    a, b = l % 2019, r % 2019
    if r // 2019 > l // 2019:
        return 0
    for i in range(a, b):
        for j in range(a + 1, b + 1):
            minimum = min(minimum, (i * j) % 2019)
    result = minimum
    return result


def main():
    l, r = input_from_console()
    print(solve(l, r))


if __name__ == "__main__":
    import sys

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



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


def solve(n, a, b):
    result = min(a * n, b)
    return result


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


if __name__ == "__main__":
    import sys

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
d = list(map(int, input().split()))
N = d[0]
A = d[1]
B = d[2]

if N*A >= B :
    return(N*A)
else:
    return(B)

1

d = list(map(int, input().split()))
N = d[0]
A = d[1]
B = d[2]

if N*A >= B :
    return(B)
else:
    return(N*A)

d = list(map(int, input().split()))
N = d[0]
A = d[1]
B = d[2]

if N*A >= B :
    print(B)
else:
    print(N*A)

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

densya = N * A
if densya >= B:
	print(B)
else:
	print(A)

input.split() = list
densya = list[1] * list[2]
if densya >= list[3]:
	print(list[3])
else:
	print(densya)

a,b,c = map(int,input().split())
print(min(a*b , c))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N, A, B = (int(i) for i in input().split())
if N * A >= B:
  print(N * A)
else:
  print(B)

N, A, B = (int(i) for i in input().split())
if (N * A) >= B:
  print(B)
else:
  print(N * A)

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
import numpy as np

n, d = map(int,input().split())

listA=[] 
while True:
    try:
        listA.append(list(map(int,input().split())))

    except:
        break;
        

count = 0
for i in range(n):
    for j in range(n):
        if(i < j):
            dis = 0
            for k in range(d):
                dis += (listA[i][k]-listA[j][k]) ** 2
            dis = np.sqrt(dis)
            if(dis.is_integer()):
                count += 1


print(count)


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

if( a*n < b ):
    print(a*n)
else:
    print(b)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n=int(input())
a=int(input())
b=int(input())
densha=n*a
taxi=b
if densha>taxi:
    print(taxi)
elif densha<taxi:
    print(densha)
else:
    print(densha)

n=int(input())
a=int(input())
b=int(input())
densha=n*a
taxi=b
if densha>taxi:
    print(taxi)
elif densha<taxi:
    print(densha)
else :
    print(densha)

n,a,b=map(int,input().split())
densha=n*a
taxi=b
if densha>taxi:
    print(taxi)
elif densha<taxi:
    print(densha)
else:
    print(densha)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

if D>B:
    print(D)
else: 
    print(G)

N,A,B = map(int,input().split())
D  = A*N
G  =  B*N
if D>G:
    print(D)
else: 
    print(G)

N,A,B = map(int,input().split())
D  = A*N
if D>B:
    print(D)
else: 
    print(B)

N,A,B = map(int,input().split())
D  = A*N
if D>B:
    print(B)
else: 
    print(D)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
import sys
l,r=map(int,sys.stdin.readline().split())
r_m=r%2019
l_m=l%2019
min=2019
if r-l>2019-r_m:
    print(0)
else:
    retu=range(l_m,r_m+1)

    for i in range(len(retu)):
        for j in range(i+1,len(retu)):
            s=retu[i]*retu[j]%2019
            if s<min:
                min=s
print(min)


import sys
a,b,c=map(int,sys.stdin.readline().split())
print(max(a*b,c))


import sys
a,b,c=map(int,sys.stdin.readline().split())
print(min(a*b,c))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N, A, B = map(int, input().split())
if A * N > B:
	print(A * N)
else:
	print(B)

N, A, B = map(int, input().split())
if A * N > B:
	print(B)
else:
	print(A * N)

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n,a,b=map(int,input().split())
print(min(n*a,b))

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n, a, b = map(input().split())
print(min(n*a, b))

n, a, b = map(int, input().split())
print(min(n*a, b))


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

print(min(kake,B))

N,A,B = map(int,input().split())
kake = N*A

print(min(kake,B))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

print(n*a+b)


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

print(min(n*a,b))


Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

c=n*a

if c > b:
    print(c)
else:
    print(b)

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

c=n*a

print(min(b,c))

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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









# x = A3 - (A2 - (A1 - x))
# x = A3 - A2 + A1 - x
# 2x = A3 - A2 + A1
summary = 0

for i in range(N):
    if i % 2 == 0:
        summary += A[i]
    else:
        summary -= A[i]

for i in range(N):
    print(summary)
    summary = (A[i] - (summary//2)) * 2


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

if A * N < B:
    B = A * N

print(B) 

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n ,a , b = map(int,input(),split())
t = n*a
if t>b:
    print(b)
else:
    print(t)

n , a , b = map(int,input().split())
t = n*a
if t>b:
    print(b)
else:
    print(t)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

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

if i[0] * i[1] <= i[2]:
    print(i[0] * i[1])
else:
    print(i[2])

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N=(input())
A=(input())
B=(input())

a=N*A
b=B
if N*A<=B:
	print(a)
else:
	print(b)

N,A,B=(int(i) for i in input().split())

a=N*A
b=B

if a<=b:
  print(a)
else:
  print(b)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

C=A*N
if C<B:
  print(B)
elif C>B:
  print(C)

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

C=A*N
if C<=B:
  print(C)
elif C>B:
  print(B)

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

if A * N > B:
    print(B)
else:
    print(A * N)

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

total_price = A + (N * B)

print(total_price - max(total_price))


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


if N * A > B:
    print(B)
else:
    print(N * A)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
a, b , c = map(input().split())
print(min(a*b, c))

a, b , c = map(int, input().split())
print(min(a*b, c))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
L,R =(int(x) for x in input().split())
if(L<2019<R):
    print(1)
elif(L<=3 and R>=673):
    print(0)
else:
    if((L%2019)^2 < (R%2019)^2):
        if(((L+1)%2019)^2 < (R%2019)^2):
            print((L*(L+1))%2019)
        else:
            print((L*R)%2019)
    else:
        if((L%2019)^2 < ((R-1)%2019)^2):
            print((R*L%2019))
        else:
            print(((R+1)*R)%2019)


N,A,B =(int(x) for x in input().split())
An = N*A
if(An > B):
    print(An)
else:
    print(B)

N,A,B =(int(x) for x in input().split())
An = N*A
if(An > B):
    print(An)
else:
    print(B)

N,A,B =(int(x) for x in input().split())
An = N*A
if(An < B):
    print(An)
else:
    print(B)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

if result >= 0:
    print(cab)
else:
    print(train)

n,a,b=map(int,input().split())
train=a*n
taxi=b
print(min(train,taxi))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

N,A,B = map(int,input().split())
tr = N*A
if tr < B:
  print(tr)
else:
  print(B)

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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

n,a,b = map(int,input().split())
print(min(a*n, b))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N,A,B = (int(x) for x in input(),split())
print(min(N*A,B))

N,A,B = (int(x) for x in input().split())
print(min(N*A,B))

Verdicts: Runtime Error

Accepted