ZhenlongDai/ACPR huggingface dataset:
Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


n = int(input())
s, t = input(), input()
a = 0
for i in range(n):
    if s[-i - 1 :] == t[: i + 1]:
        a = i
print(len(s) + len(t[a + 1 :]))



Failing test case input:
1
_


Expected output:
2


Actual output:
1


Fixed submission (verdict: Accepted):

n = int(input())
s, t = input(), input()
a = -1
for i in range(n):
    if s[-i - 1 :] == t[: i + 1]:
        a = i
print(len(s) + len(t[a + 1 :]))

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
g = s[::-1]
t = input()

if s == t:
  print(s)
  exit()

for i in range(n):
  if g[i] != t[i]:
    print(s +  t[i:])
    exit()

Failing test case input:
4
errx
oerx

Expected output:
8


Actual output:
errxoerx


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
t = input()

for i in range(n):
  if s[i:] == t[:n-i]:
    print(n + i)
    exit()

print(n * 2)

Problem: p03951
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = str(input())
t = str(input())
z = s + t
for i in range(n):
    if s[i:] == t[:n-i]:
        z = s + t[n-i:]
        break
print(z)

Failing test case input:
1
a
{

Expected output:
2


Actual output:
a{


Fixed submission (verdict: Accepted):
n = int(input())
s = str(input())
t = str(input())
z = s + t
for i in range(n):
    if s[i:] == t[:n-i]:
        z = s + t[n-i:]
        break
print(len(z))

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
T = input()

m = min(len(S), len(T))

for i in range(m, -1, -1):
    if S[-i:] == T[:i] and N*2-i >= N:
        print(N*2-i)
        exit()

Failing test case input:
4
ewrr
oerx

Expected output:
8


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
S = input()
T = input()

for i in range(N, -1, -1):
    if S[::-1][:i][::-1] == T[:i]:
        print(N*2-i)
        exit()

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, s, t = [input().strip() for _ in range(3)]
n = int(n)
if s == t:
  print(n)
  exit(0)
for i in range(n):
  if s[n-i-1] != t[i]:
    print(s + t[i:])
    break

Failing test case input:
4
ftrx
yofr

Expected output:
8


Actual output:
ftrxyofr


Fixed submission (verdict: Accepted):
n, s, t = [input().strip() for _ in range(3)]
n = int(n)
for i in range(n):
  if s[i:] == t[:n-i]:
    print(n + i)
    break
else:
  print(2 * n)

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = list(input())
t = list(input())
s_rev = list(reversed(s))
a = []
for i in range(n):
    if s_rev[i] == t[i]:
        a.append(s_rev[i])
    else:
        break
ans = len(s) + len(t) - len(a)
print(ans)

Failing test case input:
4
expr
expr

Expected output:
4

Actual output:
8


Fixed submission (verdict: Accepted):
n = int(input())
s = list(input())
t = list(input())
for i in range(n, -1, -1):
    if s[n-i:] == t[:i]:
        break
    else:
        continue
ans = len(s) + len(t) - i
print(ans)
Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input().strip()
t = input().strip()
is_match = False
for i in range(len(s)):
  if s[i:] == t[:n-i]:
    is_match = True
    break
if is_match:
  print(s[:i] + t)
else:
  print(s + t)

Failing test case input:
4
rrxe
odxr

Expected output:
8


Actual output:
rrxeodxr


Fixed submission (verdict: Accepted):
n = int(input())
s = input().strip()
t = input().strip()
is_match = False
for i in range(len(s)):
  if s[i:] == t[:n-i]:
    is_match = True
    break
if is_match:
  print(len(s[:i] + t))
else:
  print(len(s + t))

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

s = input()
t = input()

for i in range(N):
    if s[i:] == t[:N-i]:
        print(s[:i]+t)
        break
    if i == N-1:
        print(s+t)


Failing test case input:
3
acb
bec

Expected output:
5


Actual output:
acbec


Fixed submission (verdict: Accepted):
N = int(input())

s = input()
t = input()

ans = ""
for i in range(N):
    if s[i:] == t[:N-i]:
        ans = s[:i]+t
        break
    if i == N-1:
        ans = s+t

print(len(ans))

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
s = input()
t = input()
w = s+t
cnt = 0
if s == t and N <= len(s):
  print(len(s))
  exit()
elif s == t and N > len(s):
  print(len(s+t))
  exit()
for i in range(len(s)):
  if s[-i-1] == t[i]:
    cnt += 1
while len(w) > N and cnt > 0:
  t = t[1:]
  w = s + t
  cnt -= 1
print(len(w))

Failing test case input:
4
expr
pexq

Expected output:
8


Actual output:
7


Fixed submission (verdict: Accepted):
N = int(input())
s = input()
t = input()
w = s+t
cnt = 0
if s == t and N <= len(s):
  print(len(s))
  exit()
elif s == t and N > len(s):
  print(len(s+t))
  exit()
cnt1 = 0
for i in range(len(s)):
  if s[-i-1:] == t[:i+1]:
    cnt = i+1
while len(w) > N and cnt > 0:
  t = t[1:]
  w = s + t
  cnt -= 1
print(len(w))

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = input()
b = input()

for i in range(n):
  if i == 1:
    if a == b:
      print(a)
      exit()
  if a[i:] == b[:-i]:
    print(a + b[-i:])
    exit()
print(a+b)

Failing test case input:
3
bcb
cec

Expected output:
6


Actual output:
bcbcec


Fixed submission (verdict: Accepted):
n = int(input())
a = input()
b = input()

for i in range(n):
  if i == 0:
    if a == b:
      print(n)
      exit()
  if a[i:] == b[:-i]:
    print(n+i)
    exit()
print(n*2)
Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
s = input()
t = input()
w = s+t
cnt = 0
if s == t and N <= len(s):
  print(s)
  exit()
elif s == t and N > len(s):
  print(s+t)
  exit()
for i in range(len(s)):
  if s[-i-1] == t[i]:
    cnt += 1
while len(w) > N and cnt > 0:
  t = t[1:]
  w = s + t
  cnt -= 1
print(len(w))

Failing test case input:
4
rqxe
rxdo

Expected output:
8


Actual output:
7


Fixed submission (verdict: Accepted):
N = int(input())
s = input()
t = input()
w = s+t
cnt = 0
if s == t and N <= len(s):
  print(len(s))
  exit()
elif s == t and N > len(s):
  print(len(s+t))
  exit()
cnt1 = 0
for i in range(len(s)):
  if s[-i-1:] == t[:i+1]:
    cnt = i+1
while len(w) > N and cnt > 0:
  t = t[1:]
  w = s + t
  cnt -= 1
print(len(w))

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin
n = int(stdin.readline().rstrip())
s = stdin.readline().rstrip()
t = stdin.readline().rstrip()
point = 0
for i,j in zip(s,t):
    if i == j:
        point += 1
    else:
        break
print(n*2-point)

Failing test case input:
4
frtx
xoer

Expected output:
7


Actual output:
8


Fixed submission (verdict: Accepted):
from sys import stdin
n = int(stdin.readline().rstrip())
s = stdin.readline().rstrip()
t = stdin.readline().rstrip()
kaburi = 0
for i in range(n):
    if s[n-i-1:] == t[:i+1]:
        kaburi = max(i+1,kaburi)
print(n*2-kaburi)

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input())
T = list(input())

ans = N + N
for i in range(N+1):
  w = S[:i] + T
  if w[:N] == S and w[N:] == T:
    ans = min(ans,i+N)

for i in range(N+1):
  w = S + T[:i]
  if w[:N] == S and w[N:] == T:
    ans = min(ans,i+N)

print(ans)
    

Failing test case input:
3
abb
bec

Expected output:
5


Actual output:
6


Fixed submission (verdict: Accepted):
N = int(input())
S = list(input())
T = list(input())

ans = N + N
for i in range(N):
  w = S + T[-(i+1):]
  if w[:N] == S and w[-N:] == T:
    ans = min(ans,i+N+1)

if S == T:
  ans = N
    
print(ans)

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
t = input()
cnt = 0






done = False
for i in range(len(s)):
    if s[i] == t[cnt]:
        cnt += 1
        done = True
    elif done and s[i] != t[cnt]:
        break
print(n + n - cnt)


Failing test case input:
3
bca
cec

Expected output:
6


Actual output:
5


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
t = input()
cnt = 0






ans = 0
for i in range(len(s)):
    if s[i] == t[cnt]:
        cnt += 1
    elif s[i] != t[cnt] and s[i] == t[0]:
        ans = max(ans,cnt)
        cnt = 1
    else:
        ans = max(ans,cnt)
        cnt = 0
print(n + n - cnt)
Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
t = input()
ans = 0
for i in range(n-1, -1, -1):
    for j in range(n):
        if s[i] == t[j]:
            ans += 1

print(2 * n - ans)

Failing test case input:
4
exrr
oerx

Expected output:
8


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
t = input()
p = 0
for i in range(n, -1, -1):
    if s[n-i:] == t[:i]:
        p = i
        print(2 * n - p)
        exit()

Problem: p03951
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
s = input()
t = input()
for i in range(n):
    if s == t:
        print(s)
        exit()
    if s[i:] == t[:n-i]:
        print(s+t[-i:])
        exit()
print(s+t)

Failing test case input:
1
a
~

Expected output:
2


Actual output:
a~


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
t = input()
for i in range(n):
    if s == t:
        print(len(s))
        exit()
    if s[i:] == t[:n-i]:
        print(len(s+t[-i:]))
        exit()
print(len(s+t))

Problem: p03951
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
s = input()
t = input()
if s == t:
    print(s)
    exit()
for i in range(1, N):
    if s[i:] == t[:-i]:
        print(s + t[i:])
        exit()
print(s+t)


Failing test case input:
4
exqr
rxeo

Expected output:
7


Actual output:
exqro


Fixed submission (verdict: Accepted):
N = int(input())
s = input()
t = input()
if s == t:
    print(N)
    exit()
for i in range(1, N):
    if s[i:] == t[:-i]:
        print(N + i)
        exit()
print(2*N)

Problem: p03951
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
t = input()
for i in range(n):
  if s[i:] == t[:n - i]:
    print(n + i)
    break

Failing test case input:
4
rrwe
oerx

Expected output:
8


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
s = input()
t = input()
i = 0
while i < n and s[i:] != t[:n - i]:
    i += 1
print(n + i)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
if a < b:
    print(n*a)
else:
    print(n*b)

Failing test case input:
10 -7 -92

Expected output:
-92


Actual output:
-920


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())


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

Failing test case input:
38 -1 -33

Expected output:
-38


Actual output:
-33


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(n*a if a<=n*b else b)

Failing test case input:
-13 1 1

Expected output:
-13


Actual output:
1


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
if n*a>b:
  print(n*a)
else:
  print(b)

Failing test case input:
-39 1 -1

Expected output:
-39


Actual output:
-1


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(b if a*n>b else a*b)

Failing test case input:
-18 3 0

Expected output:
-54


Actual output:
0


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
print(max(N*A, B))

Failing test case input:
-34 1 0

Expected output:
-34


Actual output:
0


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
print(min(N*A, B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B= map(int, input().split())

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

Failing test case input:
3 0 -35

Expected output:
-35


Actual output:

Fixed submission (verdict: Accepted):
N,A,B= map(int, input().split())


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = input().split()
N = int(x)
A = int(y)
B = int(z)

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



Failing test case input:
14 -1 0

Expected output:
-14


Actual output:
-1


Fixed submission (verdict: Accepted):
x, y, z = input().split()
N = int(x)
A = int(y)
B = int(z)

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
print(a if a<b*n else n*b)

Failing test case input:
4 2 9

Expected output:
8

Actual output:
2


Fixed submission (verdict: Accepted):
n,a,b =map(int,input().split())
print(b if b< n*a else n*a)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B=map(int,input().split())

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

Failing test case input:
4 2 8

Expected output:
8

Actual output:

Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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])

Failing test case input:
6 2 7

Expected output:
7


Actual output:
12


Fixed submission (verdict: Accepted):
nums = list(map(int, input().split()))

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
if N*A>=B:
  print(B)
else:
  print(A)

Failing test case input:
34 -6 0

Expected output:
-204


Actual output:
-6


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, a, b = map(int,input().split())
print(max(N * a, b))
      

Failing test case input:
10 -2 -141

Expected output:
-141


Actual output:
-20


Fixed submission (verdict: Accepted):
N, a, b = map(int,input().split())
print(min(N * a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(min(a*n,b*n))

Failing test case input:
50 -1 -2

Expected output:
-50


Actual output:
-100


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(a*n,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):




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

Failing test case input:
-98 1 -1

Expected output:
-98


Actual output:
-1


Fixed submission (verdict: Accepted):





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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
if a<=b:
  print(n*a)
else:
  print(b)  

Failing test case input:
-47 1 -1

Expected output:
-47


Actual output:
-1


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
if n*a<=b:
  print(n*a)
elif n*a>=b:
  print(b)
Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
array = input().split()
array = tuple(array)

count = int(array[0])
train_fare = int(array[1])
taxi_fare = int(array[2])

total_taxi_fare = taxi_fare * count


if (total_taxi_fare <= taxi_fare):
    print(total_taxi_fare)
elif (taxi_fare >= train_fare):
    print(train_fare)

Failing test case input:
-879 1 -2

Expected output:
-879


Actual output:

Fixed submission (verdict: Accepted):
array = input().split()
array = tuple(array)

count = int(array[0])
train_fare = int(array[1])
taxi_fare = int(array[2])

total_train_fare = train_fare * count


if (total_train_fare <= taxi_fare):
    print(total_train_fare)
else:
    print(taxi_fare)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(min(a,b)*n)

Failing test case input:
-13 -2 16

Expected output:
16


Actual output:
26


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(a*n,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = [int(s) for s in input().split()]

print(int(A*N + B))

Failing test case input:
77 -2 -2

Expected output:
-154


Actual output:
-156


Fixed submission (verdict: Accepted):
N,A,B = [int(s) for s in input().split()]

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

Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, A, B = map(int,input().split())
t = N*A
if t > B:
  print(B)
elif t < B:
  print(t)

Failing test case input:
4 2 8

Expected output:
8

Actual output:

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=[int(i)for i in input().split()]
print(max(n*a,b))

Failing test case input:
-18 2 -1

Expected output:
-36


Actual output:
-1


Fixed submission (verdict: Accepted):
n,a,b=[int(i)for i in input().split()]
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int, input().split())
ans = max(B, A*N)
print(ans)

Failing test case input:
-9 3 1

Expected output:
-27


Actual output:
1


Fixed submission (verdict: Accepted):
N,A,B = map(int, input().split())
ans = min(B, A*N)
print(ans)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, train, taxi = map(int, input().split(' '))
if n * train >= taxi:
  print(int(n*train))
else:
  print(int(taxi))

Failing test case input:
51 -2 -2

Expected output:
-102


Actual output:
-2


Fixed submission (verdict: Accepted):
n, train, taxi = map(int, input().split(' '))
if n * train <= taxi:
  print(int(n*train))
else:
  print(int(taxi))

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n, a, b = map(int, input().split())

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


Failing test case input:
13 -13 -48

Expected output:
-169


Actual output:
-624


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())

print(min((n * a, b)))
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())

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

Failing test case input:
-9 1 0

Expected output:
-9


Actual output:
0


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())

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

Failing test case input:
7 6 12

Expected output:
12


Actual output:
84


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())

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

Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input().split()
N=int(n[0])
A=int(n[1])
B=int(n[2])
a=N*A
if a>B:
  print(a)
else:
  print(B)

Failing test case input:
51 -2 -2

Expected output:
-102


Actual output:
-2


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(n*min(a,b))

Failing test case input:
19 -7 -107

Expected output:
-133


Actual output:
-2033


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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()


Failing test case input:
3 0 -35

Expected output:
-35


Actual output:
0


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


if __name__ == '__main__':
    main()

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())

b *= n

print(min(a, b))

Failing test case input:
-9 3 1

Expected output:
-27


Actual output:
-9


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())

a *= n

print(min(a, b))

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, A, B = map(int, input().split())
print(B, A*N)

Failing test case input:
-112 2 -1

Expected output:
-224


Actual output:
-1 -224


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
print(min(B, A*N))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = (int(i) for i in input().split())  
train = n*a
taxi = n*b
if train >= taxi:
  print(taxi)
else:
  print(train)

Failing test case input:
87 -1 -2

Expected output:
-87


Actual output:
-174


Fixed submission (verdict: Accepted):
n, a, b = (int(i) for i in input().split())  
train = n*a
taxi = b
if train >= taxi:
  print(taxi)
else:
  print(train)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(max(n*a,b))

Failing test case input:
19 -7 -107

Expected output:
-133


Actual output:
-107


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
print(max(a*n, b))

Failing test case input:
5 -5 1

Expected output:
-25


Actual output:
1


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
print(min(a*n, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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

Failing test case input:
4 2 7

Expected output:
7

Actual output:
8


Fixed submission (verdict: Accepted):

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())

print(max(n*a,b))

Failing test case input:
10 -1 -43

Expected output:
-43


Actual output:
-10


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())

print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
if n*a >= b:
    print(n*a)
else:
    print(b)


Failing test case input:
-100 2 -1

Expected output:
-200


Actual output:
-1


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
  n, a, b  = map(int, input().split())
  print(a*n, b)


if __name__ == '__main__':
  main()


Failing test case input:
6 1 0

Expected output:
0


Actual output:
6 0


Fixed submission (verdict: Accepted):
def main():
  n, a, b  = map(int, input().split())
  print(min(a*n, b))


if __name__ == '__main__':
  main()

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = list(map(int,input().split()))
if A * N <= B:
  print(A)
else:
  print(B)


Failing test case input:
19 -7 -107

Expected output:
-133


Actual output:
-7


Fixed submission (verdict: Accepted):
N, A, B = list(map(int,input().split()))
if A * N <= B:
  print(A*N)
else:
  print(B)

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
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))


Failing test case input:
7 6 12

Expected output:
12


Actual output:
42


Fixed submission (verdict: Accepted):
def read():
    N, A, B = list(map(int, input().strip().split()))
    return N, A, B


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


if __name__ == '__main__':
    inputs = read()
    print("%d" % solve(*inputs))
Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input().split()
N=int(n[0])
A=int(n[1])
B=int(n[2])
a=N*A
if a>=B:
  print(a)
else:
  print(B)

Failing test case input:
56 -1 -2

Expected output:
-56


Actual output:
-2


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

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    a,b,c = map(int,input().split())
    if a * b > c:
        print(a*b)
    else:
        print(c)

if __name__ == "__main__":
    main()

Failing test case input:
-121 2 -1

Expected output:
-242


Actual output:
-1


Fixed submission (verdict: Accepted):
def main():
    a,b,c = map(int,input().split())
    if a * b < c:
        print(a * b)
    else:
        print(c)

if __name__ == "__main__":
    main()

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())

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

Failing test case input:
38 -2 -4

Expected output:
-76


Actual output:
-4


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())

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

Problem: p02981
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n, a, b = map(int, input().split())
print(max(n*a, b))

Failing test case input:
3 -11 -1

Expected output:
-33


Actual output:
-1


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
print(min(n*a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print(c if c >= a*b else a*b)

Failing test case input:
50 -1 -2

Expected output:
-50


Actual output:
-2


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int, input().split())
if a*c >= b:
  print(b)
else:
  print(a*c)

Failing test case input:
50 -1 -2

Expected output:
-50


Actual output:
-100


Fixed submission (verdict: Accepted):
a,b,c = map(int, input().split())
if a*b >= c:
  print(c)
else:
  print(a*b)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = [int(x) for x in input().split()]
print(min(4*A,B))


Failing test case input:
-784 1 -1

Expected output:
-784


Actual output:
-1


Fixed submission (verdict: Accepted):
N,A,B = [int(x) for x in input().split()]
print(min(A*N,B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = list(map(int, input().split()))

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


Failing test case input:
44 -1 0

Expected output:
-44


Actual output:
-1


Fixed submission (verdict: Accepted):
N,A,B = list(map(int, input().split()))

if N*A < B:
    print(N*A)
else:
    print(B)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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]))


Failing test case input:
10 0 -18

Expected output:
-18


Actual output:
['10', '0', '-18']
-18


Fixed submission (verdict: Accepted):
N = input().split(" ")


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())

C = N*A

print(min(A, C))

Failing test case input:
10 -7 -92

Expected output:
-92


Actual output:
-70


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())

C = N*A

print(min(B, C))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
if a<=b:
  print(a*n)
else:
  print(b*n)

Failing test case input:
56 -1 -2

Expected output:
-56


Actual output:
-112


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B=map(int,input().split())
if A>=int(B/N):
  print(B)
else:
  print(A*N)

Failing test case input:
-96 2 -1

Expected output:
-192


Actual output:
-1


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())

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

Failing test case input:
4 2 9

Expected output:
8

Actual output:

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
a,b,c=map(int,sys.stdin.readline().split())
print(max(a*b,c))


Failing test case input:
38 -1 -97

Expected output:
-97


Actual output:
-38


Fixed submission (verdict: Accepted):
import sys
a,b,c=map(int,sys.stdin.readline().split())
print(min(a*b,c))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())

bb = b / n

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

Failing test case input:
10 0 -32

Expected output:
-32


Actual output:
-3.2


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
if a <= b:
    print(a*n)
else:
    print(b*n)

Failing test case input:
-18 4 0

Expected output:
-72


Actual output:
0


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
if a*n <= b:
    print(a*n)
else:
    print(b)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int, input().split())
if N*A <= B:
  print(A)
else:
  print(B)


Failing test case input:
4 2 8

Expected output:
8

Actual output:
2


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(min(a*n,b*n))

Failing test case input:
50 0 -2

Expected output:
-2


Actual output:
-100


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(a*n,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(max(n*a,b))

Failing test case input:
5 -1 4

Expected output:
-5


Actual output:
4


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
     
def main():
  n, a, b = LI()
  print(n*a, b)


Failing test case input:
-96 1 -1

Expected output:
-96


Actual output:

Fixed submission (verdict: Accepted):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
     
def main():
    n, a, b = LI()
    print(min(a*n, b))

main()

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())


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

Failing test case input:
-100 2 -1

Expected output:
-200


Actual output:
-1


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
c = n*a
if n*a > b:
  print(n*a)
else:
  print(b)

Failing test case input:
5 -5 1

Expected output:
-25


Actual output:
1


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
c = n*a
if c >= b:
  print(b)
else:
  print(c)
Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N,A,B=map(int,input().split())
print(min(B,A*B))

Failing test case input:
14 -2 1

Expected output:
-28


Actual output:
-2


Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())
print(min(B,A*N))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str = input("input: ")
n, a, b = str.split(' ')





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

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

Failing test case input:
13 -13 -48

Expected output:
-169


Actual output:
input: -169


Fixed submission (verdict: Accepted):
str = input("")
n, a, b = str.split(' ')

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

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
ans = a*b
if(ans > n):
    print(n)
elif(ans < n):
    print(ans)
else:
    print(ans)

Failing test case input:
20 -3 3

Expected output:
-60


Actual output:
-9


Fixed submission (verdict: Accepted):

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
D  = A*N
if D>B:
    print(D)
else: 
    print(B)

Failing test case input:
10 -7 -92

Expected output:
-92


Actual output:
-70


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
li=list(map(int,input().split()))

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

Failing test case input:
7 6 12

Expected output:
12


Actual output:
42


Fixed submission (verdict: Accepted):
li=list(map(int,input().split()))

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

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n,a,b = map(int,input().split())

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

Failing test case input:
44 -2 -2

Expected output:
-88


Actual output:
-2


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())

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

Failing test case input:
-96 4 1

Expected output:
-384


Actual output:
-96


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())

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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
s=[a,b/n]
print(min(s))

Failing test case input:
81 -1 -1

Expected output:
-81


Actual output:
-1


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
s=[a*n,b]
print(min(s))
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())

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

Failing test case input:
38 -2 -4

Expected output:
-76


Actual output:
-152


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())

print(min(n*a, b))

Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c = map(int,input().split())
x = [b,c]
x.sort()
print(a * x[0])

Failing test case input:
-784 1 -1

Expected output:
-784


Actual output:
784


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
x = [b * a,c]
x.sort()
print(x[0])

Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(max(a*n,b))

Failing test case input:
7 -1 -4

Expected output:
-7


Actual output:
-4


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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()


Failing test case input:
-879 1 -2

Expected output:
-879


Actual output:
1758


Fixed submission (verdict: Accepted):
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B=map(int,input().split())
print(max(N*A,B))

Failing test case input:
77 -2 -2

Expected output:
-154


Actual output:
-2


Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())
print(min(N*A,B))

Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(max(n*a,b))

Failing test case input:
-18 3 0

Expected output:
-54


Actual output:
0


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
print(n * min(a, b))


Failing test case input:
10 -2 -141

Expected output:
-141


Actual output:
-1410


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
print(min(n * a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
print(N*A) if N*A < B else (B)

Failing test case input:
50 0 -2

Expected output:
-2


Actual output:

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

Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, a, b = map(int, input().split())
train = n * a
taxi = n * b
print(min(train, taxi))

Failing test case input:
10 -7 -92

Expected output:
-92


Actual output:
-920


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
train = n * a
taxi = b
print(min(train, taxi))
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
if n*a > b:
  print(n*a)
else:
  print(b)

Failing test case input:
38 -2 -4

Expected output:
-76


Actual output:
-4


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int, input().split())

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

Failing test case input:
19 -7 -107

Expected output:
-133


Actual output:
-2033


Fixed submission (verdict: Accepted):
n,a,b = map(int, input().split())

print(min(n*a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
if N*A>=B:
    print(N*A)
else:
    print(B)

Failing test case input:
-23 2 -1

Expected output:
-46


Actual output:
-1


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())

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

Failing test case input:
4 4 9

Expected output:
9


Actual output:
16


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())

print(min(n * a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n = input()

N = int(n.split()[0])
A = int(n.split()[1])
B = int(n.split()[2])

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

else:
    print(int(A*N))



Failing test case input:
-69 2 -1

Expected output:
-138


Actual output:
69


Fixed submission (verdict: Accepted):

n = input()

N = int(n.split()[0])
A = int(n.split()[1])
B = int(n.split()[2])

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

else:
    print(int(A*N))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int, input().split())

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

Failing test case input:
-13 -2 3

Expected output:
3


Actual output:
-39


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

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys

readline = sys.stdin.readline

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

print(N * min(A, B))

Failing test case input:
-9 1 0

Expected output:
-9


Actual output:
0


Fixed submission (verdict: Accepted):
import sys

readline = sys.stdin.readline

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

print(min(N * A, B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
if N*4 < B:
    print(N*4)
else:
    print(B)

Failing test case input:
-9 3 1

Expected output:
-27


Actual output:
-36


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
if N*A < B:
    print(N*A)
else:
    print(B)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
people, train, taxi = input("Enter a three value: ").split()
price1 = int(people) * int(train)
print(min(price1, int(taxi)))

Failing test case input:
7 6 12

Expected output:
12


Actual output:
Enter a three value: 12


Fixed submission (verdict: Accepted):
people, train, taxi = input().split()
price1 = int(people) * int(train)
print(min(price1, int(taxi)))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print((lambda n,a,b:max(n*a, b))(*[int(x) for x in input().split()]))

Failing test case input:
-18 2 -1

Expected output:
-36


Actual output:
-1


Fixed submission (verdict: Accepted):
print((lambda n,a,b:min(n*a, b))(*[int(x) for x in input().split()]))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
if a>=b:
  print(n*a)
else:
  print(b)  

Failing test case input:
3 -1 4

Expected output:
-3


Actual output:
4


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
if n*a<=b:
  print(n*a)
elif n*a>=b:
  print(b)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b= map(int, input().split())
if a < b:
	print(a*n)
else:
	print(b)

Failing test case input:
-13 -2 16

Expected output:
16


Actual output:
26


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

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
D  = A*N
G  =  B*N
if D>G:
    print(D)
else: 
    print(G)

Failing test case input:
-13 -2 16

Expected output:
16


Actual output:
26


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

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
array = input().split()
array = tuple(array)

count = int(array[0])
train_fare = int(array[1])
taxi_fare = int(array[2])

total_taxi_fare = taxi_fare * count


if (total_taxi_fare >= taxi_fare):
    print(total_taxi_fare)
elif (taxi_fare >= train_fare):
    print(train_fare)

Failing test case input:
-18 2 -1

Expected output:
-36


Actual output:
18


Fixed submission (verdict: Accepted):
array = input().split()
array = tuple(array)

count = int(array[0])
train_fare = int(array[1])
taxi_fare = int(array[2])

total_train_fare = train_fare * count


if (total_train_fare <= taxi_fare):
    print(total_train_fare)
else:
    print(taxi_fare)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)


Failing test case input:
11 -2 -3

Expected output:
-22


Actual output:
-3


Fixed submission (verdict: Accepted):
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)