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

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: 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):
ソースコード 

Copy
Copy
import numpy as np
 
N, D = list(map(int, input().split()))
full_list = []
for i in range(N):
  full_list.append(list(map(int, input().split())))
 
result = 0
 
for i in range(N):
  for j in range(N-i-1):
    length = 0
    for s in range(D):
      length += (full_list[i][s] - full_list[j][s]) ** 2
    result += 1 if np.sqrt(length).is_integer() == True else 0
 
print(result)

import numpy as np
 
N, D = list(map(int, input().split()))
full_list = []
for i in range(N):
  full_list.append(list(map(int, input().split())))
 
result = 0
 
for i in range(N):
  for j in range(N-i-1):
    length = 0
    for s in range(D):
      length += (full_list[i][s] - full_list[j][s]) ** 2
    result += 1 if np.sqrt(length).is_integer() == True else 0
 
print(result)

import numpy as np
 
N, D = list(map(int, input().split()))
full_list = []
for i in range(N):
  full_list.append(list(map(int, input().split())))
 
result = 0
 
for i in range(N):
  for j in range(N-i-1):
    length = 0
    for s in range(D):
      length += (full_list[i][s] - full_list[j][s]) ** 2
    result += 1 if np.sqrt(length).is_integer() else 0
 
print(result)

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

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


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

N,A,B=map(int,input().split())
train=N*A
taxi=B
if train<=taxi:
    print(train)
else: print(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):
a,b,c=int(input().split());print(min(a*b,c))

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

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

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

N, A, B = map(int, input())
T = N*A
print(max(T,B))

N, A, B = map(int, input().split())
T = N*A
print(min(T,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):
from functools import reduce

MIN = -10 ** 9
MAX = 10 ** 9


def main():
    N, A, B = [int(a) for a in input().split()]
    print(min(N, N * A))


if __name__ == '__main__':
    main()


def main():
    N, A, B = [int(a) for a in input().split()]
    print(min(B, N * A))


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

C = N*A

print(min(A, C))

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

if R - L + 1 > 2019:
    remainder_list = [N%2019 for N in range(L, L+2019)]
else:
    remainder_list = [N%2019 for N in range(L, R+1)]  
remainder_list = list(set(remainder_list))
all_list = [(i*j)%2019 for i, j in list(itertools.combinations(remainder_list, 2))]
print(min(all_list))

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):
print(min(int(input())*int(input()),int(input())))

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):
a, b, c = (int(i) for i in input().split())
if a*b >= c:
  return c
else:
  return a*b

a = [int(i) for i in input().split()]
if a[0]*a[1] > a[2]:
  return c
else:
  return a[0]*a[1]

n, a, b = (int(i) for i in input().split())
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):
import sys 
L,R = map(int, input().split())

if R-L >= 2019:
    print(0)
    sys.exit()
elif R-L == 1:
    print((i*j)%2019)
    sys.exit()

ans = 4000

for i in range(L,R):
    for j in range(i+1,R):
        number = (i*j)%2019
        ans = min(ans,number)

print(ans)  

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


TRAIN = N*A

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

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

args = sys.argv

n = int(args[1])
a = int(args[2])
b = int(args[3])

train = n * a
bus = b

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


import sys

args = sys.argv

n = int(args[1])
a = int(args[2])
b = int(args[3])

train = n * a
bus = b

if(train < bus):
  train
else:
  bus


import sys

args = sys.argv

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

train = n * a
bus = b

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

import sys

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


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

train = n * a
bus = b

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


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)

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


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

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

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

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

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

N= int(input('N='))
A= int(input('A='))
B= int(input('B='))
C= N*A
if C>B:
  print (B)
else: 
  print (C)

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

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

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

n, a, b = map(int, input().split())
print(min(a * n, 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):
import sys
sys.setrecursionlimit(10000000)
n,k=map(int,input().split())
graph=[[] for i in range(n)]
for i in range(n-1):
  a,b=map(int,input().split())
  graph[a-1].append(b-1)
  graph[b-1].append(a-1)
MOD=10**9+7
def coloring(node,pre):
  if len(graph[node])>k:
    return 0
  if pre==-1:
    color=k-1
  else:
    color=k-2
  ans=1
  for i in graph[node]:
    if i==pre:continue
    ans*=color
    ans%=MOD
    color-=1
  for i in graph[node]:
    if i==pre:continue
    ans*=coloring(i,node)
    ans%=MOD
  return ans
print((k*coloring(0,-1))%MOD)


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):
N,A,B=map(int,input().split())
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=t2
      print("minimum total travel expense",tmin)
      


N=int(input())
A=int(input())
B=int(input())
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print(tmin)
else:
      tmin=t2
      print(tmin)
      


N=int(input("enter number of people")
A=int(input("enter the cost of train")
B=int(input("enter the cost of taxi")
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=t2
      print("minimum total travel expense",tmin)
      

N=int(input("enter number of people")
A=int(input("enter the cost of train")
B=int(input("enter the cost of taxi")
t1=N*A
if t1<B:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=B
      print("minimum total travel expense",tmin)
      


N=int(input())
A=int(input())
B=int(input())
t1=N*A
t2=B
if t1<B:
      tmin=t1
      print(tmin)
else:
      tmin=B
      print(tmin)
      


N=int(input("enter number of people"))
A=int(input("enter the cost of train"))
B=int(input("enter the cost of taxi"))
t1=N*A
t2=N*B
if t1<t2:
      tmin=t1
      print("minimum total travel expense",tmin)
else:
      tmin=t2
      print("minimum total travel expense",tmin)
      

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


Verdicts: Wrong Answer

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 = [ int(i)for i in input().split()]
c = N*A
if c >= B:
    print(B)
elif c <= B:
    print(C)

N,A,B = [ int(i)for i in input().split()]
c = N*A
if c >= B:
    print(B)
elif c <= B:
    print(C)

N,A,B = [ int(i)for i in input().split()]
c = N*A
if c >= B:
    print(c)
elif c <= B:
    print(B)


N,A,B = [int(zz) for zz in input().split()]
i = N*A
if i <= B:
    print(i)
elif i >= B:
    print(B)


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

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

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

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

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

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

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

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

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):
inport numpy as np

N,A,B = map(int,input().split(" "))
i = np.arange(N+1)  # the number of people who use train
j = N-i  # the number pf people who use taxi
cost = A+i + B*j

return np.min(cost)

inport numpy as np

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

return np.min(costs)


inport numpy as np

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

print(min(costs))


import numpy as np

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

print(min(costs))


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

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

L, R = map(int, input().split())
li = []
for i in range(L, R+1):
  li.append(i%2019)
#print(li)
a = min(li)
li.remove(min(li))
b = min(li)
li.remove(min(li))
print(a*b)
       

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

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

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

#input
N, A, B = map(int, input().split())
 
#output
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,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):
    tmp = 0
    for k in range(D):
      tmp += (X[i][k] - X[j][k]) ** 2
    tmp = tmp ** 0.5
    if tmp % 1 == 0:
      ans += 1
      
print(ans)

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):
    tmp = 0
    for k in range(D):
      tmp += (X[i][k] - X[j][k]) ** 2
    tmp = tmp ** 0.5
    if tmp % 1 == 0:
      ans += 1
      
print(ans)

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

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

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

n,a,b = map(int,input().split())
print(min(n*a,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):
l = input().split()
N, A, B = [int(num) for i in l]
NA = N * A
print(min(NA,B))

l = input().split()
N, A, B = [int(i) for i in l]
train = N * A
m = min(train, B)
print(m)

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):
// https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}

fn main() {
    input! {
        n: usize,
        a: usize,
        b: usize
    }

    println!("{}", std::cmp::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(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())
li=[]
for i in range(L,R):
  for j in range(i+1,R+1):
    mod=(i*j)%2019
    if mod==0:
      break
    li.append(mod)
print(min(li))

L,R=map(int,input().split())
R=min(R, L+673)
li=[]
for i in range(L,R):
  for j in range(i+1,R+1):
      mod=(i*j)%2019
      li.append(mod)
      if mod==0:
        break
print(min(li))


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, innput().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):
import math
import numpy as np
N, D = map(int, input().split())
times = int(input())  
n = [list(map(int, input().split())) for i in range(times)]
n = np.array(n)
ans = 0
for j in range(n.shape[0]):
  for i in range(n.shape[0]):
    length = np.linalg.norm(n[i]-n[j])
    aaa = math.modf(length)[0]
    if aaa < 0.00001:
      ans +=1
ans = ans - n.shape[0]
ans = int(ans/2)
print(ans)

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

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

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

n, a, b = [int(x) for x in 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(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())
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):
s = input()
splitted_s = s.split(" ") 
n = int(splitted_s[0])
a = int(splitted_s[1])
b = int(splitted_s[2])

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


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

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):
human_num, train_value, taxi_num = tuple(int(i) for i in input().split(""))
print(min(train_value * human_num, taxi_num))

human_num, train_value, taxi_num = tuple(int(i) for i in input().split(" "))
print(min(train_value * human_num, taxi_num))

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


n,a,b = list(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())

ans = 2019

for i in range(L, R):
    for j in range(i+1, R+1):
        ans = min(ans, (i*j) % 2019)
        if ans == 0:
            print('0')
            exit()

print(ans)

N, A, B = list(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())
return(min(n*a,b))

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

print(int(A*N + B))

N,A,B = [int(s) for s in input().split()]

print(A*N) if A*N <= B 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):
S=input().split()
L=int(S[0])
R=int(S[1])
list=2018
L1=L
L2=L
while list <> 1:  
  while L2 <= R:
    while L1 < L2:
      if (L1*L2)%2019 <= list:
        list = (L1*L2)%2019
      L1 += 1
    L1 =int(L)
    L2 += 1
print(list)

S=[int (i) for i in input().split()]
N=S[0]
A=S[1]
B=S[2]
TRAIN=A*N
BUS=B
if TRAIN > BUS:
  print(BUS)
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):
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())
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())

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

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)
elif:
   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):
import numpy as np

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

X = []
X = np.vstack([input().split() for i in range(N)])

count = 0

for i in range(N - 1):
  for j in range(N - (i + 1)):
    r = 0
    for k in range(D):
      r += (int(X[i, k]) - int(X[i + (j + 1), k])) ** 2
  
    if np.sqrt(r).is_integer():
      count += 1
    
print(count)

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

if int(N) * int(A) >= int(B):
    print(int(B))
else:
    print(int(N) * int(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())
min(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 = (int(x) for x in input().splint())
sum = n * a
if sum <= b :
  print(sum)
else :
  print(b)

n, a, b = (int(x) for x in input().split())
sum = n * a
if sum <= b :
  print(sum)
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(int(n＊a))
elif n＊a >= b:
  print(int(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)
elif n＊a >= b:
  print(b)


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

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

print(na if na< b else: b)

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

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

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

if na < b:
  print(na)
  else:
    print(b)

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())
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):
from time import sleep
n, a, b = map(int, input().split())
sleep(1.99)
print(min(a * n, b))

from time import sleep
n, a, b = map(int, input().split())
sleep(1.99)
print(max(a * n, b))

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

Verdicts: Time Limit Exceeded

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

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

if r-l >= 2019:
  ans = 0
else:
  mod_l = l % 2019  
  mod_r = r % 2019
  if mod_r < mod_l:
    ans = 0
  elif mod_l * mod_r == 0:
    ans = 0
    
  else:
    l_list=[]
    a = list(range(mod_l, mod_r+1))
    for i in range(mod_l, mod_r+1):
      ai = a[i]
      for j in range(i+1,mod_r+1):
        aj = a[j]
    l = (ai*aj) % 2019
    l_list.append(l)
    ans = min(l_list)
    
print(ans)

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

ans = min([b,n*a])

print(ans)

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


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

if a*n <= b:
  return a*n
else:
  return b

n, a, b = input().split(' '); n, a, b = int(n), int(a), int(b)
 
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):
a, b, c = [int(i) for i in input().split()]
if a * c > b:
  print(b)
else:
  print(a*c)

a, b, c = [int(i) for i in input().split()]
if a * b > c:
  print(c)
else:
  print(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):
A = list(map(int, input().split())) 

def func(n, a, b):
  if (n*a > b):
    return b
  else:
    return n*a
  
func(A[0], A[1], A[2])

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

def func(n, a, b):
  if n*a > b:
    return b
  else:
    return n*a
func(n, a, b)

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

def func(n, a, b):
  if n*a > b:
    return b
  else:
    return n*a
func(n, a, b)

import math
import numpy as np

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

is_int = 0
for i in range(N-1):
  for j in range(i+1, N-i):
    l1 = np.array(X[i])
    l2 = np.array(X[j])
    d = math.sqrt(sum((l1-l2)**2))
    if isinstance(d, int):
      is_int += 1
      print(is_int)

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

def func(n, a, b):
  if (n*a > b):
    print(b)
  else:
    print(n*a)
    
func(A[0], A[1], A[2])

Verdicts: Wrong Answer

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

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=list(map(int, input().split())
n=l[0]
a, b = l[1], l[2]

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

l = list(map(int, input().split()))
n=l[0]
a=l[1]
b = l[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):
code = input()
print('Good' if code[0] != code[1] and code[1] != code[2] and code[2] != code[3] else "Bad")

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


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

elif n*a < b:
    print(b)

n, a, b = map(int, input().split())
min = a * n
for i in range(1, n+1):
    if a*(n-i)+b < min:
        min = a*(n-i)+b

print(min)

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
import sys

def p(n, r):
	if n < r:
		return 1
	return math.factorial(n) // math.factorial(n - r)

def main():
	input = sys.stdin.readline
	N,K = map(int,input().split())
	E = [[] for _ in range(N)]
	MOD = 10**9+7
	
	for _ in range(N-1):
	  u,v = map(int,input().split())
	  u -= 1
	  v -= 1
	  E[u].append(v)
	  E[v].append(u)

	if N == 1:
		print(K)
		sys.exit()
	
	color = [-1 for _ in range(N)]
	dp = [-1 for _ in range(N)]
	
	stack = []
	color[u] = 1
	ans = K
	for i,v in enumerate(E[u]):
		stack.append(v)
		ans *= (K-i-1)
		ans %= MOD

	while stack:
		u = stack.pop()
		color[u] = 1
		length = 0
		for v in E[u]:
			if color[v] == -1:
				stack.append(v)
				length += 1
		if dp[length] == -1:
			tmp = 1
			for i in range(K-1-length,K-1):
				tmp *= i
				tmp %= MOD
			
			ans *= tmp
			dp[length] = tmp
		else:
			ans *= dp[length]
		ans %= MOD

	
	print(ans%MOD)

if __name__ == '__main__':
	main()

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):
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(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(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):
input_arr = [int(x) for x in input().split()]
 
L = input_arr[0]
R = input_arr[1]
 
min_ans = 10**18
for i in range(L,R):
    for j in range(i+1,R):
        ans = (i*j)%2019
        if ans < min_ans:
            min_ans = ans
print(min_ans)

L,R = [int(x) for x in input().split()]
 
min_ans = 10**18

if R-L>=2019:
  min_ans=0
else:
  for i in range(L,R):
      for j in range(i+1,R+1):
          ans = (i*j)%2019

          if ans < min_ans:
              min_ans = ans
          if min_ans == 0:
              break
print(min_ans)


input_arr = [int(x) for x in input().split()]
 
L = input_arr[0]
R = input_arr[1]
 
min_ans = 1000000000000000000000
for i in range(L,R):
    for j in range(i+1,R):
        ans = (i*j)%2019
        if ans < min_ans:
            min_ans = ans
print(min_ans)

input_arr = [int(x) for x in input().split()]

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

train = N*A
taxi = B

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

Verdicts: Wrong Answer

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

print(min(n, a*b))

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

print(min(n*a, b))


Verdicts: Wrong Answer

Accepted