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):
a=list(map(int,input.sprit()))
print(min(a[0]*a[1],a[2]))

a=list(map(int,input().sprit()))
print(min(a[0]*a[1],a[2]))

a=list(map(int,input.split()))
print(min(a[0]*a[1],a[2]))


a=list(map(int,input().split()))
print(min(a[0]*a[1],a[2]))

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

print(max(A*N,B))

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

print(max(A*N,B))

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

print(min(A*N,B))

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())
train = a*n
taxi = b//n
print(min(train,taxi))


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


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>=int(B/N):
  print(B)
else:
  print(A*N)

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,D = map(int,input().split())
A=[]
C=0
D=0
E=0
for i in range (1,N+1):
    A.append(i)
for i in range (0,N):
    A[i]=list(map(int,input().split()))
for i in range (0,N-1):
    for j in range(i,N-1):
        for k in range(0,D):
            B=(A[j][k]-A[j+1][k])**2
            C+=B
        D=C
        C=0
        if ((D)**(1/2))%1 ==  (D)**(1/2):
            E+=1
print(E)









L,R=map(int,input().split())
M=2019
import sys
for i in range(L,R):
    for j in range(i+1,R+1) :
        if (i*j)%2019 < M :
            M = (i*j)%2019
            if M == 0:
                sys,exit()
print (M)

L,R=map(int,input().split())
M=2019
for i in range(L,R):
    for j in range(i+1,R+1) :
        if (i*j)%2019 < M :
            M = (i*j)%2019
print (M)



N = int(input())
A = list(map(int,input().split()))
B1 = 0
B = []
for i in range(0,N):
    if i%2 == 0:
        B1 += A[i]
    else:
        B1 -= A[i]
B.append(B1)
XX = B1
for i in range (0,N-1) :
    X = 2*A[i]-XX
    B.append(X)
    XX = X
print(B)


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


Verdicts: 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):
people, train, taxi = input("Enter a three value: ").split()
price1 = int(people) * int(train)
print(min(price1, int(taxi)))

people, train, taxi = input("Enter a three value: ").split()

price1 = int(people) * int(train)
price2 = int(people) * int(taxi)

answ = min(price1, price2)
print(answ)


people, train, taxi = input("Enter a three value: ").split()

price1 = int(people) * int(train)

answ = min(price1, int(taxi))
print(answ)


people, train, taxi = input().split()
price1 = int(people) * int(train)
print(min(price1, int(taxi)))


Verdicts: Wrong Answer

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(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):
x = raw_input().split()
if(x[0] * x[1] < x[2]):
  print(x[0] * x[1])
  elif:
    print(x[2])

x =  [int(s) for s in input().split()]
if(x[0]*x[1]<x[2]):
  print(x[0]*x[1])
else:
  print(x[2])


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())
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):
S = input().sprit()
N = int(S[0])
A = int(S[1])
B = int(S[2])
if B > A*N:
  print(A*N)
else:
  print(B)

N,A,B = list(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):
from sys import stdin
N,A,B = [int(x) for x in stdin.readline().rstrip().split()]
print(max(N*A,B))

from sys import stdin
import numpy as np
import itertools
N,D = [int(x) for x in stdin.readline().rstrip().split()]
data = []
for _ in range(N):
    data.append([int(x) for x in stdin.readline().rstrip().split()] + [_])

ans = 0
for j in list(itertools.product(data,repeat=2)):
    tot = 0
    #print(j)
    for k,l in zip(j[0][:D] , j[1][:D]):
        tot += abs(k-l)**2
        #print(tot)
    if j[0][-1] < j[1][-1]:
        if np.sqrt(tot).is_integer():
            ans += 1
print(ans)

from sys import stdin
N,A,B = [int(x) for x in stdin.readline().rstrip().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):
N,A,B = map(int, input().split())
ans = max(B, A*N)
print(ans)

N,A,B = map(int, input().split())
ans = min(B, A*N)
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):
ns = input().split(" ")
if int(ns[0])*int(ns[1]) <= int(ns[2]):
  print(int(ns[0])*int(ns[1]))
else:
  print(int(ns[2])

ns = input().split(" ")
if int(ns[0])*int(ns[1]) <= int(ns[2]):
  print(int(ns[0])*int(ns[1]))
else:
  print(int(ns[2]))

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)
a = N*A
print(min(a,B))

N,A,B = map(int,input().split())
a = N*A
print(min(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):
S_list = list(map(int,input().split()))
n,a,b = S_list
print(min(n * a ,b)

S_list = list(map(int,input().split()))
n,a,b = S_list
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,c=map(int,input().split())
print(c if c >= a*b else a*b)

a,b,c=map(int,input().split())
print(c if c <= a*b else 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):
# -*- coding: utf-8 -*-
import itertools
import math

N, D = map(int, input().split())

X = [[0 for x in range(D)] for y in range(N)]

for n in range(N):
    X[n] = list(map(int, input().split()))

ans = 0
for target in itertools.combinations(X, 2):
    res = sum([(y - z) ** 2 for y, z in zip(target[0], target[1])])
    res = math.sqrt(res)
    if res.is_integer():
        ans += 1

print(ans)


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= list(map(int, input().split()))
if N*A>=B:
    print(B)
else
    print(N*A)

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

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 numpy as np
 
N = int(input())
X = [int(i) for i in input().split()]
a = np.eye(N)
b = np.roll(a, 1, axis=1)
A = a + b
 
Y = np.linalg.solve(A, X)
 
Y = list(map(lambda x: str(int(x*2)), Y))
print(' '.join(Y))

a = [int(i) for i in input().split()]
x = a[0] * a[1]
y = a[2]

if (x<y):
  print(x)
else:
  print(y)

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=input().split()
d=a*b
if d<=c:
  print(d)
else:
  print(c)

a,b,c=input().split()
a1=int(a)
b1=int(b)
c1=int(c)
d=a1*b1
if d<=c1:
  print(d)
else:
  print(c1)

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):
#!/usr/local/bin/python3
#coding:utf-8
#import numpy as np

def main():
   in0 = input()
   IN = in0.split(' ')

   N = int(IN[0])
   A = int(IN[1])
   B = int(IN[2])

   train = N*A
   taxi = B

   if(train>taxi):
      print ("%s" % (train))
   else:
      print ("%s" % (taxi))

if __name__ == "__main__":
   main()

#!/usr/local/bin/python3
#coding:utf-8
#import numpy as np


def main():

   in0 = input()

   IN = in0.split(' ')

   N = int(IN[0])
   A = int(IN[1])
   B = int(IN[2])

   train = N*A
   taxi = B

   if(train<taxi):
      print ("%s" % (train))
   else:
      print ("%s" % (taxi))
      



if __name__ == "__main__":
   main()

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(a*n)
else:
  print(b)

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


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(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):
a = input().split()
print(a)
if int(a[0])*int(a[1])<int(a[2]):
  print(int(a[0])*int(a[1]))
else:
  print(int(a[2]))


a = input().split()
if int(a[0])*int(a[1])<int(a[2]):
  print(int(a[0])*int(a[1]))
else:
  print(int(a[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,D =map(int, input().split())
all_list = [list(map(int, input().split())) for i in range(N)]
#>>>4
count = 0
for n in range (N):
    for nn in range(N):
        distance = 0
        for d in range(D):
            kou = (all_list[n][d] - all_list[nn][d])**2
            distance += kou
        for s in range(250):
            if distance == s**2:
                count += 1
                break
print(round((count - N) / 2))

N,D =map(int, input().split())
all_list = [list(map(int, input().split())) for i in range(N)]
count = 0
for n in range (N):
    for nn in range(n):
      distance == sum([all_list[n][d]-all_list[nn][d] for d in range(D)])
    for s in range(250):
      if distance == s**2:
        count += 1
print(count)

N,D =map(int, input().split())
all_list = [list(map(int, input().split())) for i in range(N)]
#>>>4
count = 0
for n in range (N):
    for nn in range(N):
        distance = 0
        for d in range(D):
            kou = (all_list[n][d] - all_list[nn][d])**2
            distance += kou
        for s in range(250):
            if distance == s**2:
                count += 1
                break
print(round((count - N) / 2))

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

n,a,b = map(int,input().split())
if n*a<=b:
  print(n*a)
elif n*a>=b:
  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):
a=list(map(int,input()))
if a[0]*a[1]>a[2]:
  print(a[2])
else:
  print(a[0]*a[1])


a=list(map(int,input().split()))
print(min(a[0]*a[1],a[2])
      

a=list(map(int,input().split()))
print(min(a[0]*a[1],a[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):
l, r = map(int, input().split())
mod = []
for i in range(l, min(r+1,l+2019)):
    mod.append(i % 2019)
mod = sorted(list(mod))
print(mod[0] * mod[1])

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):
L, R = map(int, input().split())
mod = 2019

l = L // mod
r = R // mod

if l != r:
    print(0)
else:
    l_ = L % mod
    r_ = R % mod
    ans = 2019
    for i in range(l_, r_):
        for j in range(i+1, r_+1):
            a = i * j % mod
            ans = min(ans, a)
            if ans == 0:
                break
        if ans == 0:
            break
    print(ans)


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):
price = list(map(int, input().rstrip().split()))
print(min(price[0]*price[1], price[2])

price = list(map(int, input().rstrip().split()))
print(min(price[0]*price[1], price[2]))

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 = map(int, input().split())
gap = r-l

vlist = []
mini = 2019
xlist = []

for x in range(gap+1):
    v = (l+x) % 2019
    vlist.append(v)

mini = min(vlist)
for x in vlist:
    if v <= mini+1:
        xlist.append(x)
        

xlist.sort()
#print(vlist)

#res = i*j % 2019
print((vlist[0]*vlist[1])%2019)

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

train = n*a
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):
import math
import itertools

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

c = list(itertools.combinations(X, 2))


ans = 0

for i in range(len(c)):
  d = 0
  for j in range(b):
    d += (c[i][0][j]-c[i][1][j])**2
    if j == b-1:
      d = math.sqrt(d)
      if d.is_integer():
        ans = ans+1

print(ans)



a,b,c=map(int,input().split())
m = a*b
n = c
if m<=n:
  print(m)
  
else:
  print(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())
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 = map(int, 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: 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().split(" ")
print(N)

if (int(N[0]) * int(N[1])) > int(N[2]):
    print(int(N[2]))
else:
    print(int(N[0])*int(N[1]))


N = input().split(" ")
#print(N)

if (int(N[0]) * int(N[1])) > int(N[2]):
    print(int(N[2]))
else:
    print(int(N[0])*int(N[1]))


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 math

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

import math

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

n,a,b = map(int,input().split())
if n*a>b:
  print(b)
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):
def main():
    l,r = map(int,input().split(' '))
    tmp = 2019
    if l//2019 < r//2019:
        print(0)
    else:
        for i in range(l,r):
            if tmp > (i*(i+1))%2019:
                tmp = (i*(i+1))%2019
                if tmp == 0:
                    print(i,i+1)
        print(tmp)

if __name__ == '__main__':
    main()

def main():
    n,a,b = map(int,input().split(' '))
    print(min(int(n*a),b))

if __name__ == '__main__':
    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):
n,d = map(int,input().split())
x = [list(map(int,input().split())) for _ in range(n)]
ans = 0
for i in range(n):
	for j in range(i):
		ans += (sum((a-b)**2 for a,b in zip(x[i],x[j]))**0.5).is_integer()
print(ans)

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())
sum=min(N*A,B)
print(sum)

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

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)
else:
    print(A*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(N*A < B):
    print(A)
else:
    print(B)

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

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

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

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

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):
#A
n, a, b = map(int, input().split())
print(min(n*a,b))A

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

in = in.split()

N = in[0]
A = in[1]
B = in[2]


train_cost = N*A
taxi_cost  = B

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


S = input()

S = S.split()

N = int(S[0])
A = int(S[1])
B = int(S[2])


train_cost = N*A
taxi_cost  = B

if train_cost >= taxi_cost:
    print(taxi_cost)
else:
    print(train_cost)


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):
# coding:utf-8

line = input()
ls = line.split(" ")
n = ls[0]
a = ls[1]
b = ls[2]

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

# coding:utf-8

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

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


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

r = min(r, l = 4038);
ans = 2018
for i in range(l, r + 1):
    for j in range(i + 1, r + 1):
        x = i * j % 2019
        ans = min(ans, x)

print(ans)

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(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):
alpha = N * A
if B <= alpha:
  print(B)
  
elif B > alpha:
  prihnt(alpha)

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

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

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

n, a, b = map(int, input().split())
def solve():
	return min(n * a, b)
  
print(solve())

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

a = R % 2019
b = L % 2019

if a > 2019 // 2:
    a = 2019 - a
if b > 2019 // 2:
    b = 2019 - b

print(a * (a+1) % 2019)


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

train=n*a
taxi=b

fare=min(taxi,train)

print(str(fare))

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

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

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

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

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):
l,r = map(int,input().split())
b = sorted([i%2019 for i in range(l,min(r+1,l+2019))])
print(b[0]*b[1])

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

print(max(int(N*A),B))

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

print(min(int(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())
diff = R-L
for n in range(1):
    if diff > 2019:
        ret = 0
        break
        
    results = []
    for i in range(L, R):
        for j in range(i+1,R+1):
            results.append((i*j)%2019)
        ret = min(results)
print(ret)

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

keep=L*R
for i in range(L,R+1):
  for j in range(i+1,R+1):
    mod=(i*j) % 2019
    if mod<keep:
      keep=mod
      j=j+2019
print(keep)

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

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


import sys
print('python-izm')

args = sys.argv

n = args[0]
a = args[1]
b = args[2]

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



import sys

args = sys.argv

n = args[1]
a = args[2]
b = args[3]

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



import sys
print('python-izm')

args = sys.argv

n = args[1]
a = args[2]
b = args[3]

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



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

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


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

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


Verdicts: Wrong Answer

Runtime Error

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):
l,r = map(int, input().split())
if r-l+1>2019:
  print(0)
  exit()
L = []
for i in range(l,r):
  for j in range(i+1,r):
    a = i*j
    b = a%2019
    L.append(b)
print(min(L))


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

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 = 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):
min(A*N,B)

N,A,B = list(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):
chimpo = N
manko = A
B
AC


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())
    print(min(n*a,b))

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: 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(B)
else:
  print(A)

import numpy as np
N,D = map(int,input().split())
X =[]
cnt = 0
for i in range(N):
  X = np.vstack(X,list(map(int,input().split())))

for i in range(N-1):
    c = X[i]
    for j in range(i+1,N):
        d = X[j]
        e = c-d
        f = np.square(e)
        g = sum(f)
        h = np.sqrt(g)
        l = int(h**.5)
        if abs(l*l-h) <1e-6:
            cnt +=1

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):
n, A, B = map(int, 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: 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('整数を入力してください：')

while n.isdigit() == False or int(n) < 1 or int(n) > 20:
    print('Error')
    n = input('整数を入力してください：')
else:
    n = int(n)
n = int(n)


a = input('整数を入力してください：')

while a.isdigit() == False or int(a) < 1 or int(a) > 50:
    print('Error')
    a = input('整数を入力してください：')
else:
    a = int(a)
a = int(a)

b = input('整数を入力してください：')

while b.isdigit() == False or int(b) < 1 or int(b) > 50:
    print('Error')
    b = input('整数を入力してください：')
else:
    b = int(b)
b = int(b)

train = n * a
taxi = b

expense = [train,taxi]

print(min(expense))

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

train = n * a
taxi = b

expense = [train,taxi]

print(min(expense))

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())
ans = []
for i in range(1, N):
    ans.append(A * i + B / N * (N - i))
print(min(ans))


N, A, B = map(int, input().split())
ans = []
for i in range(1, N):
    ans.append(A * i + B * (N - i))
print(min(ans))

N, A, B = map(int, input().split())
if A * N < B:
    print(A * N)
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)
m = n*b
if m < a :
    print(m)
else:
    print(a)

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

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

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):
s=list(input())

if int(s[0])* int(s[1]) > int(s[2]):
    print(s[2])
else:
    print(int(s[0])* int(s[1]))

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

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

ans = 1000000000000

for x in range(1, N):
    sum = (N - x) * A + x * B / N
    if sum < ans and sum.is_integer():
        ans = sum

print(int(ans))


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

t = 0
ans = 0

for x in range(20):
    sum = (N - x) * A + x * B / N
    if t > sum:
        t = sum
        ans = x

print(ans)


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

t = 100000000
ans = 1000000

for x in range(N):
    sum = (N - x) * A + x * B / N
    if t > sum:
        t = sum
        ans = x

print(ans)


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

ans = 1000000000000

for x in range(N+1):
    sum = (N - x) * A + x * B / N
    if sum < ans and sum.is_integer():
        ans = sum

print(int(ans))


Verdicts: Wrong Answer

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())
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):
L, R = map(int, input().split())
small1 = L % 2019
small2 = R % 2019
for i in range(L, R+1):
    ans = i % 2019
    if  ans < small1:
        small2 = small1
        small1 = ans
    elif ans < small2:
        small2 = ans
    if small1 == 0:
        break
print(small1 * small2)

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(n*a)
else:
  print(b)

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

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 = list(map(int, input().split()))
print(N*A + B)

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

if a[0]*a[1]<=a[2]:
  return a[0]*a[1]

if a[0]*a[1]>a[2]:
  return a[2]



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

if a[0]*a[1]<=a[2]:
  return a[0]*a[1]

else:
  return a[2]

a = list( input().split())

if a[0]*a[1]<=a[2]:
  return a[0]*a[1]

if a[0]*a[1]>a[2]:
  return a[2]



a = input().split()

if a[0]*a[1]<=a[2]:
  return a[0]*a[1]

if a[0]*a[1]>a[2]:
  return a[2]



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


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

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



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

bb = b / n

if a > bb:
  print(bb) 
else:
  print(a)

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

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 = input().split()
print(max(int(n) * int(a), int(b)))

n, a, b = input().split()
print(min(int(n)*int(a), int(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(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())
ans=2019
for i in range(l,r+1):
    for j in range(i+1,r+1):
        ans=min((i*j)%2019,ans)
        
        
print(ans)

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



print(min([b,n*a]))

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=map(int,input().split())
if(r-l>=2018):
  print(0)
else:
  mi=2018
  res1=l%2019
  for i in range(r-l):
    res2=(i+l+1)%2019
    for j in range(r-l-i):
      if (res1*res2)%2019<mi:
        mi=(res1*res2)%2019
      res2+=1
    res1+=1
  print(mi)

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

A = A * N

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


N,A,B = map(int(),input(),strip())

A = A * N

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


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

A = A * N

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


N,A,B=map(int,input().split())
print(min(N*A,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,A,B=map(int, input().split())

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

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

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

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())
c = N * A
if c < B:
    print(c)
else:
    print(B)


n, a, b = map(int, input().split())
c = n * a
if c < b:
    print(c)
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):
import sys
n=input()
a=input()
b=input()
nn=int(n)
aa=int(a)
bb=int(b)

train=nn*aa
taxi=bb
if train>=taxi:
  print(train)
else:
  print(taxi)


import sys
n=input()
a=input()
b=input()
nn=int(n)
aa=int(a)
bb=int(b)

train=nn*aa
taxi=bb
if train>=taxi:
  print(train)
else:
  print(taxi)


import sys
n=input()
a=input()
b=input()
train=n*a
taxi=b
if train>=taxi:
  print(train)
else:
  print(taxi)

import sys
n=input()
a=input()
b=input()
train=int(n)*int(a)
taxi=int(b)
if train>=taxi:
  print(train)
else:
  print(taxi)


import sys
try:
    while True:
        n = input()
        a=input()
		b=input()
		nn=int(n)
		aa=int(a)
		bb=int(b)
        if n == '':
            break
        if a == '':
            break
        if b == '':
            break
except EOFError:
    pass

train=nn*aa
taxi=bb
if train>=taxi:
  print(train)
else:
  print(taxi)


import sys

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

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


import sys

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

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

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 = map(int, input().split(" "))
print(max(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):
N,A,B = map(int,input().split())
if A>=B:
    print(N*A)
else:
    print(N*B)
    

N,A,B = map(int,input().split())
if A>=(B/N):
    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):
a = input().split(' ')
 
b = int(a[0]) * int(a[1])
 
if (b < a[2]):
  print(b)
 
else:
  print(a[2])

a = input().split(' ')
 
b = int(a[0]) * int(a[1])
 
if (b < int(a[2])):
  print(b)
 
else:
  print(a[2])

Verdicts: Runtime Error

Accepted