Problem:


Score : 100 points

Problem Statement

N of us are going on a trip, by train or taxi.

The train will cost each of us A yen (the currency of Japan).

The taxi will cost us a total of B yen.

How much is our minimum total travel expense?

Constraints

All values in input are integers.

1 \leq N \leq 20

1 \leq A \leq 50

1 \leq B \leq 50

Input

Input is given from Standard Input in the following format:

N A B

Output

Print an integer representing the minimum total travel expense.

Sample Input 1

4 2 9

Sample Output 1

8

The train will cost us 4 \times 2 = 8 yen, and the taxi will cost us 9 yen, so the minimum total travel expense is 8 yen.

Sample Input 2

4 2 7

Sample Output 2

7

Sample Input 3

4 2 8

Sample Output 3

8



Sample input:
4 2 9


Sample output:
8

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N,A,B = map(int, input().split())
list=[N*A,B]
min(list)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, train, taxi = map(int, input().split(' '))
if n * train >= taxi:
  print(int(n*train))
else:
  print(int(taxi))

Submission status: Wrong Answer

Solution code:
def main():
    a,b,c = map(int,input().split())
    if a * b > c:
        print(a*b)
    else:
        print(c)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
n,a,b=[int(x) for x in input().split()]
print(n*min(a,b))

Submission status: Wrong Answer

Solution code:
N,A,B = map(int, input().split(" "))
list=[N*A,B]
min(list)

Submission status: Wrong Answer

Solution code:
N,A,B = map(int, input().split())
list=[N*A,B]
min(list)

Submission status: Wrong Answer

Solution code:
N,A,B= map(int, input().split())
list=[N*A,B]
min(list)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N, A, B = map(int, input().split())
ans = min(A, B * N)
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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])

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N, A, B = map(int, input().split(" "))
print(max(A*N,B))

Submission status: Wrong Answer

Solution code:
def minimizer(n,a,b):
  first=n*a
  second=b
  if first>second:
    return second
  else: 
    return first

inputing=input("enter your value")
input_sep=inputing.split(" ")
input_sep=[int(i) for i in input_sep]
print(minimizer(int(input_sep[0]),int(input_sep[1]),int(input_sep[2])))

Submission status: Wrong Answer

Solution code:
def minimizer(n,a,b):
  first=n*a
  second=n*b
  if first>second:
    return second
  elif first<second:
    return first
  else:
    return first
inputing=input()
input_sep=inputing.split(" ")
input_sep=[int(i) for i in input_sep]
print(minimizer(int(input_sep[0]),int(input_sep[1]),int(input_sep[2])))

Submission status: Wrong Answer

Solution code:
def minimizer(n,a,b):
  first=n*a
  second=n*b
  if first>second:
    return second
  elif first<second:
    return first
  else:
    return first
inputing=input("enter your value")
input_sep=inputing.split(" ")
input_sep=[int(i) for i in input_sep]
print(minimizer(int(input_sep[0]),int(input_sep[1]),int(input_sep[2])))

Submission status: Wrong Answer

Solution code:
N, a, b = map(int,input().split())
print(max(N * a, b))

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
li=list(map(int,input().split()))

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

Submission status: Wrong Answer

Solution code:
input = input().split(" ")
a = int(input[0])
b = int(input[1])
c = int(input[2])
r = int(a) + int(b)
if r == c:
  print(r)
elif c > r:
  print(r)
elif r > c:
  print(c)

Submission status: Wrong Answer

Solution code:
1

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(max(n*a, b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input().split(' ')

b = int(a[0]) * int(a[1])
c = int(a[0]) * int(a[2])

if (b < c):
  print(b)

else:
  print(c)

Submission status: Wrong Answer

Solution code:
N,A,B = map(int, input().split())
ans = max(B, A*N)
print(ans)

Submission status: Wrong Answer

Solution code:
n, a, b = map(int, raw_input().split())
if a > b:
  min_value = b
else:
  min_value = a

print str(min_value*n)

Submission status: Wrong Answer

Solution code:
n, a, b = map(int, raw_input().split())
if a < b:
  max_value = b
else:
  max_value = a

print str(max_value*n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding: utf-8
n, a, b = map(int,input().split())
if n * a > b:
    print(n * a)
else:
    print(b)

Submission status: Wrong Answer

Solution code:
mod=[]
answer = 2018
count = 0
sub=0
mod = [int(i) for i in input().split()]
if(mod[0]+1==mod[1]):
    answer = (mod[0]*mod[1])%2019
for i in range(mod[0],mod[1]+1):
    for j in range(i+1,mod[1]+1):
        sub = (i*j)%2019
        if sub<answer:
            answer = sub
            print(answer)
    if count == 2018:
        break
    count = count + 1
print(answer)

Submission status: Wrong Answer

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

min = a*n

for i in range(1,n):
    tmp = min - a*i + b
    if min > tmp:
        min = tmp

print(min)

Submission status: Wrong Answer

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

min = a*n

for i in range(n):
    tmp = min - a*i + b
    if min > tmp:
        min = tmp

print(min)

Submission status: Wrong Answer

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

min = a*n

for i in range(n):
    tmp = min - a + b
    if min > tmp:
        min = tmp

print(min)

Submission status: Wrong Answer

Solution code:
mod=[]
answer = 2018
count = 0
sub=0
mod = [int(i) for i in input().split()]
for i in range(mod[0],mod[1]):
    if(i+1==mod[1]):
        answer = mod[0]%2019*mod[1]%2019
        break
    for j in range(i+1,mod[1]):
        sub = i*j%2019
        if sub<answer:
            answer = sub
    if count == 2019:
        break
    count = count + 1
print(answer)

Submission status: Wrong Answer

Solution code:
mod=[]
answer = 2018
count = 0
sub=0
mod = [int(i) for i in input().split()]
for i in range(mod[0],mod[1]):
    for j in range(i+1,mod[1]):
        sub = i*j%2019
        if sub<answer:
            answer = sub
    if count ==2018:
        break
    count = count + 1
print(answer)

Submission status: Wrong Answer

Solution code:
def main(N,A,B):
  if(N*A) > B:
    return B
  else:
    return N*A

Submission status: Wrong Answer

Solution code:
mod=[]
answer = 2018
count = 0
mod = [int(i) for i in input().split()]
for i in range(mod[0],mod[1]):
    for j in range(i+1,mod[1]):
        if i%2019*j%2019<answer:
            answer = i%2019*j%2019
    if count ==2018:
        break
    count = count + 1
print(answer)

Submission status: Wrong Answer

Solution code:
mod=[]
answer = 2018
count = 0
mod = [int(i) for i in input().split()]
for i in range(mod[0],mod[1]):
    for j in range(i+1,mod[1]):
        if i%2019*j%2019<answer:
            answer = i*j%2019
    if count ==2018:
        break
    count = count + 1
print(answer)

Submission status: Wrong Answer

Solution code:
def travel(N, A, B):
 if (N * A) > B:
 	return B
 else:
 	return N*A

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
inputs = list(map(int, input().split(' ')))
smaller = inputs[1] if inputs[1] < inputs[2] else inputs[2]
print(inputs[0] * smaller)

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
t=True
C=2019
if t:
    for i in range(A[1]):
        for t in range(A[1]+1):
            if t>i and i>=A[0]:
                if i-t>=2019:
                    C=0
                    t=False
                    break
                else:
                    if t*i%2019<C:
                        C=t*i%2019
print(C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n,a,b = map(int, input().split())
print(max(n*a,b))

Submission status: Wrong Answer

Solution code:
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]))

Submission status: Wrong Answer

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

bb = b / n

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

Submission status: Wrong Answer

Solution code:
print((lambda n,a,b:max(n*a, b))(*[int(x) for x in input().split()]))

Submission status: Wrong Answer

Solution code:
import sys, itertools, collections
sys.setrecursionlimit(10000)

read_ints = lambda: list(map(int, input().split()))
read_int  = lambda: int(input())

INF = 10 ** 10

n, a, b = read_ints()
ans = INF
for taxi in range(0, (n + 3) // 4 + 1):
    train = max(0, n - taxi * 4)
    ans = min(ans, train * a + taxi * b)

print(ans)

Submission status: Wrong Answer

Solution code:
N,A,B = map(int,input().split())
print(max(N*A, B))

Submission status: Wrong Answer

Solution code:
a, b, c = [int(i) for i in input().split()]
if a * c > b:
  print(b)
else:
  print(a*c)

Submission status: Wrong Answer

Solution code:
n, a, b = input().split()
print(max(int(n) * int(a), int(b)))

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
str = input().split()
l_org = int(str[0])
r_org = int(str[1])

l = 2019
r = 2019

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

min = 2019

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

print(min)

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
C=[t*i%2019 for i in range((A[1]))
for t in range((A[1])+1)]
D=sorted(C)
print(D[0])

Submission status: Wrong Answer

Solution code:
nums = list(map(int, input().split()))

if nums[0]*nums[1] > nums[2]:
    print(nums[0]*nums[1])
    
elif nums[0]* nums[1] <= nums[2]: 
    print(nums[2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

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

ans = 1000000000000

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

print(int(ans))

Submission status: Wrong Answer

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

ans = 1000000000000

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

print(int(ans))

Submission status: Wrong Answer

Solution code:
str = input().split()

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

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
N, A, B = map(int, input().split(' '))

print(min(A * B , N))

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def main():
    lis = list(map(int, input().split))
    if lis[1] * lis[2] > lis[3]:
        print(lis[3])
    else:
        print(lis[1] * lis[2])

Submission status: Wrong Answer

Solution code:
def main():
    lis = list(map(int, input().split))
    if lis[0] * lis[1] > lis[2]:
        print(lis[2])
    else:
        print(lis[0] * lis[1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=[int(i) for i in input().split()]
L=A[0]
R=A[1]
num=L-1
am=2020
se=2021
n=0
while True:
	num+=1
	if num>R:
		break
	n=num%2019
	if	n<se:
		if n<=am:
			se=am
			am=n		
		else:
			se=n	
	if num-L>2019:
		break
	
ans=am*se
print(ans)

Submission status: Wrong Answer

Solution code:
A=[int(i) for i in input().split()]
L=A[0]
R=A[1]
num=L-1
am=2020
se=2021
n=0
while True:
	num+=1
	if num>R:
		break
	n=num%2019
	if	n<se:
		if n<=am:
			se=am
			am=n		
		else:
			se=n	
	if num-L>2020:
		break
	
ans=am*se
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, tr, ta = map(int, raw_input().split())

if n % 4 == 0:
	
	print min((n / 4) * ta , tr * n)
else :
	print min( (n + 4)/4 * ta  , n * tr, (n / 4) * ta + (n% 4) * tr  )

Submission status: Wrong Answer

Solution code:
def main():
    (N, A, B) = [int(input()) for i in range(3)]
    if N * A > B:
        print(B)
    else:
        print(N * A)

Submission status: Wrong Answer

Solution code:
n, a, b = (int(_) for _ in input().split())
remainder = 0
train = n * a
if n  % 4 != 0:
    taxis = n // 4
    remainder = n % 4
else:
    taxis = n // 4
     
tcost = taxis * b + remainder * a

print(min(train, tcost))

Submission status: Wrong Answer

Solution code:
n, tr, ta = map(int, raw_input().split())

if n % 4 == 0:
	
	print min(((n / 4) * ta ), tr * n)
else :
	print min( (n + 4)/4 * ta  , n * tr)

Submission status: Wrong Answer

Solution code:
people, train, taxi = input("Enter a three value: ").split()
price1 = int(people) * int(train)
print(min(price1, int(taxi)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, a, b = map(int, input().split())
print(max(n * a, b))

Submission status: Wrong Answer

Solution code:
def main():
    N, A, B = [int(input()) for i in range(3)]
    if N * A > B:
        print(B)
    else:
        print(N * A)

Submission status: Wrong Answer

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

tac = N * A
train = B

if tac > train:
    print(tac)

else:
    print(train)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    N, A, B = [int(input()) for i in range(3)]
    if N * A > B:
        print(int(B))
    else:
        print(int(N * A))

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


def main():
    n, a, b = [int(i) for i in input().split()]
    print(min([a, b]) * n)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    N, A, B = [int(input()) for i in range(3)]
    if N * A > B:
        print(int(B))
    else:
        print(int(A))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, a, b = (int(i) for i in input().split())  
train = n*a
taxi = n*b
if train >= taxi:
  print(taxi)
else:
  print(train)

Submission status: Wrong Answer

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

price1 = int(people) * int(train)

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

Submission status: Wrong Answer

Solution code:
n, tr, ta = map(int, raw_input().split())

if n % 4 == 0:
	print min(((n / 4) * ta ), tr * n)
else :
	print min( (n + 4)/4 * ta + ((n%4) * tr)  , n * tr)

Submission status: Wrong Answer

Solution code:
def main():
    N, A, B = [int(input()) for i in range(3)]
    if N * A > B:
        print("B")
    else:
        print("A")

Submission status: Wrong Answer

Solution code:
import math

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

c=min(A,B)

print(N*c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n,a,b = map(int, input().split())
print(max(n*a,b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

print(min(a+n,b))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Wrong Answer

Solution code:
n, tr, ta = map(int, raw_input().split())

print min(((n + (n% 4) )/ 4) * ta +( (n % 4 ) * tr), n * tr )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N, a, b = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
print(min(a+b , c))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N, A,B = [int(x) for x in input().split()]
print(min(N*A, N//4*B+A*(N-4*(N//4) ) ))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/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()

Submission status: Wrong Answer

Solution code:
elem = input().split(" ")
tx = int(elem[0]) * int(elem[1])
tr = int(elem[0]) * int(elem[2])
print(tx if tx < tr else tr)

Submission status: Wrong Answer

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

train = A*N
taxi  = B/N

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

ans = n * min(a,b)
print(ans)

Submission status: Wrong Answer

Solution code:
lista = input().split(" ")

a, b,c = lista
a=int(a)
b=int(b)
c=int(c)
a1=a*c
a2=b*a
print(min(a1,a2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, a, b = (int(_) for _ in input().split())

train = n * a
if n  % 4 != 0:
    taxis = n // 4 + 1
else:
    taxis = n // 4
    
tcost = taxis * b

print(min(train, tcost))

Submission status: Wrong Answer

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

train = A*N
taxi  = B/N;

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

Submission status: Wrong Answer

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

C = N*A

print(min(A, C))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()

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

if lista[0] * lista[1] >= lista[0] * lista[2]:
    print(lista[0] * lista[2])
else:
    print(lista[0] * lista[1])

Submission status: Wrong Answer

Solution code:
num = input().split()
a = int(num[0]) * int(num[1])
b = int(num[0]) * int(num[2])
print(min(a,b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l = list(map(int,input().split()))
N = l[0]
A = l[1]
B = l[2]

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

Submission status: Wrong Answer

Solution code:
N, A,B = [int(x) for x in input().split()]
print(min(N*A, N//4*B))

Submission status: Wrong Answer

Solution code:
N,A,B = [int(x) for x in input().split()]
print(min(4*A,B))

Submission status: Wrong Answer

Solution code:
n,a,b = map(int,input().split())
print(min(n*a,int(b/n)))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y, z = input().split()
N = int(x)
A = int(y)
B = int(z)

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

Submission status: Wrong Answer

Solution code:
n,a,b = map(int,input().split())
print(min(n*a,b/n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def read():
    N, A, B = list(map(int, input().strip().split()))
    return N, A, B


def solve(N, A, B):
    if A < B:
        return N * A
    else:
        return N * B


if __name__ == '__main__':
    inputs = read()
    print("%d" % solve(*inputs))

Submission status: Wrong Answer

Solution code:
N,A,B = map(int,input().split())
ans = max(B,N*A)
print(ans)

Submission status: Wrong Answer

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

a = N * A

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

Submission status: Wrong Answer

Solution code:
n, a, b = list(map(int, input().split(' ')))
print(n * a + b)

Submission status: Wrong Answer

Solution code:
import sys

readline = sys.stdin.readline

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

print(N * min(A, B))

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,n = map(int,input().split())
print(min([n*a,b]))

Submission status: Wrong Answer

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

result = min(A, B) * N

print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(N *min(A,B))

Submission status: Wrong Answer

Solution code:
import sys
rs = lambda: sys.stdin.readline().rstrip()
ri = lambda: int(rs())
ra = lambda: list(map(int, sys.stdin.readline().split()))

n, a, b = ra()
print(min(n*a, n*b))

Submission status: Wrong Answer

Solution code:
N,A,B = [int(i) for i in input().split()]
print(min(N*A,N*B))

Submission status: Wrong Answer

Solution code:
n, a, b=list(map(int, input().split()))
ans = n*a+b
print(ans)

Submission status: Wrong Answer

Solution code:
from sys import stdin
N,A,B = [int(x) for x in stdin.readline().rstrip().split()]
print(max(N*A,B))

Submission status: Wrong Answer

Solution code:
x, y, z = input().split()
N = int(x)
A = int(y)
B = int(z)

answer = A + (N * B)
print(answer)

Submission status: Wrong Answer

Solution code:
N, A, B = map(int, input().split())
cost = min(A,B)
ans = cost * N
print(ans)

Submission status: Wrong Answer

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


if __name__ == '__main__':
  main()

Submission status: Wrong Answer

Solution code:
N, A, B = map(int, input().split())
print(max(N*A, B))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,N = map(int,input().split())
print(min([A * N,B]))

Submission status: Wrong Answer

Solution code:
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()

Submission status: Time Limit Exceeded

Solution code:
from time import sleep
n, a, b = map(int, input().split())
sleep(3.0)
print(min(a * n, b))

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
from time import sleep
n, a, b = map(int, input().split())
sleep(1.99)
print(min(a * n, b))

Submission status: Time Limit Exceeded

Solution code:
x = 1
for i in range(10 ** 8):
    x *= i
print(x)

Submission status: Accepted

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

train = n * a
taxi = b

answer = min(train, taxi)
print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 私たちはN人で旅行しようとしており、その交通手段として電車とタクシーがあります。電車を使うと1人あたりA円かかります。
# タクシーを使うとN人でB円かかります。全員の交通費の合計は最小でいくらになるでしょうか。

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

print(min(N * A,B))