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

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N,A,B=map(int,input().split())

if A*N<B:
    ans=a*N
else:
    ans=B

print(ans)


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

if A*N<B:
    ans=A*N
else:
    ans=B

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 = input()
A = input()
B = input()

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

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

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

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
# 21:05
N ,A ,B = map(int, input().split())
print(max(N*A,B))


# 21:05
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=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)

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)

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)

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,r=map(int,input().split())
l0=l%2019
r0=r%2019
if r-l>=2019 or l0==0 or r0==0:
    print(0)
elif l-l%2019+2019<=r:
    print(0)
else:
    ans=2019
    for i in range(l0,r0):
        for j in range(i+1,r0+1):
            if (i*j)%2019<ans:
                ans=(i*j)%2019
            if ans==1:
                break
        if ans==1:
            break
    print(ans)

l,r=map(int,input().split())
l0=l%2019
r0=r%2019
if r-l>=2019 or l0==0 or r0==0:
    print(0)
elif l-l%2019+2019<=r:
    print(0)
else:
    ans=2019
    for i in range(l0,r0):
        for j in range(i+1,r0+1):
            if (i*j)%2019<ans:
                ans=(i*j)%2019
            if ans==1:
                break
        if ans==1:
            break
    print(ans)

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):
def main(n,a,b):
    sum_list = [(n-x)*b + x * a for x in range(1,20)]
    return min(sum_list)

if __name__ == '__main__':
    s = list(map(int, input().split()))
    main(s[0],s[1],s[2])

def main(n,a,b):
    if 1 <= n <= 20 and 1 <= a <= 50 and 1 <= b <= 50 :
        sum_list = [(n-x)*b + x * a for x in range(1,n)]
    return min(sum_list)

if __name__ == '__main__':
    s = list(map(int, input().split()))
    huga = main(s[0],s[1],s[2])
    print(huga)

def main(n,a,b):
    sum_list = [(n-x)*b + x * a for x in range(1,20)]
    return min(sum_list)

if __name__ == '__main__':
    s = list(map(int, input().split()))
    huga = main(s[0],s[1],s[2])
    print(huga)

def main(n,a,b):
    sum_list = [(n-x)*b + x * a for x in range(1,20)]
    return min(sum_list)

if __name__ == '__main__':
    s = list(map(int, input().split()))
    main(s[0],s[1],s[2])

def main(n,a,b):
    if (1 <= n <= 20 )and (1 <= a <= 50) and (1 <= b <= 50) :
        sum_list = [n * a, b] 
    return min(sum_list)

if __name__ == '__main__':
    s = list(map(int, input().split()))
    huga = main(s[0],s[1],s[2])
    print(huga)

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
a, b, c = str(input()).split()

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

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

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

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

a,b,c = map(int, 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):
L,R = map(int, input().split())
MIN = 2019
for i in range(L,R):
    for j in range(i+1, R+1):
        mod = ij % 2019

        if MIN > mod:
            MIN = mod
 
print(MIN)

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

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

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
a,b,c=map(int,input().split());print([a*b,c][a*b<c])

a,b,c=map(int,input().split());print(a*b if a*b<c else 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):
tmp=input().split()
n=int(tmp[0])
d=int(tmp[1])
xn = [0]*n
num = 0

for i in range(n):
  xn[i] = input().split()
    
for i in range(n):
  for j in range(i+1, n):
    dist = 0
    for k in range(d):
      dist = dist + pow(int(xn[i][k])-int(xn[j][k]), 2)
#    print("test",dist)
#    print(int(pow(int(pow(dist,0.5)), 2)))
    if dist == int(pow(int(pow(dist,0.5)), 2)):
      num += 1
print(num)
                
    

tmp=input().split()
n=int(tmp[0])
a=int(tmp[1])
b=int(tmp[2])

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

tmp=input().split()
n=int(tmp[0])
a=int(tmp[1])
b=int(tmp[2])

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
import math
n,d=input().split()
n=int(n)
d=int(d)
def combinations(n, r):
    return math.factorial(n)/(math.factorial(n-r)*math.factorial(r))
x=[]
if d==1:
  count=combinations(n,2)
  count=int(count)
else:
  for i in range(n):
    xa=[int(s) for s in input().split()]
    x.append(xa)
  a=[]
  for i in range(n-1):
    for j in range(i+1,n):
      t=[]
      for k in range(d):
        c=(x[i][k]-x[j][k])*(x[i][k]-x[j][k])
        t.append(c)
        if k==d-1:
          a.append(sum(t))
  answer=list(map(lambda x:pow(x,1/2),a))
  count=0
  for l in range(n):
    if answer[l].is_integer()==True:
      count=count+1
print(count)

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b=[int(i)for i in input().split()]
print(max(n*a,b))

n,a,b=[int(i)for i in 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())
l, r = l%2019, r%2019
mi = 9999
if r*(r-1)<2019:
    print(l*(l+1))
elif r==0 or l==0:
    print(0)
else:
    for i in range(l, r-1):
        for j in range(i+1, r):
            if (i/3).is_integer() and (j/673).is_integer():
                print((i/3)*((i/3)+1))
            elif (i/673).is_integer() and (j/3).is_integer():
                print((i/673)*((i/673)+1))
            else:
                mi = min(mi, (i*j)%2019)
    print(mi)  

l, r = map(int, input().split())
l, r = l%2019, r%2019
mi = 9999
if r*(r-1)<2019:
    print(l*(l+1))
elif r==0 or l==0:
    print(0)
else:
    for i in range(l, r-1):
        for j in range(i+1, r):
            if (i/3).is_integer() and (j/673).is_integer():
                mi = (i/3)*((i/3)+1)
            elif (i/673).is_integer() and (j/3).is_integer():
                mi = (i/673)*((i/673)+1)
            else:
                mi = min(mi, (i*j)%2019)
    print(mi)

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

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

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N, A, B = 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())

li = [N , A , B]
print(min(li()))

x = N * A
y = B

li = [x,y]
print(min(li))

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

x = N*A
y = B
li = [x,y]
print(min(li()))

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


li = [N*A,B]
print(min(li()))

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

li = [x,y]
print(min(li()))

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

li = [N*A,B]
print(min(li))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
print(int(a*b+c))

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
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):
info = input().split(" ")
N = int(info[0])
A = int(info[1])
B = int(info[2])

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


info = input().split(" ")
N = int(info[0])
A = int(info[1])
B = int(info[2])

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

info = input().split(" ")
N = int(info[0])
A = int(info[1])
B = int(info[2])

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

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

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n=input()
n.split(" ")
if int(n[0])*int(n[1]) < int(n[2]):
  print(int(n[0])*int(n[1]))
else:
  print(int(n[2]))
  

i=input()
ii = i.split()
if int(ii[0]) * int(ii[1]) < int(ii[2]):
  print(int(ii[0]) * int(ii[1]))
else:
  print(int(ii[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 = int(input("N = "))
A = int(input("A = "))
B = int(input("B = "))
train = N * A
taxi = B
if train >= taxi:
    print(taxi)
else:
    print(train)

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

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

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

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

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

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

Verdicts: Wrong Answer

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

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

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

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

print (min(A * N, B))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
L, R = map(int, input().split())

listX = []
sw = 0
i = 1
for i in range(1, 990590):
  listX.append(i*2019)

for n in range(len(listX)):
  if L < listX[n] and R > listX[n]:
    sw += 1

if sw > 0:
  print(0)

elif sw == 0:      
  L_1 = L % 2019
  R_1 = R % 2019
  
  idx1 = 0
  listA = []
  for idx1 in range(L_1, R_1):
    for idx2 in range(idx1 + 1, R_1 + 1):
      listA.append(idx1 * idx2)
 
  print(min(listA))

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

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
L, R = map(int, input().split())

Lmod = L%2019
Rmod = R%2019

i = Lmod
j = i + 1

print((i*j)%2019)

L, R = map(int, input().split())

Lmod = L%2019
Rmod = R%2019

i = Lmod
j = i + 1

for k in range(L, R+1):
  if (k%2019) == 0:
    print(0)
    break
  elif k < R:
	continue
  else:
	print((i*j)%2019)

L, R = map(int, input().split())

Lmod = L%2019
Rmod = R%2019

i = Lmod
j = i + 1

for k in range(L, R+1):
  if (k%2019) == 0:
    print(0)
    break
  elif (k < R):
  	continue
  else:
    print((i*j)%2019)


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

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

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n, d = map(int, input().split())
count = 0
x_list = (list(map(int, input().split())) for _ in range(n))

for i in range(n-1):
    for j in range(i+1, n):
        count += (sum((a-b)**2 for a,b in zip(x_list[i], x_list[j]))**0.5).is_integer
print(count)

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b=map(int(input().split()));print(min([n*a,b]))

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

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

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


if __name__ == "__main__":
    main()


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

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


import math
a = 0
b = 1
N, D = map(int, input().split())
ls = [list(map(int, input().split()))for i in range(N)]
for i in range(N):
    for j in range(i, N):
        for k in range(D):
            a += (ls[i][k] - ls[j][k]) ** 2
            if math.sqrt(a).is_integer() is True:
                b += 1

print(b)


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

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

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
List = list(map(int,input().split()))
N = List[0]
A = List[1]
B = List[2]

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



List = list(map(int,input().split()))
L = List[0]
R = List[1]
count_dict = {}
count_list = []
if R - L >= 2019:
    print(0)
else:
    for i in range(L,R+1):
        for j in range(i,R+1):
            count_dict[i,j]  = (i * j) % 2019

    for i in count_dict.values():
        count_list.append(i)

    sort_list = sorted(count_list)
    print(sort_list[0])


List = list(map(int,input().split()))
N = List[0]
A = List[1]
B = List[2]

if A*N <= B:
    print(A*N)
else:
    print(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):
l,r=map(int,input().split())
s=list()
if l+1==r:
    print(l*r)
else:
    for i in range(l,r):
        s.append([i*(i+1)%2019])
    #print(s[0][0])
    s=(sorted(s))
    print(s[0][0])

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

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

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
print(train,taxi)

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


Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
def solve():
  L, R = map(int, input().split())
  ans = 2019
  for i in range(L, R):
    for j in range(i + 1, R + 1):
      v = i * j % 2019
      if v < ans: ans = v
      if ans == 0: return
  return ans

print(solve())


def solve():
  N, A, B = map(int, input().split())
  return min(N * A, B)

print(solve())

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

n,a,b = map(int,input().split())
if n%4 == 0:
    k = n//4
else:
    k = n//4+1
        

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

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

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


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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b = map(int,input().split())

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,d = map(int,input().split())
x = [list(map(int,input().split())) for a in range(n)]
c = 0
 
for i in range(n-1):
  for j in range(i+1,n+1):
    b = 0
    for m in range(d):
      b += (int(x[i][m])-int(x[j][m]))**2
    if (b**0.5)　== float(int(b**0.5)):
      c += 1
      
print(c)

n,d = map(int,input().split())
x = [list(map(int,input().split())) for a in range(n)]
c = 0
 
for i in range(n-1):
  for j in range(i+1,n+1):
    b = 0
    for m in range(d):
      b += (int(x[i][m])-int(x[j][m]))**2
    if (b**0.5)　== float(int(b**0.5)):
      c += 1
      
print(c)

n,d = map(int,input().split())
x = [list(map(int,input().split())) for a in range(n)]
c = 0
 
for i in range(n-1):
  for j in range(i+1,n):
    b = 0
    for m in range(d):
      b += (x[i][m])-x[j][m])**2
    if (b**0.5)　== float(int(b**0.5)):
      c += 1
      
print(c)

n,d = map(int,input().split())
w = [list(map(int,input().split())) for a in range(n)]
c = 0
 
for i in range(n-1):
  for j in range(i+1,n+1):
    b = 0
    for m in range(d):
      b += (w[i][m]-w[j][m])**2
    if (b**0.5)　== float(int(b**0.5)):
      c += 1
      
print(c)

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

mod = []
if R+1-L<=2019:
    for i in range(L,R):
        for j in range(i+1,R+1):
            mod.append((i*j)%2019)

else:
    for i in range(L, L+2019):
        for j in range(i, L+2019+1):
            mod.append((i*j)%2019)


if len(mod)==0:
    print((L*R)%2019)
else:
    print(min(mod))


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

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


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
A,P = map(int,input().split())
print((A*3+P)//2)

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

print(max(N*A,B))

A,P = map(int,input().split())
print((A*3+P)//2)

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

a = N * A

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

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

a = N * A

if a > B:
    print(B)
else:
    print(int(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(min(A*N,B))

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
A, B = map(int, input().split())

print(min(A*N, B))

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
L, R = map(int, input().split())
l = L % 2019
r = R % 2019
ans = 10 ** 12
if l > r:
    ans = 0
else:
    for i in range(l, r + 1):
        for j in range(i + 1, r + 1):
            ans = min(ans, i * j % 2019)
print(ans)

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

A=list(map(int,input().split()))
B=int(A[0])*int(A[1])
C=int(A[2])
if C>=B:
    print(B)
else:
    print(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 math, sys
sys.setrecursionlimit(100000000)
mod = 10**9+7
N, K = map(int, input().split())
edge = [[] for _ in range(N)]
flag = [False]*N
flag[0] = True
for i in range(N-1):
    a, b = map(int, input().split())
    edge[a-1].append(b-1)
    edge[b-1].append(a-1)
P = [1]*(K+10)
T = [1]*(K+10)
for i in range(1, K+10):
    P[i] = (P[i-1]*(K-i))%mod
    T[i] = T[i-1]*(K-i-1)%mod
def count(x):
    flag[x]=True
    res = 1
    l = len(edge[x])-1
        
    for e in edge[x]:
        if flag[e]:
            continue
        res*=count(e)
    if x==0:
        return res*K*P[l+1]%mod
    return res*T[l]%mod
print(count(0))



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

s=inp()
#s = (1 2 2) 
s = s.split(" ")


densya = int(s[0])*int(s[1])
taxi   = int( s[3] )

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

s=inp()
#s = (1 2 2) 
s = s.split(" ")


densya = s[0]*s[1]
taxi   = s[3]

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


s=inp()
#s = ("4 2 9")
#print(s) 
s = s.split(" ")


densya = int(s[0])*int(s[1])
taxi   = int( s[2] )

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

s=input()
#s = ("4 2 9")
#print(s) 
s = s.split(" ")


densya = int(s[0])*int(s[1])
taxi   = int( s[2] )

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

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

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

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

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

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


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
L,R=map(int,input().split())
l=L//2019
ll=L%2019
r=R//2019
if l<r or ll==0:
  print(0)
else:
  print(ll*(ll+1))


L,R=map(int,input().split())
l=L//2019
ll=L%2019
r=R//2019
lll=L//673
rrr=R//673
if l<r or ll==0:
  print(0)
elif lll>=1 and R-L>=3:
  print(0)
else:
  print(ll*(ll+1))


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

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

# -*- coding: utf-8 -*-

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

Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
l,r = map(int,input().split())
diff = r - l

if(diff >= 2019):
  print(0)
else:
  lmod = l % 2019
  rmod = r % 2019
  if(rmod  < lmod):
    print(0)
  else:
    ans =2020
    for i in range(l,r+1):
      for j in range(i+1,r+1):
        print("{} {}".format(i,j))
        if((i*j) % 2019 < ans):
          ans = (i*j) % 2019
    print(ans)

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

print(min(n*a,b))

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n, a, b=list(input().sprit())
res=min(n*a,b)
print(res)

n=int(input())
x=list(map(int, input().split()))
import numpy as np

y=np.repeat([1,-1]*(n-1))
y.append([1])
print(y)

for i in range(n):
	if i%2!=0:
		y[i]=-1

x2=np.array(x).T

for i in range(n):
	y2=np.roll(y,i)
	res=np.dot(y2,x2)
	print(res)

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
L, R = map(int, input().split())

result = 2019

for i in range(2019):
    if L+i > R-1:
        break;
    for j in range(i+1, 2019):
        if(L+j > R):
            break
        else:
            result = min(result,((L+i)*(L+j))%2019)

print(result)

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

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
N = int(input('人数：'))
A = int(input('電車賃：'))
B = int(input('タクシー代：'))
l=N*A
if l>B:
    print(B)
else:
    print(l)

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

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


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


Verdicts: Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n =  int(input())
a = int(input())
b = int(input())

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

str = input().split()
n = int(str[0])
a = int(str[1])
b = int(str[2])

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

Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
x,y,z = map(int, input().split())
D = x * y
T=z
 if  D < T :
     print(D)
 else : print(T)

x,y,z = map(int, input().split())
D = x * y
T=z
 if  D < T :
      print(D)
 else : print(T)

input(taxi)
input(train)
print(train+taxi)

x,y,z = map(int, input().split())
D=x*y
T=z
 if( D<T,print(D))
 else(D>T,print(T)
  

x,y,z = map(int, input().split())
D=x*y
T=z
 if D<T:
  print(D)
 else:  print(T)

x,y,z = map(int, input().split())
D = x * y
T=z
if  D < T :
      print(D)
else : print(T)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b = map(int,input().split())

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())
ans = 2019
mod = 2019
 
for i in range(l,r):
  for j in range(i+1,r):
    ans = min(ans,(i*j)%mod)
    if ans == 0:
      print(0)
      exit()
print(ans)

L, R = map(int, input().split())



#print(L%2019, R%2019)

#print((L + 2019 - L%2019))

tmp = 0
"""
if L * R < 2019:
	i = L
	j = R

elif (L + 2019 - L%2019) + 1 <= R:
	if L < L + 2019 - L % 2019 and L + 2019 - L % 2019 + 1 < R:
		i =  L + 2019 - L % 2019
		j = i+1

elif L % 2019 < R % 2019:
	i = L
	j = i+1

elif R % 2019 > L % 2019:
	j = R
	i = j-1

else:
	i = L
	j = R
"""

i = 2019 - np.abs(L-R)
j = i+1

ans = i * j % 2019

print(ans)

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n, a, b = map(int, input().split())

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

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

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


Verdicts: Wrong Answer

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: 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 = int(input())
a = int(input())
b = int(input())

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

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

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

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


Verdicts: Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
n,a,b=map(int,input().split())

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
a,b,c = map(int,input().split())
d = a*b
if d>c
print("{}".format(c))
else if
print("{}".format(d))


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


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


a,b,c = map(int,input().split())
d = a*b
if d>c:
print("{}".format(c))
else:
print("{}".format(d))


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


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: N of us are going on a trip, by train or taxi.  The train will cost each of us A yen (the currency of Japan).  The taxi will cost us a total of B yen.  How much is our minimum total travel expense?

Submission attempts (in order):
# -*- coding: utf-8 -*-

N = int(input())


A = int(input())


B = int(input())

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

# -*- coding: utf-8 -*-
a, b, c = map(int, input().split())

if a*b >= c:
    print(c)
else:
    print(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())
mod1 = []
mod2 = []
for i in range(l,r+1):
  mod1.append(i%2019)

for i in range(len(mod1)-1):
  for j in range(i+1,len(mod1)):
    mod2.append((mod1[i]*mod1[j])%2019)
print(min(mod2))

a, b, c =map(int,input().split())
if a*b>=c:
  print(c)
else:
  print(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(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):
import math
n,d = list(map(int, input().split()))
x = [list(map(int, input().split())) for N in range(n)]
 
cnt = 0
 
for i in range(n):
  for j in range(i+1,n):
    kaijou = 0
    for k in d:
      kaijou = kaijou + abs(x[j][k]-x[i][k])**2
    if math.sqrt(kaijou).is_integer():
      cnt += 1
      
print(cnt)

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 =open(0)


c = int(int(a) * int(n))
b = int(b)

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

Accepted