problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02981
u489762173
2,000
1,048,576
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?
['N, A, B = map(int, input().split())\n\nif(N*A < B):\n print(A)\nelse:\n print(B)', 'N, A, B = map(int, input().split())\n\nif(N*A <= B):\n print(A)\nelse:\n print(B)', 'N, A, B = map(int, input().split())\n\nif(N*A <= B):\n print(N*A)\nelse:\n print(B)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s359603502', 's976719140', 's510237841']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[81, 82, 84]
p02981
u490489966
2,000
1,048,576
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?
['#A\nn, a, b = map(int, input().split())\nprint(min(n*a,b))A', '#A\nn, a, b = map(int, input().split())\nprint(min(n*a,b))']
['Runtime Error', 'Accepted']
['s569589375', 's867270422']
[2940.0, 2940.0]
[17.0, 18.0]
[57, 56]
p02981
u492447501
2,000
1,048,576
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?
['in = input()\n\nin = in.split()\n\nN = in[0]\nA = in[1]\nB = in[2]\n\n\ntrain_cost = N*A\ntaxi_cost = B\n\nif N*A > B:\n print(B)\nelif:\n print(N*A)\n', 'S = input()\n\nS = S.split()\n\nN = int(S[0])\nA = int(S[1])\nB = int(S[2])\n\n\ntrain_cost = N*A\ntaxi_cost = B\n\nif train_cost >= taxi_cost:\n print(...
['Runtime Error', 'Accepted']
['s901382061', 's877951677']
[2940.0, 2940.0]
[17.0, 18.0]
[142, 182]
p02981
u493221626
2,000
1,048,576
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?
['# coding:utf-8\n\nline = input()\nls = line.split(" ")\nn = ls[0]\na = ls[1]\nb = ls[2]\n\nprint(b) if n * a >= b else print(n * a)', '# coding:utf-8\n\nline = input()\nls = line.split(" ")\nn = int(ls[0])\na = int(ls[1])\nb = int(ls[2])\n\nprint(b) if n * a >= b else print(n * a)\n']
['Runtime Error', 'Accepted']
['s962097352', 's868005061']
[2940.0, 2940.0]
[17.0, 17.0]
[123, 139]
p02981
u494514222
2,000
1,048,576
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?
['l,r = map(int, input().split())\n\nr = min(r, l = 4038);\nans = 2018\nfor i in range(l, r + 1):\n for j in range(i + 1, r + 1):\n x = i * j % 2019\n ans = min(ans, x)\n\nprint(ans)', 'n,a,b = map(int, input().split())\n\nprint(min(n*a, b))']
['Runtime Error', 'Accepted']
['s338391770', 's020534990']
[3060.0, 2940.0]
[17.0, 17.0]
[188, 53]
p02981
u494919575
2,000
1,048,576
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?
['n, a, b = map(int, input().split())\n\nif (n*a) > b:\n print(n*a)\nelse:\n print(b)', 'n, a, b = map(int, input().split())\n\nif (n*a) > b:\n print(b)\nelse:\n print(n*a)']
['Wrong Answer', 'Accepted']
['s688438129', 's254715703']
[2940.0, 2940.0]
[17.0, 18.0]
[84, 84]
p02981
u498975739
2,000
1,048,576
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?
['alpha = N * A\nif B <= alpha:\n print(B)\n \nelif B > alpha:\n prihnt(alpha)', 'N,A,B = map(int,input().split())\nalpha = N*A\nif B <= alpha:\n print(B)\n \nelse:\n print(alpha)']
['Runtime Error', 'Accepted']
['s765158750', 's237334907']
[2940.0, 2940.0]
[17.0, 18.0]
[74, 94]
p02981
u499966353
2,000
1,048,576
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?
['n, a, b = map(int, input().split())\n\ndef solve():\n return min(n * a, b)', 'n, a, b = map(int, input().split())\ndef solve():\n\treturn min(n * a, b)\n \nprint(solve())']
['Wrong Answer', 'Accepted']
['s847219631', 's132146310']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 88]
p02981
u502389123
2,000
1,048,576
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?
['L, R = map(int, input().split())\n\na = R % 2019\nb = L % 2019\n\nif a > 2019 // 2:\n a = 2019 - a\nif b > 2019 // 2:\n b = 2019 - b\n\nprint(a * (a+1) % 2019)\n', 'N, A, B = map(int, input().split())\n\nprint(min(N*A, B))\n']
['Runtime Error', 'Accepted']
['s903832183', 's438372651']
[2940.0, 3316.0]
[17.0, 21.0]
[156, 56]
p02981
u502967152
2,000
1,048,576
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?
['n,a,b=int(input().strip().split)\n\ntrain=n*a\ntaxi=b\n\nfare=min(taxi,train)\n\nprint(str(fare))', 'n,a,b=int(input().strip().split())\n\nif n*a>=b:\n print(b)\nelse:\n print(n*a)', 'n,a,b=input().strip().split()\nn,a,b=[int(n),int(a),int(b)]\n\nif n*a>b:\n print(b)\nelse:\n print(n*a)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s057178021', 's887122002', 's983672484']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[90, 76, 99]
p02981
u503111914
2,000
1,048,576
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?
['l,r = map(int,input().split())\nb = sorted([i%2019 for i in range(l,min(r+1,l+2019))])\nprint(b[0]*b[1])', 'N,A,B = map(int,input().split())\nif N*A > B:\n print(B)\nelse:\n print(A*N)']
['Runtime Error', 'Accepted']
['s224429675', 's823870517']
[3060.0, 2940.0]
[19.0, 18.0]
[102, 74]
p02981
u505893372
2,000
1,048,576
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?
['N,A,B = map(int,input().split())\n\nprint(max(int(N*A),B))', 'N,A,B = map(int,input().split())\n\nprint(min(int(N*A),B))']
['Wrong Answer', 'Accepted']
['s483889227', 's975588808']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 56]
p02981
u512293334
2,000
1,048,576
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?
['L, R = map(int, input().split())\ndiff = R-L\nfor n in range(1):\n if diff > 2019:\n ret = 0\n break\n \n results = []\n for i in range(L, R):\n for j in range(i+1,R+1):\n results.append((i*j)%2019)\n ret = min(results)\nprint(ret)', 'N, A, B = map(int, input().s...
['Runtime Error', 'Accepted']
['s005562806', 's619180776']
[3060.0, 2940.0]
[18.0, 17.0]
[274, 53]
p02981
u514652247
2,000
1,048,576
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?
['L,R=map(int,input().split())\n\nkeep=L*R\nfor i in range(L,R+1):\n for j in range(i+1,R+1):\n mod=(i*j) % 2019\n if mod<keep:\n keep=mod\n j=j+2019\nprint(keep)', 'N,A,B=map(int,input().split())\nprint(min(N*A,B))\n']
['Runtime Error', 'Accepted']
['s937204012', 's398249437']
[3060.0, 2940.0]
[17.0, 17.0]
[168, 49]
p02981
u514894322
2,000
1,048,576
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?
['n,a,b = map(int,input().split())\nprint(min([n*a,b])', 'n,a,b = map(int,input().split())\nprint(min([n*a,b]))\n']
['Runtime Error', 'Accepted']
['s792643739', 's481080289']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 53]
p02981
u516608852
2,000
1,048,576
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?
['N,A,B = list(map(int, input().split()))\n\nif N*A > B:\n print(B)\nelse:\n print(A)\n', 'import sys\nprint(\'python-izm\')\n\nargs = sys.argv\n\nn = args[0]\na = args[1]\nb = args[2]\n\nif n*a > b:\n print("b")\nelse:\n print("a")\n\n', 'import sys\n\nargs = sys.argv\n\nn = args[1]\na = args[2]\nb = args[...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s165803648', 's433158605', 's589925375', 's715419806', 's716435283', 's186200335']
[3064.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0, 17.0]
[85, 135, 115, 135, 93, 87]
p02981
u517930510
2,000
1,048,576
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?
['l,r = map(int, input().split())\nif r-l+1>2019:\n print(0)\n exit()\nL = []\nfor i in range(l,r):\n for j in range(i+1,r):\n a = i*j\n b = a%2019\n L.append(b)\nprint(min(L))\n', 'n,a,b = map(int,input().split())\nif n*a >= b:\n print(b)\nelse:\n print(n*a)']
['Runtime Error', 'Accepted']
['s667969118', 's410907466']
[2940.0, 2940.0]
[17.0, 22.0]
[177, 75]
p02981
u527616458
2,000
1,048,576
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?
['n,a,b = map(int, input().split)\nprint(min(n*a,b))', 'n = input()\na = input()\nb = input()\n\nif n*a <= b:\n print(n*a)\nelse:\n print(b)', 'n,a,b = map(int, input().split())\nprint(min(n*a,b))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s519843485', 's961939452', 's772515208']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[49, 79, 51]
p02981
u528482684
2,000
1,048,576
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?
['min(A*N,B)', 'N,A,B = list(map(int, input().split(" ")))\nprint(min(A*N,B))']
['Runtime Error', 'Accepted']
['s507371057', 's466734013']
[2940.0, 2940.0]
[17.0, 17.0]
[10, 60]
p02981
u531436689
2,000
1,048,576
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?
['import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools\nfrom collections import deque\n\nsys.setrecursionlimit(10**7)\ninf = 10**20\nmod = 10**9 + 7\n\nDR = [1, -1, 0, 0]\nDC = [0, 0, 1, -1]\n\ndef LI(): return [int(x) for x in sys.stdin.readline().split()]\ndef LI_():...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s190392730', 's234423701', 's463008823', 's607928103', 's674172020', 's177247767']
[3064.0, 3064.0, 6732.0, 3064.0, 6480.0, 6324.0]
[18.0, 17.0, 58.0, 17.0, 58.0, 56.0]
[637, 643, 646, 643, 637, 655]
p02981
u532966492
2,000
1,048,576
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?
['chimpo = N\nmanko = A\nB\nAC\n', 'n,a,b=map(int,input().split())\nprint(min(n*a,b))']
['Runtime Error', 'Accepted']
['s416859882', 's622335207']
[2940.0, 2940.0]
[18.0, 18.0]
[26, 48]
p02981
u536177854
2,000
1,048,576
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?
[' n,a,b=map(int,input().split())\n print(min(n*a,b))', 'n,a,b=map(int,input().split())\nprint(max(n*a,b))', 'n,a,b=map(int,input().split())\nprint(min(n*a,b))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s521491395', 's815878881', 's932183507']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[56, 48, 48]
p02981
u538956308
2,000
1,048,576
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?
['N,A,B = map(int,input().split())\nif N*A>=B:\n print(B)\nelse:\n print(A)', 'import numpy as np\nN,D = map(int,input().split())\nX =[]\ncnt = 0\nfor i in range(N):\n X = np.vstack(X,list(map(int,input().split())))\n\nfor i in range(N-1):\n c = X[i]\n for j in range(i+1,N):\n d = X[j]\n e = c-d\...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s063242518', 's738871390', 's615463472']
[2940.0, 12420.0, 2940.0]
[17.0, 150.0, 17.0]
[71, 366, 73]
p02981
u539409184
2,000
1,048,576
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?
['n, A, B = map(int, input().split())\nprint(n*A if n*A > B else B)', 'n, A, B = map(int, input().split())\nprint(n*A if n*A < B else B)']
['Wrong Answer', 'Accepted']
['s809656169', 's936189575']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 64]
p02981
u543019323
2,000
1,048,576
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?
["n = input('整数を入力してください:')\n\nwhile n.isdigit() == False or int(n) < 1 or int(n) > 20:\n print('Error')\n n = input('整数を入力してください:')\nelse:\n n = int(n)\nn = int(n)\n\n\na = input('整数を入力してください:')\n\nwhile a.isdigit() == False or int(a) < 1 or int(a) > 50:\n print('Error')\n a = input('整数を入力してください:')\nels...
['Runtime Error', 'Accepted']
['s482478125', 's969354249']
[3064.0, 2940.0]
[17.0, 17.0]
[710, 102]
p02981
u546686251
2,000
1,048,576
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?
['N, A, B = map(int, input().split())\nans = []\nfor i in range(1, N):\n ans.append(A * i + B / N * (N - i))\nprint(min(ans))\n', 'N, A, B = map(int, input().split())\nans = []\nfor i in range(1, N):\n ans.append(A * i + B * (N - i))\nprint(min(ans))', 'N, A, B = map(int, input().split())\nif A * N < B:\n prin...
['Runtime Error', 'Runtime Error', 'Accepted']
['s126509122', 's456254434', 's525091367']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[123, 118, 86]
p02981
u547483620
2,000
1,048,576
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?
['n, a, b = map(int, input().split)\nm = n*b\nif m < a :\n print(m)\nelse:\n print(a)', 'n, a, b = map(int, input().split())\nm = n*b\nif m < a :\n print(m)\nelse:\n print(a)', 'n, a, b = map(int, input().split())\nm = n*a\nif m < b :\n print(m)\nelse:\n print(b)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s265110868', 's737049627', 's529010841']
[2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0]
[84, 86, 86]
p02981
u548684908
2,000
1,048,576
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?
['s=list(input())\n\nif int(s[0])* int(s[1]) > int(s[2]):\n print(s[2])\nelse:\n print(int(s[0])* int(s[1]))', 'li = list(map(int,input().split()))\n \nif li[0]*li[1] > li[2]:\n print(li[2])\nelse:\n print(li[0]*li[1])']
['Runtime Error', 'Accepted']
['s571828070', 's812332530']
[2940.0, 2940.0]
[17.0, 18.0]
[107, 107]
p02981
u549852663
2,000
1,048,576
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?
['N, A, B =map(int, input().split())\n\nans = 1000000000000\n\nfor x in range(1, N):\n sum = (N - x) * A + x * B / N\n if sum < ans and sum.is_integer():\n ans = sum\n\nprint(int(ans))\n', 'N, A, B =map(int, input().split())\n\nt = 0\nans = 0\n\nfor x in range(20):\n sum = (N - x) * A + x * B / N\n i...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s079556013', 's502043162', 's502549760', 's326845509']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[187, 165, 178, 186]
p02981
u556060450
2,000
1,048,576
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?
['n,a,b=map(int,input())\nprint(min(n*a,b))', 'n,a,b=map(int,input().split())\nprint(min(n*a,b))\n']
['Runtime Error', 'Accepted']
['s368592271', 's341834671']
[2940.0, 2940.0]
[17.0, 18.0]
[40, 49]
p02981
u556225812
2,000
1,048,576
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?
['L, R = map(int, input().split())\nsmall1 = L % 2019\nsmall2 = R % 2019\nfor i in range(L, R+1):\n ans = i % 2019\n if ans < small1:\n small2 = small1\n small1 = ans\n elif ans < small2:\n small2 = ans\n if small1 == 0:\n break\nprint(small1 * small2)', 'N, A, B = map(int, inpu...
['Runtime Error', 'Accepted']
['s607754378', 's920645932']
[2940.0, 2940.0]
[17.0, 17.0]
[279, 54]
p02981
u556589653
2,000
1,048,576
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?
['n,a,b = map(int,input().split())\nif n*a>b:\n print(n*a)\nelse:\n print(b)', 'n,a,b = map(int,input().split())\nif (n*a)>b:\n print(n*a)\nelse:\n print(b)', 'n,a,b = map(int,input().split())\nif n*a<b:\n print(n*a)\nelse:\n print(b)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s442638616', 's566351459', 's388094171']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[72, 74, 72]
p02981
u557136512
2,000
1,048,576
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?
['N, A, B = list(map(int, input().split()))\nprint(N*A + B)', 'N, A, B = list(map(int, input().split()))\nif N*A < B:\n print(N*A)\nelse:\n print(B)']
['Wrong Answer', 'Accepted']
['s965053366', 's302253194']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 83]
p02981
u558493745
2,000
1,048,576
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?
['a = list( map( int, input().split()))\n\nif a[0]*a[1]<=a[2]:\n return a[0]*a[1]\n\nif a[0]*a[1]>a[2]:\n return a[2]\n\n', 'a = [int(i) for i in input().split()]\n\nif a[0]*a[1]<=a[2]:\n return a[0]*a[1]\n\nelse:\n return a[2]', 'a = list( input().split())\n\nif a[0]*a[1]<=a[2]:\n return a[0]*a[1]\n\nif a[0]*a[1]...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s214872056', 's304740187', 's892614622', 's992635745', 's992691380', 's855127866']
[2940.0, 2940.0, 2940.0, 2940.0, 3056.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 18.0, 18.0]
[113, 98, 102, 95, 97, 105]
p02981
u561862393
2,000
1,048,576
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?
['n, a, b = map(int, input().split())\n\nbb = b / n\n\nif a > bb:\n print(bb) \nelse:\n print(a)', 'n, a, b = map(int, input().split())\n \naa = a * n\n \nif aa > b:\n print(b) \nelse:\n print(aa)']
['Wrong Answer', 'Accepted']
['s178176247', 's113295423']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 91]
p02981
u563806760
2,000
1,048,576
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?
['n, a, b = input().split()\nprint(max(int(n) * int(a), int(b)))', 'n, a, b = input().split()\nprint(min(int(n)*int(a), int(b)))']
['Wrong Answer', 'Accepted']
['s505513453', 's358591242']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 59]
p02981
u565924121
2,000
1,048,576
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?
['N,A,B=map(int,input().split())\n\nprint(min(A,N/B))', 'N,A,B=map(int,input().split())\n\nprint(min(N*A,B))']
['Wrong Answer', 'Accepted']
['s132159203', 's601819126']
[2940.0, 2940.0]
[17.0, 17.0]
[49, 49]
p02981
u566264434
2,000
1,048,576
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?
['l,r = map(int,input().split())\nans=2019\nfor i in range(l,r+1):\n for j in range(i+1,r+1):\n ans=min((i*j)%2019,ans)\n \n \nprint(ans)', 'n,a,b = map(int,input().split())\n\n\n\nprint(min([b,n*a]))']
['Runtime Error', 'Accepted']
['s298466122', 's064322197']
[2940.0, 2940.0]
[17.0, 17.0]
[152, 55]
p02981
u569079213
2,000
1,048,576
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?
['l,r=map(int,input().split())\nif(r-l>=2018):\n print(0)\nelse:\n mi=2018\n res1=l%2019\n for i in range(r-l):\n res2=(i+l+1)%2019\n for j in range(r-l-i):\n if (res1*res2)%2019<mi:\n mi=(res1*res2)%2019\n res2+=1\n res1+=1\n print(mi)', 'N,a,b=map(int,input().split())\nprint(min(N*a,b))...
['Runtime Error', 'Accepted']
['s803911919', 's720458754']
[3060.0, 2940.0]
[17.0, 17.0]
[252, 48]
p02981
u578953945
2,000
1,048,576
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?
['N,A,B = map(int, input().split())\nprint(min(N*A),B)', 'N,A,B = map(int, input().split())\nprint(min(N*A,B))']
['Runtime Error', 'Accepted']
['s741378814', 's367165199']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 51]
p02981
u580199868
2,000
1,048,576
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?
['N,A,B = map(int(),input().strip())\n\nA = A * N\n\nif (A < B):\n\tprint(A)\nelse:\n\tprint(B)\n\t\n', 'N,A,B = map(int(),input(),strip())\n\nA = A * N\n\nif (A < B):\n\tprint(A)\nelse:\n\tprint(B)\n\t\n', 'N,A,B = map(int().input().strip())\n\nA = A * N\n\nif (A < B):\n\tprint(A)\nelse:\n\tprint(B)\n\t\n', 'N,A,B=map...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s755884522', 's952241463', 's974692864', 's808102995']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[87, 87, 87, 49]
p02981
u581318456
2,000
1,048,576
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?
['N,A,B=map(int, input().split())\n\nif N*A>B:\n print(B)\nelse print(N*A)', 'N,A,B=map(int, input().split())\n\nif N*A>B:\n print(B)\nelse:\n print(N*A)']
['Runtime Error', 'Accepted']
['s080379223', 's454600038']
[2940.0, 2940.0]
[18.0, 17.0]
[69, 72]
p02981
u582084082
2,000
1,048,576
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?
['N = int(input())\nA = int(input())\nB = int(input())\nc = N * A\nif c < B:\n print(c)\nelse:\n print(B)\n', 'n, a, b = map(int, input().split())\nc = n * a\nif c < b:\n print(c)\nelse:\n print(b)']
['Runtime Error', 'Accepted']
['s146594722', 's795137256']
[2940.0, 9000.0]
[18.0, 30.0]
[103, 87]
p02981
u586212264
2,000
1,048,576
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?
['import sys\nn=input()\na=input()\nb=input()\nnn=int(n)\naa=int(a)\nbb=int(b)\n\ntrain=nn*aa\ntaxi=bb\nif train>=taxi:\n print(train)\nelse:\n print(taxi)\n', 'import sys\nn=input()\na=input()\nb=input()\nnn=int(n)\naa=int(a)\nbb=int(b)\n\ntrain=nn*aa\ntaxi=bb\nif train>=taxi:\n print(train)\nelse:\n print(taxi)\n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s233011824', 's243295413', 's610697808', 's632794387', 's698179125', 's997627038', 's724408240']
[2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[143, 143, 108, 124, 330, 121, 121]
p02981
u589381719
2,000
1,048,576
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?
['N, A, B = map(int, input().split(" "))\nprint(max(A*N,B))', 'N, A, B = map(int, input().split(" "))\nprint(min(A*N,B))']
['Wrong Answer', 'Accepted']
['s036416104', 's741368046']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 56]
p02981
u590253847
2,000
1,048,576
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?
['N,A,B = map(int,input().split())\nif A>=B:\n print(N*A)\nelse:\n print(N*B)\n ', 'N,A,B = map(int,input().split())\nif A>=(B/N):\n print(B)\nelse:\n print(N*A)\n ']
['Wrong Answer', 'Accepted']
['s460409020', 's983129085']
[2940.0, 2940.0]
[17.0, 19.0]
[82, 84]
p02981
u593019570
2,000
1,048,576
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?
["a = input().split(' ')\n \nb = int(a[0]) * int(a[1])\n \nif (b < a[2]):\n print(b)\n \nelse:\n print(a[2])", "a = input().split(' ')\n \nb = int(a[0]) * int(a[1])\n \nif (b < int(a[2])):\n print(b)\n \nelse:\n print(a[2])"]
['Runtime Error', 'Accepted']
['s247401914', 's764628805']
[3188.0, 2940.0]
[20.0, 18.0]
[100, 105]
p02981
u595899761
2,000
1,048,576
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?
['n, a, b = map(int, input().split())\n\ntrain = n*a\nif (train>b):\n print(train)\nelse:\n print(b)\n', 'n, a, b = map(int, input().split())\n\ntrain = n*a\nif (train < b):\n print(train)\nelse:\n print(b)\n\n ']
['Wrong Answer', 'Accepted']
['s211201466', 's044889635']
[2940.0, 2940.0]
[18.0, 18.0]
[99, 106]
p02981
u597622207
2,000
1,048,576
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?
['ソースコード \n\nCopy\nCopy\nimport numpy as np\n \nN, D = list(map(int, input().split()))\nfull_list = []\nfor i in range(N):\n full_list.append(list(map(int, input().split())))\n \nresult = 0\n \nfor i in range(N):\n for j in range(N-i-1):\n length = 0\n for s in range(D):\n length += (full_list[i][s] - full...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s093250070', 's356671599', 's793006376', 's943674392', 's230567810']
[3192.0, 14532.0, 12488.0, 2940.0, 2940.0]
[20.0, 149.0, 156.0, 18.0, 17.0]
[409, 378, 370, 45, 54]
p02981
u598726179
2,000
1,048,576
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?
['a,b,c = linst(map(int,input()))\nif a*b < c:\n print(a*b)\nelse:\n print(c)\n', 'n,a,b = map(int,input().split())\nif a*n < b:\n print(a*n)\nelse:\n print(b)\n']
['Runtime Error', 'Accepted']
['s307093382', 's571903130']
[2940.0, 2940.0]
[18.0, 17.0]
[74, 75]
p02981
u600717568
2,000
1,048,576
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?
['N,A,B=map(int,input().split())\ntrain=N*A\ntaxi=B\nif train<=taxi:\n print(train)\nelse print(taxi)', 'N,A,B=map(int,input().split())\ntrain=N*A\ntaxi=B\nif train<=taxi:\n print(train)\nelse: print(taxi)']
['Runtime Error', 'Accepted']
['s033823927', 's125658796']
[2940.0, 2940.0]
[17.0, 17.0]
[97, 98]
p02981
u601082779
2,000
1,048,576
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?
['a,b,c=int(input().split());print(min(a*b,c))', '(a,b,c)=int(input().split());print(min(a*b,c))', '(a,b,c)=map(int,input().split());print(min(a*b,c))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s264483700', 's290075001', 's811060200']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[44, 46, 50]
p02981
u601522790
2,000
1,048,576
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?
['N,A,B = map(int,input().split())\nif N*A > B:\n print(B)\nelse:\n print(A)', 'N,A,B = map(int,input().split())\nif N*A > B:\n print(B)\nelse:\n print(N*A)']
['Wrong Answer', 'Accepted']
['s423092436', 's460223095']
[2940.0, 2940.0]
[17.0, 18.0]
[76, 78]
p02981
u601575292
2,000
1,048,576
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?
['N, A, B = map(int, input().split())\nT = N*A\nprint(max(T,B))', 'N, A, B = map(int, input())\nT = N*A\nprint(max(T,B))', 'N, A, B = map(int, input().split())\nT = N*A\nprint(min(T,B))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s282176130', 's478753832', 's384835633']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[59, 51, 59]
p02981
u603253967
2,000
1,048,576
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?
["from functools import reduce\n\nMIN = -10 ** 9\nMAX = 10 ** 9\n\n\ndef main():\n N, A, B = [int(a) for a in input().split()]\n print(min(N, N * A))\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n N, A, B = [int(a) for a in input().split()]\n print(min(B, N * A))\n\n\nif __name__ == '__main_...
['Wrong Answer', 'Accepted']
['s425865006', 's242872287']
[3700.0, 2940.0]
[70.0, 17.0]
[186, 125]
p02981
u604978223
2,000
1,048,576
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?
['N, A, B = map(int, input().split())\n\nC = N*A\n\nprint(min(A, C))', 'N, A, B = map(int, input().split())\n\nC = N*A\n\nprint(min(B, C))']
['Wrong Answer', 'Accepted']
['s851507146', 's047240057']
[2940.0, 2940.0]
[17.0, 17.0]
[62, 62]
p02981
u605748139
2,000
1,048,576
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?
['import itertools\nL, R = map(int, input().split())\n\nif R - L + 1 > 2019:\n remainder_list = [N%2019 for N in range(L, L+2019)]\nelse:\n remainder_list = [N%2019 for N in range(L, R+1)] \nremainder_list = list(set(remainder_list))\nall_list = [(i*j)%2019 for i, j in list(itertools.combinations(remainder_list,...
['Runtime Error', 'Accepted']
['s307743068', 's509556463']
[3060.0, 2940.0]
[17.0, 17.0]
[336, 81]
p02981
u607741489
2,000
1,048,576
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?
['print(min(int(input())*int(input()),int(input())))', 'a,b,c = map(int,input().split())\nprint(min(a*b,c))']
['Runtime Error', 'Accepted']
['s939656661', 's213434195']
[2940.0, 2940.0]
[17.0, 18.0]
[50, 50]
p02981
u608913532
2,000
1,048,576
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?
['a, b, c = (int(i) for i in input().split())\nif a*b >= c:\n return c\nelse:\n return a*b', 'a = [int(i) for i in input().split()]\nif a[0]*a[1] > a[2]:\n return c\nelse:\n return a[0]*a[1]', 'n, a, b = (int(i) for i in input().split())\nif n*a > b:\n print(b)\nelse:\n print(n*a)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s616140824', 's997747434', 's052425791']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[86, 94, 85]
p02981
u609814378
2,000
1,048,576
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?
['import sys \nL,R = map(int, input().split())\n\nif R-L >= 2019:\n print(0)\n sys.exit()\nelif R-L == 1:\n print((i*j)%2019)\n sys.exit()\n\nans = 4000\n\nfor i in range(L,R):\n for j in range(i+1,R):\n number = (i*j)%2019\n ans = min(ans,number)\n\nprint(ans) ', 'N,A,B = map(int,input()....
['Runtime Error', 'Accepted']
['s007507366', 's918093125']
[9188.0, 2940.0]
[25.0, 17.0]
[273, 127]
p02981
u609968450
2,000
1,048,576
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?
['n, a, b= map(int, input().split())\nif b < na:\n print(b)\nelse:\n print(na)', 'n, a, b= map(int, input().split())\nif b < n*a:\n print(b)\nelse:\n print(n*a)']
['Runtime Error', 'Accepted']
['s701366628', 's888268054']
[2940.0, 2940.0]
[17.0, 17.0]
[74, 76]
p02981
u614855423
2,000
1,048,576
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?
['import sys\n\nargs = sys.argv\n\nn = int(args[1])\na = int(args[2])\nb = int(args[3])\n\ntrain = n * a\nbus = b\n\nif(train < bus):\n print(train)\nelse:\n print(bus)\n', 'import sys\n\nargs = sys.argv\n\nn = int(args[1])\na = int(args[2])\nb = int(args[3])\n\ntrain = n * a\nbus = b\n\nif(train < bus):\n train\nel...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s071291718', 's781951154', 's837795721', 's342445302']
[2940.0, 2940.0, 2940.0, 3316.0]
[17.0, 19.0, 17.0, 21.0]
[155, 141, 142, 149]
p02981
u617556913
2,000
1,048,576
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?
['n,a,b=map(int,input().split)\nif n*a >= b:\n print(b)\nelse:\n print(n*a)', 'n,a,b=map(int,input().split()\nif n*a >= b:\n print(b)\nelse:\n print(n*a)', 'n,a,b=map(int,input().split())\nif n*a >= b:\n print(b)\nelse:\n print(n*a)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s422994016', 's621900975', 's467034560']
[9036.0, 8756.0, 9160.0]
[25.0, 25.0, 33.0]
[71, 72, 73]
p02981
u621509924
2,000
1,048,576
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?
['N,A,B=input().split(",")\nif (N*A) > B\n print (B)\nelse:\n print(N*A)\n', 'N= int(input())\nA= int(input())\nB= int(input())\nC= N*A\nif C>B:\n print (B)\nelse: \n print (C)', 'N= int(input)\nA= int(input)\nB= int(input)\nif A*N>B:\n print(B)\nelse: \n print(A*N)', 'N= int(input())\nA= int(input())\nB= int(inp...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s214741629', 's537778040', 's717030532', 's770004566', 's852794914', 's909222254', 's655430159']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[69, 93, 82, 91, 87, 105, 73]
p02981
u622570247
2,000
1,048,576
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?
['n, a, b = map(int, input())\nprint(min(a * n, b))', 'n, a, b = map(int, input())\nprint(min(a * n, b))', 'n, a, b = map(int, input().split())\nprint(min(a * n, b))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s540292420', 's870110315', 's480190979']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[48, 48, 56]
p02981
u623687794
2,000
1,048,576
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?
['import sys\nsys.setrecursionlimit(10000000)\nn,k=map(int,input().split())\ngraph=[[] for i in range(n)]\nfor i in range(n-1):\n a,b=map(int,input().split())\n graph[a-1].append(b-1)\n graph[b-1].append(a-1)\nMOD=10**9+7\ndef coloring(node,pre):\n if len(graph[node])>k:\n return 0\n if pre==-1:\n color=k-1\...
['Runtime Error', 'Accepted']
['s705533671', 's274473529']
[3064.0, 3316.0]
[17.0, 20.0]
[552, 48]
p02981
u629614820
2,000
1,048,576
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?
['N,A,B=map(int,input().split())\nt1=N*A\nt2=N*B\nif t1<t2:\n tmin=t1\n print("minimum total travel expense",tmin)\nelse:\n tmin=t2\n print("minimum total travel expense",tmin)\n \n', 'N=int(input())\nA=int(input())\nB=int(input())\nt1=N*A\nt2=N*B\nif t1<t2:\n tmin=t1\n print(tmin)\ne...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s001458826', 's035390358', 's113195843', 's358021489', 's522448066', 's634143122', 's154673662']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[194, 146, 277, 269, 142, 280, 128]
p02981
u636492122
2,000
1,048,576
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?
['N,A,B = [ int(i)for i in input().split()]\nc = N*A\nif c >= B:\n print(B)\nelif c <= B:\n print(C)', 'N,A,B = [ int(i)for i in input().split()]\nc = N*A\nif c >= B:\n print(B)\nelif c <= B:\n print(C)', 'N,A,B = [ int(i)for i in input().split()]\nc = N*A\nif c >= B:\n print(c)\nelif c <= B:\n print(...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s411251736', 's438356076', 's932138432', 's030898020']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[99, 99, 100, 102]
p02981
u638033979
2,000
1,048,576
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?
['n,a,b = map(int,input().split())\n\nif a > n*b:\n print(a)\nelse:\n print(n*b)', 'n,a,b = map(int,input().split())\n\nif b < n*a:\n print(b)\nelse:\n print(n*a)']
['Wrong Answer', 'Accepted']
['s450307819', 's520541327']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 79]
p02981
u638393586
2,000
1,048,576
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?
['N, A, B = map(int, input().split())\n\nresult = N*A\nprint(result if N*A > B else B)', 'N, A, B = map(int, input().split())\n\nresult = N*A\nprint(result if N*A < B else B)']
['Wrong Answer', 'Accepted']
['s562872399', 's521873633']
[2940.0, 2940.0]
[17.0, 17.0]
[81, 81]
p02981
u638472784
2,000
1,048,576
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?
['N,A,B = map(int,input().split())\ntrain = N*A\nif B < int(train):\n print(train)\nelse:\n print(B)', 'N,A,B = map(int,input().split())\ntrain = N*A\nif B < train:\n print(train)\nelse:\n print(B)\n \n \n ', 'N,A,B = map(int,input().split())\ntrain = N*A\nif B < train:\n print(train)\nelse:\n ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s264428266', 's470746810', 's615103716', 's735046785', 's913178847', 's299193392']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 17.0]
[99, 109, 94, 94, 95, 77]
p02981
u639305502
2,000
1,048,576
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?
['inport numpy as np\n\nN,A,B = map(int,input().split(" "))\ni = np.arange(N+1) # the number of people who use train\nj = N-i # the number pf people who use taxi\ncost = A+i + B*j\n\nreturn np.min(cost)', 'inport numpy as np\n\nN,A,B = map(int,input().split(" "))\ncosts = A*N, B\n\nreturn np.min(costs)\n', 'inport nu...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s300925680', 's449007373', 's907364240', 's481118549']
[8968.0, 8908.0, 8832.0, 27128.0]
[22.0, 29.0, 26.0, 119.0]
[195, 93, 91, 91]
p02981
u639703036
2,000
1,048,576
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?
['n,a,b = map(int,input().split())\nans = a*b\nif(ans > n):\n print(n)\nelif(ans < n):\n print(ans)\nelse:\n print(ans)', '#ABC133\nn,a,b = map(int,input().split())\nans =n*a\nif(ans > b):\n print(b)\nelif(ans < b):\n print(ans)\nelse:\n print(ans)']
['Wrong Answer', 'Accepted']
['s777786554', 's549597387']
[2940.0, 2940.0]
[18.0, 17.0]
[119, 126]
p02981
u640123177
2,000
1,048,576
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?
['N, A, B = map(int(input().split()))\nprint(min(N*A, B))\n ', 'L, R = map(int, input().split())\nli = []\nfor i in range(L, R+1):\n li.append(i%2019)\n#print(li)\na = min(li)\nli.remove(min(li))\nb = min(li)\nli.remove(min(li))\nprint(a*b)\n ', 'N, A, B = map(int, input().split())\nprint(min(B, A*N...
['Runtime Error', 'Runtime Error', 'Accepted']
['s015150846', 's153361343', 's535532634']
[2940.0, 3064.0, 2940.0]
[19.0, 20.0, 18.0]
[69, 176, 54]
p02981
u641460756
2,000
1,048,576
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?
['n,a,b=int(input().split())\nprint(min(n*a,b))', 'n, a, b = map(int,input().split())\nprint(min(n*a,b))']
['Runtime Error', 'Accepted']
['s320298023', 's588819258']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 52]
p02981
u641722141
2,000
1,048,576
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?
['a,b,c = map(int,input().split())\nprint(min(a+b , c))', 'a, b, c = map(int, input().split())\nprint(min(a * b, c))']
['Wrong Answer', 'Accepted']
['s862343186', 's028780559']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 56]
p02981
u641770903
2,000
1,048,576
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?
['#input\nN, A, B = map(int, input().split())\n\n#output\nif N*A > B:\n print(B)\nelif:\n print(N*A)', '#input\nN, A, B = map(int, input().split())\n \n#output\nif N*A > B:\n print(B)\nelse:\n print(N*A)']
['Runtime Error', 'Accepted']
['s493125155', 's497053579']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 94]
p02981
u648212584
2,000
1,048,576
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?
['N,D = map(int,input().split())\n\nX = [list(map(int,input().split())) for _ in range(N)]\n\nans = 0\nfor i in range(N):\n for j in range(i):\n tmp = 0\n for k in range(D):\n tmp += (X[i][k] - X[j][k]) ** 2\n tmp = tmp ** 0.5\n if tmp % 1 == 0:\n ans += 1\n \nprint(ans)', 'N,D = map(int,inp...
['Runtime Error', 'Runtime Error', 'Accepted']
['s279601478', 's794428727', 's308318499']
[3064.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[283, 283, 92]
p02981
u652656291
2,000
1,048,576
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?
['n,a,b = map(int,input().split())\nif n*a >= b:\n print(b)\nelse:\n priny(n*a)', 'n,a,b = map(int,input().split())\nif n*a >= b:\n print(b)\nelse:\n print(n*a)']
['Runtime Error', 'Accepted']
['s762881469', 's938540449']
[2940.0, 2940.0]
[18.0, 18.0]
[75, 75]
p02981
u653175574
2,000
1,048,576
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?
['N, A, B = map(int, input().split())\nans = min(A, B * N)\nprint(ans)', 'n, a, b = map(int, input().split())\nprint(min(n * a, b))']
['Wrong Answer', 'Accepted']
['s923243834', 's799962038']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 56]
p02981
u655048024
2,000
1,048,576
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?
['n,a,b = map(int,input().split())\nprint(max(n*a,b))', 'N,A,B = map(int,input().split())\nK = A*N\nif (K>B):\n print(K)\nelse:\n print(B)', 'n,a,b = map(int,input().split())\nprint(min(n*a,b))\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s154328346', 's307491001', 's297308457']
[3064.0, 2940.0, 3064.0]
[18.0, 17.0, 17.0]
[50, 78, 51]
p02981
u657329920
2,000
1,048,576
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?
['l = input().split()\nN, A, B = [int(num) for i in l]\nNA = N * A\nprint(min(NA,B))', 'l = input().split()\nN, A, B = [int(i) for i in l]\ntrain = N * A\nm = min(train, B)\nprint(m)']
['Runtime Error', 'Accepted']
['s396635041', 's503371068']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 90]
p02981
u663710122
2,000
1,048,576
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?
['// https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8\nmacro_rules! input {\n (source = $s:expr, $($r:tt)*) => {\n let mut iter = $s.split_whitespace();\n let mut next = || { iter.next().unwrap() };\n input_inner!{next, $($r)*}\n };\n ($($r:tt)*) => {\n let stdin = std::io::stdin...
['Runtime Error', 'Accepted']
['s475995107', 's158022561']
[2940.0, 2940.0]
[17.0, 18.0]
[1566, 57]
p02981
u664610890
2,000
1,048,576
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?
['N, A, B = map(int, input().split())\n\nif N * A > B:\n print(N * A)\nelse:\n print(B)\n', 'N, A, B = map(int, input().split())\n\nif N * A > B:\n print(B)\nelse:\n print(N*A)\n']
['Wrong Answer', 'Accepted']
['s720602960', 's330303468']
[3060.0, 2940.0]
[19.0, 17.0]
[87, 85]
p02981
u667458133
2,000
1,048,576
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?
['n, a, b = map(int, input().split())\n\nprint(max(n*a, b))', 'n, a, b = map(int, input().split())\n\nprint(min(n*a, b))\n']
['Wrong Answer', 'Accepted']
['s388992678', 's240477896']
[3064.0, 2940.0]
[17.0, 17.0]
[55, 56]
p02981
u668503853
2,000
1,048,576
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?
['L,R=map(int,input().split())\nli=[]\nfor i in range(L,R):\n for j in range(i+1,R+1):\n mod=(i*j)%2019\n if mod==0:\n break\n li.append(mod)\nprint(min(li))', 'L,R=map(int,input().split())\nR=min(R, L+673)\nli=[]\nfor i in range(L,R):\n for j in range(i+1,R+1):\n mod=(i*j)%2019\n li.append(mo...
['Runtime Error', 'Runtime Error', 'Accepted']
['s476932604', 's626046717', 's853279036']
[2940.0, 3060.0, 3316.0]
[17.0, 18.0, 21.0]
[162, 187, 48]
p02981
u670567845
2,000
1,048,576
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?
['N, A, B = map(int, innput().split())\nprint(min([N*A,B]))', 'N, A, B = map(int, input().split())\nprint(min([N*A,B]))']
['Runtime Error', 'Accepted']
['s462777525', 's984805862']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 55]
p02981
u671787293
2,000
1,048,576
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?
['import math\nimport numpy as np\nN, D = map(int, input().split())\ntimes = int(input()) \nn = [list(map(int, input().split())) for i in range(times)]\nn = np.array(n)\nans = 0\nfor j in range(n.shape[0]):\n for i in range(n.shape[0]):\n length = np.linalg.norm(n[i]-n[j])\n aaa = math.modf(length)[0]\n if a...
['Runtime Error', 'Accepted']
['s512456947', 's637470169']
[12500.0, 2940.0]
[147.0, 17.0]
[385, 86]
p02981
u674190122
2,000
1,048,576
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?
['n, a, b = [int(x) for x in input().split()]\nprint(min(a * n,b) ', 'n, a, b = [int(x) for x in input().split()]\nprint(min(a * n,b)) ']
['Runtime Error', 'Accepted']
['s205425341', 's290756986']
[2940.0, 2940.0]
[17.0, 17.0]
[63, 64]
p02981
u674959776
2,000
1,048,576
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?
['n,a,b=map(int,input().split())\nprint(max(a*n,b))', 'n,a,b=map(int,input().split())\nprint(min(a*n,b))']
['Wrong Answer', 'Accepted']
['s538836647', 's961195777']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 48]
p02981
u680593725
2,000
1,048,576
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?
['n,a,b = map(int, input().split())\nprint(min(n * a , b)', 'n,a,b = map(int, input().split())\nprint(min(n * a , b))']
['Runtime Error', 'Accepted']
['s494156088', 's089405025']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 55]
p02981
u681110193
2,000
1,048,576
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?
['s = input()\nsplitted_s = s.split(" ") \nn = int(splitted_s[0])\na = int(splitted_s[1])\nb = int(splitted_s[2])\n\nif n*a<b:\n print(b)\nelse:\n print(n*a)\n \n', 's = input()\nsplitted_s = s.split(" ") \nn = int(splitted_s[0])\na = int(splitted_s[1])\nb = int(splitted_s[2])\n\nif n*a<b:\n print(n*a)\nelse:\n pr...
['Wrong Answer', 'Accepted']
['s890968727', 's620941040']
[2940.0, 2940.0]
[18.0, 17.0]
[152, 152]
p02981
u684625036
2,000
1,048,576
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?
['human_num, train_value, taxi_num = tuple(int(i) for i in input().split(""))\nprint(min(train_value * human_num, taxi_num))', 'human_num, train_value, taxi_num = tuple(int(i) for i in input().split(" "))\nprint(min(train_value * human_num, taxi_num))']
['Runtime Error', 'Accepted']
['s921720830', 's393964919']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 122]
p02981
u687574784
2,000
1,048,576
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?
['n,a,b = list(map(int, input.split()))\n\nprint(min(n*a, b))\n', 'n,a,b = list(map(int, input().split()))\n\nprint(min(n*a, b))\n']
['Runtime Error', 'Accepted']
['s947515182', 's976834666']
[2940.0, 2940.0]
[18.0, 17.0]
[58, 60]
p02981
u689626103
2,000
1,048,576
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?
["L, R = map(int, input().split())\n\nans = 2019\n\nfor i in range(L, R):\n for j in range(i+1, R+1):\n ans = min(ans, (i*j) % 2019)\n if ans == 0:\n print('0')\n exit()\n\nprint(ans)", 'N, A, B = list(map(int, input().split()))\n\nprint(min(N * A, B))']
['Runtime Error', 'Accepted']
['s548550773', 's201327091']
[2940.0, 9148.0]
[17.0, 30.0]
[209, 63]
p02981
u690576712
2,000
1,048,576
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?
['n,a,b = map(int,input.split())\nreturn(min(n*a,b))', 'n,a,b = map(int,input().split())\nif n*a >= b:\n print(b)\nelse:\n print(n*a)']
['Runtime Error', 'Accepted']
['s377293579', 's478820630']
[2940.0, 2940.0]
[18.0, 17.0]
[49, 75]
p02981
u692054751
2,000
1,048,576
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?
['N,A,B = [int(s) for s in input().split()]\n\nprint(int(A*N + B))', 'N,A,B = [int(s) for s in input().split()]\n\nprint(A*N) if A*N <= B else print(B)']
['Wrong Answer', 'Accepted']
['s480945620', 's639203855']
[2940.0, 2940.0]
[17.0, 17.0]
[62, 79]
p02981
u692311686
2,000
1,048,576
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?
['S=input().split()\nL=int(S[0])\nR=int(S[1])\nlist=2018\nL1=L\nL2=L\nwhile list <> 1: \n while L2 <= R:\n while L1 < L2:\n if (L1*L2)%2019 <= list:\n list = (L1*L2)%2019\n L1 += 1\n L1 =int(L)\n L2 += 1\nprint(list)', 'S=[int (i) for i in input().split()]\nN=S[0]\nA=S[1]\nB=S[2]\nTRAIN=A*N\...
['Runtime Error', 'Accepted']
['s617388147', 's836339446']
[2940.0, 3060.0]
[17.0, 17.0]
[228, 123]
p02981
u693933222
2,000
1,048,576
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?
['n, a, b = map(int(input().split()))\n\nprint(min(n*a,b))', 'n, a, b = map(int, input().split())\n\nprint(min(n*a, b))\n']
['Runtime Error', 'Accepted']
['s970950758', 's102569508']
[2940.0, 3064.0]
[17.0, 17.0]
[54, 56]
p02981
u695295373
2,000
1,048,576
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?
['N,A,B=map(int,input.split())\nprint(min(N*A,B))', 'N,A,B=map(int,input().split())\nprint(min(N*A,B))']
['Runtime Error', 'Accepted']
['s126502862', 's056711934']
[2940.0, 2940.0]
[18.0, 17.0]
[46, 48]