AtCoder Beginner Contest 133 - T or T

N of us are going on a trip, by train or taxi.
The train will cost each of us 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-----
4 2 9

-----Sample Output-----
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.

Difficulty: EASY

Starter code:

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


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


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


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


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


def atc_133a(input_value: str) -> int:
	NAB = input_value.split(' ')
	N = int(NAB[0])
	A = int(NAB[1])
	B = int(NAB[2])
	return min(N * A, B)
input_value = input()
print(atc_133a(input_value))


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


(x, y, z) = [int(a) for a in input().split()]
print(min(z, x * y))


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


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


(n, a, b) = [int(w) for w in input().split()]
print(min(n * a, b))


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

def __starting_point():
	main()
__starting_point()


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


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


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


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


(N, S, K) = list(map(int, input().split()))
print(min([N * S, K]))


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


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


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


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

def __starting_point():
	main()
__starting_point()


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


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


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


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


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


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


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


(a, s, d) = map(int, input().split())
print(min(a * s, d))


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


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


(a, b, c) = [int(i) for i in input().split()]
print(min(a * b, c))


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


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


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


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


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


(x, y, z) = map(int, input().split())
print(min(x * y, z))


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


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


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


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


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


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


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


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


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


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


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


(n, x, y) = map(int, input().split())
print(min(n * x, y))


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


(N, A, B) = list(map(int, input().split()))
D = []
den = N * A
D.append(den)
D.append(B)
D.sort()
print(D[0])


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


(n, a, b) = [int(_) for _ in input().split()]
print(min(n * a, b))


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


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


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


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


(ninzu, train, taxi) = map(int, input().split())
train_fare = ninzu * train
minimum_fee = min(taxi, train_fare)
print(minimum_fee)


(p, q, r) = map(int, input().split())
print(min(p * q, r))


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


l = [int(x) for x in input().split()]
print(min(l[0] * l[1], l[2]))


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


(a, b, c) = (int(_) for _ in input().split())
print(min(a * b, c))


(a, d, g) = map(int, input().split())
print(min(a * d, g))