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
u699089116
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))']
['Runtime Error', 'Accepted']
['s939821166', 's803711444']
[9096.0, 9152.0]
[24.0, 30.0]
[53, 55]
p02981
u703110933
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*n < b:\n print(a*n)\nelse:\n print(b)', 'n,a,b = map(int,input().split())\nif a*n < b:\n print(a*n)\nelse:\n print(b)']
['Runtime Error', 'Accepted']
['s889314036', 's366861259']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 78]
p02981
u703890795
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']
['s970267910', 's031295862']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 53]
p02981
u706330549
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)\nelif:\n print(n * a)', 'n, a, b = map(int, input().split())\n \nif n * a > b:\n print(b)\nelse:\n print(n * a)\n']
['Runtime Error', 'Accepted']
['s415172855', 's938460471']
[2940.0, 2940.0]
[18.0, 17.0]
[83, 88]
p02981
u707690642
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 numpy as np\n\nN, D = map(int, input().split())\n\nX = []\nX = np.vstack([input().split() for i in range(N)])\n\ncount = 0\n\nfor i in range(N - 1):\n for j in range(N - (i + 1)):\n r = 0\n for k in range(D):\n r += (int(X[i, k]) - int(X[i + (j + 1), k])) ** 2\n \n if np.sqrt(r).is_integer():\n...
['Runtime Error', 'Accepted']
['s902633536', 's726322625']
[12468.0, 2940.0]
[153.0, 17.0]
[336, 107]
p02981
u719840207
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())\nmin(n*a,b)', 'n,a,b=map(int,input().split())\nprint(min(n*a,b))']
['Wrong Answer', 'Accepted']
['s440496415', 's079350605']
[3064.0, 2940.0]
[17.0, 17.0]
[41, 48]
p02981
u719886494
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().splint())\nsum = n * a\nif sum <= b :\n print(sum)\nelse :\n print(b)', 'n, a, b = (int(x) for x in input().split())\nsum = n * a\nif sum <= b :\n print(sum)\nelse :\n print(b)']
['Runtime Error', 'Accepted']
['s139587205', 's492605456']
[2940.0, 2940.0]
[18.0, 17.0]
[101, 100]
p02981
u720065198
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(int(n*a))\nelif n*a >= b:\n print(int(b))\n', '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)\nelif n*a >= b:\n print(b)\n', 'n, a, b = map(int,input().split()...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s066406311', 's313604491', 's387216950', 's656187174']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[102, 81, 92, 76]
p02981
u724686507
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(na if na< b else: b)', 'n, a, b = map(int, input().split())\n\nif n*a < b:\n print(na)\nelse:\n print(b)', 'n, a, b = map(int, input().split())\n\nif na < b:\n print(na)\n else:\n print(b)', 'n, a, b = map(int, input().split())\n\nif n*a < b:\n print(n*a)\nelse:\n ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s317213364', 's719807483', 's833971352', 's554726326']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[63, 77, 80, 78]
p02981
u726284577
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']
['s982342404', 's099958860']
[2940.0, 3316.0]
[17.0, 20.0]
[48, 49]
p02981
u729133443
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 time import sleep\nn, a, b = map(int, input().split())\nsleep(1.99)\nprint(min(a * n, b))', 'from time import sleep\nn, a, b = map(int, input().split())\nsleep(1.99)\nprint(max(a * n, b))', 'n,a,b=map(int,input().split())\nprint(min(n*a,b))']
['Time Limit Exceeded', 'Time Limit Exceeded', 'Accepted']
['s209738676', 's561893646', 's160919051']
[3056.0, 3056.0, 9160.0]
[2010.0, 2010.0, 26.0]
[91, 91, 48]
p02981
u729300713
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())\nprint(min(a*b,c))', 'n, b, c = map(int, input().split())\nprint(min(n*b, c))']
['Runtime Error', 'Accepted']
['s194062946', 's480684605']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 54]
p02981
u733145119
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\nif r-l >= 2019:\n ans = 0\nelse:\n mod_l = l % 2019 \n mod_r = r % 2019\n if mod_r < mod_l:\n ans = 0\n elif mod_l * mod_r == 0:\n ans = 0\n \n else:\n l_list=[]\n a = list(range(mod_l, mod_r+1))\n for i in range(mod_l, mod_r+1):\n ai = a[i]\n for j...
['Runtime Error', 'Accepted']
['s482145697', 's490721710']
[3064.0, 2940.0]
[17.0, 17.0]
[424, 64]
p02981
u739959951
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())\n\nprint(min(n*a,b))', 'n,a,b=map(int,input().split())\nprint(min(n*a,b))']
['Runtime Error', 'Accepted']
['s610170854', 's777469406']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 48]
p02981
u740284863
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']
['s943609333', 's981313999']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 51]
p02981
u740767776
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()))\nif A * N <= B:\n print(A)\nelse:\n print(B)\n', 'N, A, B = list(map(int,input().split()))\nif A * N <= B:\n print(A*N)\nelse:\n print(B)\n']
['Wrong Answer', 'Accepted']
['s618210903', 's653004793']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 86]
p02981
u744683641
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(' '); n, a, b = int(n), int(a), int(b)\n\nif a*n <= b:\n return a*n\nelse:\n return b", "n, a, b = input().split(' '); n, a, b = int(n), int(a), int(b)\n \nif a*n <= b:\n print(a*n)\nelse:\n print(b)"]
['Runtime Error', 'Accepted']
['s106259985', 's680393143']
[2940.0, 2940.0]
[17.0, 17.0]
[106, 107]
p02981
u745554846
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 * c > b:\n print(b)\nelse:\n print(a*c)', 'a, b, c = [int(i) for i in input().split()]\nif a * b > c:\n print(c)\nelse:\n print(a*b)']
['Wrong Answer', 'Accepted']
['s712193596', 's335112660']
[2940.0, 2940.0]
[18.0, 17.0]
[87, 87]
p02981
u747941497
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\ndef func(n, a, b):\n if (n*a > b):\n return b\n else:\n return n*a\n \nfunc(A[0], A[1], A[2])', 'n, a, b=map(int, input().split())\n\ndef func(n, a, b):\n if n*a > b:\n return b\n else:\n return n*a\nfunc(n, a, b)', 'n, a, b=map(int, input().split())\n\ndef fun...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s190613489', 's420792617', 's708598553', 's993230543', 's580968697']
[2940.0, 3316.0, 2940.0, 21076.0, 2940.0]
[17.0, 21.0, 17.0, 315.0, 17.0]
[134, 117, 117, 331, 136]
p02981
u748311048
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']
['s425656203', 's932544686']
[3316.0, 3316.0]
[22.0, 21.0]
[57, 57]
p02981
u754022296
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()),print(min(a*b,c))', 'a,b,c=map(int,input().split());print(min(a*b,c))']
['Runtime Error', 'Accepted']
['s475181779', 's139721429']
[2940.0, 2940.0]
[17.0, 18.0]
[48, 48]
p02981
u756696693
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())\nprint(min(n * a,b))']
['Wrong Answer', 'Accepted']
['s115864690', 's422118892']
[2940.0, 2940.0]
[17.0, 17.0]
[71, 50]
p02981
u760961723
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))']
['Runtime Error', 'Accepted']
['s393310181', 's545496327']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 54]
p02981
u763534217
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=list(map(int, input().split())\nn=l[0]\na, b = l[1], l[2]\n\nif a*n>=b:\n print(b)\nelse:\n print(a*n)', 'l = list(map(int, input().split()))\nn=l[0]\na=l[1]\nb = l[2]\n\nif a*n >= b:\n print(b)\nelse:\n print(a*n)\n']
['Runtime Error', 'Accepted']
['s451072331', 's254084263']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 107]
p02981
u763963344
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?
['code = input()\nprint(\'Good\' if code[0] != code[1] and code[1] != code[2] and code[2] != code[3] else "Bad")', 'N,A,B=map(int, input().split())\nprint(min(N*A, B))\n']
['Wrong Answer', 'Accepted']
['s338507940', 's840084416']
[9028.0, 9072.0]
[28.0, 31.0]
[107, 51]
p02981
u766393261
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?
['i=list(int,input().split())\nif i[0]*i[1]>i[2]:\n print(i[0]*i[1])\nelif:\n print(i[2])', '\ni=list(map(int,input().split()))\nif i[2]>i[0]*i[1]:\n print(i[0]*i[1])\nelse:\n print(i[2])']
['Runtime Error', 'Accepted']
['s938200307', 's076454962']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 95]
p02981
u769411997
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)\n\nelif n*a < b:\n print(b)', 'n, a, b = map(int, input().split())\nmin = a * n\nfor i in range(1, n+1):\n if a*(n-i)+b < min:\n min = a*(n-i)+b\n\nprint(min)']
['Wrong Answer', 'Accepted']
['s238299460', 's275983026']
[2940.0, 3060.0]
[18.0, 17.0]
[91, 131]
p02981
u773265208
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 sys\n\ndef p(n, r):\n\tif n < r:\n\t\treturn 1\n\treturn math.factorial(n) // math.factorial(n - r)\n\ndef main():\n\tinput = sys.stdin.readline\n\tN,K = map(int,input().split())\n\tE = [[] for _ in range(N)]\n\tMOD = 10**9+7\n\t\n\tfor _ in range(N-1):\n\t u,v = map(int,input().split())\n\t u -...
['Runtime Error', 'Accepted']
['s735075431', 's480113949']
[3064.0, 2940.0]
[18.0, 17.0]
[1046, 52]
p02981
u774985302
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 ', 'N,A,B = map(int,input().split())\nif N*A>=B:\n print(B)\nelse:\n print(N*A)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s034508708', 's605875425', 's754158434']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[77, 80, 77]
p02981
u776557412
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', 'n,a,b = map(int, input().split())\nprint(min(n*a,b))']
['Wrong Answer', 'Accepted']
['s076881191', 's462006891']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 51]
p02981
u776864893
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_arr = [int(x) for x in input().split()]\n \nL = input_arr[0]\nR = input_arr[1]\n \nmin_ans = 10**18\nfor i in range(L,R):\n for j in range(i+1,R):\n ans = (i*j)%2019\n if ans < min_ans:\n min_ans = ans\nprint(min_ans)', 'L,R = [int(x) for x in input().split()]\n \nmin_ans = 10**18\n\...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s226098307', 's801092943', 's857358877', 's230274787']
[3060.0, 2940.0, 3060.0, 3060.0]
[18.0, 17.0, 17.0, 17.0]
[240, 292, 256, 176]
p02981
u776929617
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,a,b = list(map(int, input().split()))\n\nprint(min(n*a, b))\n']
['Wrong Answer', 'Accepted']
['s554751020', 's893051303']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 60]
p02981
u777394984
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(nt,input().split())\nprint(min(a*n,b))', 'n,a,b = map(int,input().split())\nprint(min(a*n,b))']
['Runtime Error', 'Accepted']
['s064029896', 's826902126']
[3064.0, 2940.0]
[18.0, 18.0]
[49, 50]
p02981
u778113870
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?
['def yo():\n l,r = map(int,input().split())\n\n a = l*r%2019\n for i in range(l,r) :\n for j in range(i+1,r+1):\n ij = i*j%2019\n \n if(ij==0) :\n return a\n\n if (a > ij) :\n a = ij\n\n\n return a\n\n\n\nprint(yo())', 'n,a,b = map(int,i...
['Runtime Error', 'Accepted']
['s206810626', 's759023669']
[3188.0, 2940.0]
[17.0, 17.0]
[278, 84]
p02981
u778700306
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\nb *= n\n\nprint(min(a, b))', 'n,a,b=map(int,input().split())\n\na *= n\n\nprint(min(a, b))']
['Wrong Answer', 'Accepted']
['s522419185', 's831578363']
[2940.0, 2940.0]
[17.0, 18.0]
[56, 56]
p02981
u778710411
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']
['s046512609', 's097494602']
[2940.0, 2940.0]
[20.0, 17.0]
[79, 81]
p02981
u778926388
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\nif R-L+1>=2019:\n print(0)\nelse:\n L %= 2019\n R %= 2019\n if L<R:\n k=L*(L+1)\n print(k)\n else:\n print(0)\n', '\nN, A, B = map(int, input().split())\n\nTrain = A * N\nTaxi = B\n\nif Train > Taxi:\n print(Taxi)\nelse:\n print(Train)\n']
['Runtime Error', 'Accepted']
['s358235644', 's629919111']
[2940.0, 2940.0]
[18.0, 17.0]
[168, 159]
p02981
u779170803
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?
["INT = lambda: int(input())\nINTM = lambda: map(int,input().split())\nSTRM = lambda: map(str,input().split())\nSTR = lambda: str(input())\nLIST = lambda: list(map(int,input().split()))\nLISTS = lambda: list(map(str,input().split()))\ndef do():\n n,a,b=INTM()\n print(n*a,b)\nif __name__ == '__main__':\n do()",...
['Wrong Answer', 'Accepted']
['s682812841', 's894220141']
[3064.0, 3060.0]
[17.0, 17.0]
[306, 311]
p02981
u779293207
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(B)\nelse:\n print(N*A)\n']
['Wrong Answer', 'Accepted']
['s336938935', 's680363118']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 76]
p02981
u780698286
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())\nprint(min(n*a, b))']
['Wrong Answer', 'Accepted']
['s161212638', 's626726661']
[9016.0, 9028.0]
[28.0, 28.0]
[54, 54]
p02981
u781262926
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())\nfrom itertools import combinations\n\nmod = 2019\nl, r = L % mod, R % mod\nif l > r:\n l, r = r, l\n\nmini = l*r % mod\nfor i, j in combinations(range(l, r+1), 2):\n mini = min(mini, i*j % mod)\n if mini == 0:\n break\nprint(mini)', 'N, A, B = map(int, input().split()...
['Runtime Error', 'Accepted']
['s762308495', 's747498024']
[3064.0, 2940.0]
[17.0, 17.0]
[267, 83]
p02981
u782748646
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*b)', 'n,a,b=map(int, input().split())\nif n*a >b:\n print(b)\nelse:\n print(n*a)']
['Wrong Answer', 'Accepted']
['s708496382', 's263137465']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 72]
p02981
u788023488
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())\nprint(min(n*a,b))']
['Wrong Answer', 'Accepted']
['s131432990', 's677081908']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 53]
p02981
u790301364
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?
['def main01():\n data = input().split()\n nums = []\n\n for i in range(3):\n nums.append(int(data))\n densya = num[0] * num[1]\n if densya > num[2]:\n print(num[2])\n else:\n print(densya)\n\n\nif __name__ == "__main__":\n main01()', 'def main01():\n data = input().split()\...
['Runtime Error', 'Accepted']
['s835691767', 's350990583']
[3060.0, 3060.0]
[18.0, 17.0]
[258, 259]
p02981
u795733769
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())\nif a*b <= c:\n print(a*b)\n else:\n print(c)', 'a, b, c = map(int, input().split())\ns = a*b\nif s <= c:\n print("{}".format(s))\n else:\n print("{}".format(c))', 'import math\n\nn, d = map(int, input().split())\nx = [list(map(int, input().split())) for i in ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s687456681', 's691035754', 's743626432', 's158064471']
[2940.0, 3064.0, 9140.0, 2940.0]
[17.0, 17.0, 26.0, 17.0]
[88, 118, 307, 88]
p02981
u796044734
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()\nA = input()\nB = input()\nif ( N*A <= B ):\n\tprint(N*A)\nelse:\n\tprint(B)\n', 'N = input()\nA = input()\nB = input()\nif ( N*A <= B ){\n\tprint(N*A)\n}\nelse print(B)\n', 'n,a,b=map(int,input().split())\n\nprint(min(n*a,b))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s329270912', 's856074936', 's728923688']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[81, 81, 50]
p02981
u796424048
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 = A*N\ntaxi = B/N;\n\nif taxi < train:\n print(taxi)\nelse:\n print(train)\n', 'N,A,B = map(int,input().split())\n\ntrain = A*N\ntaxi = B/N\n\nif taxi < train:\n print(taxi)\nelse:\n print(train)\n\n', 'N,A,B = map(int,input().split())\n\ntrain = A*N\ntaxi = B\...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s022617827', 's928375738', 's822758990']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[116, 116, 114]
p02981
u796738591
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(b,a*n)', 'n,a,b = map(int, input().split())\nprint(min(b,a*n))']
['Runtime Error', 'Accepted']
['s615397755', 's368080228']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 51]
p02981
u804924310
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?
['nab = input().split()\nn = int(nab[0])\na = int(nab[1])\nb = int(nab[2])\n\nif n*a > b:\n print(n*a)\nelse:\n print(b)', 'nab = input().split()\nn = nab[0]\na = nab[1]\nb = nab[2]\n\nif n*a > b:\n print(n*a)\nelse:\n print(b)', 'nab = input().split()\nn = int(nab[0])\na = int(nab[1])\nb = int(nab[2])\n\nif n*a > ...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s373932028', 's933971042', 's300128273']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[112, 97, 112]
p02981
u805332733
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 numpy as np\n\ndef mod_2019(L, R):\n year = 2019\n if (R - L) >= year:\n return 0\n \n import numpy as np\n array = np.array([[i for i in range(L, R)]])\n if (array % year).min() == 0:\n return 0\n \n \n array_2d = np.dot(array.T, array)\n for i in range(len(array_2d[0])):\n array_2d[i][i] =...
['Runtime Error', 'Runtime Error', 'Accepted']
['s100047190', 's474106762', 's361650120']
[12436.0, 3064.0, 2940.0]
[151.0, 17.0, 17.0]
[412, 405, 88]
p02981
u806976856
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(a*n,b)\n', 'n,a,b=map(int,input().split())\nprint(min(a*n,b))\n']
['Runtime Error', 'Accepted']
['s352475388', 's671867921']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 49]
p02981
u810356688
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\ndef input(): return sys.stdin.readline().rstrip()\ndef main():\n n=int(input())\n A=list(map(int,input().split()))\n B=[0]*n\n B[0]=sum(A)-sum(A[1::2])*2\n for i in range(1,n):\n B[i]=(A[i-1]-B[i-1]//2)*2\n print(*B)\n \nif __name__=='__main__':\n main()", 'n,a,b=map(int,inp...
['Runtime Error', 'Accepted']
['s241602450', 's533827675']
[3064.0, 2940.0]
[17.0, 18.0]
[285, 49]
p02981
u812817085
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_data=input()\nN,D=map(int,input_data.split())\nX=[] \nfor n in range(N) :\n X_data=input() \n X.append(list(map(int,X_data.split())))\n\noutput=0\n\nfor i in range(N):\n for j in range(N):\n if i>j:\n dist=0\n for y, z in zip(X[i],X[j]):\n dist=dist+(y-z)**2\...
['Runtime Error', 'Accepted']
['s217582702', 's068730534']
[3064.0, 3060.0]
[18.0, 18.0]
[464, 177]
p02981
u814986259
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(input().split())\nprint(max(N*A,B))', 'N,A,B=map(int,input().split())\nprint(min(N*A,B))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s145784172', 's749336001', 's657586336']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[48, 44, 48]
p02981
u819407764
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?
['x,y,z = map(int,input().stlip())\nx = int(x)\ny = int(y)\nz = int(z)\nif x*y > z:\n print(x*y)\nelse:\n print(z)\n', 'x,y,z = map(int,input().stlip())\nx = int(x)\ny = int(y)\nz = int(z)\nif x*y > z:\n print(x*y)\nelse:\n print(z)\n', 'x,y,z = map(int,input().split())\nx = int(x)\ny = int(y)\nz = int(z)\nif x*y >...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s111129634', 's121333067', 's211621877', 's920945898', 's923505677', 's349294515']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 18.0, 17.0]
[112, 108, 108, 103, 103, 108]
p02981
u824756230
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())\ntrain = A * N\nif train <= B:\n print(train)\nelse:\n print(B)', 'N, A, B= int(input()), int(input()), int(input())\ntrain = A * N\nif train <= B:\n print(train)\nelse:\n print(B)', 'get = input().split()\nN = int(get[0])\nA = int(get[1])\nB = int(get[...
['Runtime Error', 'Runtime Error', 'Accepted']
['s563377680', 's942792924', 's190689255']
[2940.0, 3064.0, 2940.0]
[21.0, 17.0, 18.0]
[115, 114, 134]
p02981
u829908012
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 NA > B:\n print(B)\nelif NA < B:\n print(AN)\nelse:\n print(AN)', 'N = int(input())\nA = int(input())\nB = int(input())\n\nif N*A > B:\n print(B)\nelif N*A < B:\n print(A*N)\nelse:\n print(A*N)', 'N, A, B = map(int,input().split())\n\nif N*A > B:\n print(B...
['Runtime Error', 'Runtime Error', 'Accepted']
['s450056268', 's737707373', 's090875326']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[106, 126, 110]
p02981
u830054172
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()))\nans = n*a+b\nprint(ans)', 'n, a, b=list(map(int, input().split()))\nans = min(n*a, b)\nprint(ans)']
['Wrong Answer', 'Accepted']
['s119884723', 's364407490']
[3316.0, 2940.0]
[20.0, 17.0]
[62, 68]
p02981
u832158848
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())\nL=l%2019\nR=r%2019\nmin=2020\nif L>R:\n R=R+2019\nfor j in range(L+1,R+1):\n for i in range(L,j):\n if min > i*j%2019:\n min = i*j%2019\nprint("{}".format(min))\n', 'n,a,b=map(int,input().split())\nif n*a<b:\n print("{}".format(n*a))\nelse:\n print("{}".form...
['Runtime Error', 'Accepted']
['s915732724', 's294402734']
[3060.0, 2940.0]
[17.0, 17.0]
[205, 101]
p02981
u835914531
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())\nprint(min(n*a,b))']
['Wrong Answer', 'Accepted']
['s605883362', 's709964761']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 48]
p02981
u841021102
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?
['inp = list(map(int, input().split()))\nprint (inp[0] * inp[1] + inp[2])', 'inp = list(map(int, input().split()))\nif (inp[0] * inp[1]) <= ip[2] : \n\tprint (inp[0] * inp[1])\nelse :\n print (inp[2])', 'inp = list(map(int, input().split()))\nif (inp[0] * inp[1]) <= inp[2] : \n\tprint (inp[0] * inp[1])\nelse :\n ...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s399991213', 's751552297', 's943288629']
[9152.0, 9128.0, 9096.0]
[29.0, 31.0, 27.0]
[70, 121, 122]
p02981
u842901156
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()\nA = input()\nB = input()\nif NA > B:\n return B\nelse:\n return NA', 'N,A,B=map(int,input().split())\ndef kansuu(N,A,B):\n\tif N*A>=B:\n\t return B\n\telse:\n \t return NA', 'N,A,B=map(int,input().split())\ndef kansuu(N,A,B):\n\tif N*A>B:\n\t return B\n\telse:\n \t return NA', 'N = int(input())\nA ...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s055711869', 's288835978', 's352101526', 's696478651', 's970705986']
[2940.0, 2940.0, 2940.0, 2940.0, 12420.0]
[17.0, 17.0, 20.0, 17.0, 148.0]
[75, 94, 93, 114, 91]
p02981
u846372029
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 = list(map(input().split()))\nprint(min(a*b, c))\n', 'a,b,c = list(map(int, input().split()))\n\nprint(min(a*b, c))']
['Runtime Error', 'Accepted']
['s961976941', 's212353552']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 59]
p02981
u847033024
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())\nif a * b <= c:\n print(b)\nelse:\n print(c)', 'a, b, c = map(int, input().split())\nif a * b <= c:\n print(a * b)\nelse:\n print(c)']
['Wrong Answer', 'Accepted']
['s107456429', 's397092972']
[9060.0, 9020.0]
[24.0, 24.0]
[78, 82]
p02981
u853900545
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']
['s476391808', 's611531774']
[2940.0, 2940.0]
[17.0, 17.0]
[49, 50]
p02981
u857217921
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', 'n,a,b=map(int, input().split())\nif n*a >b:\n print(b)\nelse:\n print(a)\n', 'n,a,b=map(int, input().split())\nif n*a >=b:\n print(b)\nelse:\n print(n*a)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s266590753', 's453772753', 's105613774']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 22.0]
[72, 71, 74]
p02981
u857330600
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']
['s358456434', 's933984778']
[2940.0, 2940.0]
[17.0, 18.0]
[48, 48]
p02981
u857428111
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 time import sleep\nn, a, b = map(int, input().split())\nsleep(3.0)\nprint(min(a * n, b))', '# coding: utf-8\n# Your code here!\n\n\nN,A,B = map(int,input().split()) \nprint(B if A*N > B else A*N)']
['Time Limit Exceeded', 'Accepted']
['s125415139', 's935271793']
[2940.0, 2940.0]
[2104.0, 17.0]
[90, 98]
p02981
u865383026
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\nN = int(a[1])\nA = int(a[2])\nB = int(a[3])\n\nif A * N >= B * N:\n print B * N\nelse:\n print A * N\n', 'a = input().split()\n \nN = int(a[0])\nA = int(a[1])\nB = int(a[2])\n \nif A * N >= B:\n print (B)\nelse:\n print (A * N)']
['Runtime Error', 'Accepted']
['s875769762', 's397212226']
[2940.0, 3060.0]
[17.0, 17.0]
[118, 115]
p02981
u867826040
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 > n*a:\n print(a*c)\nelif b < a*a:\n print(b)\nelse:\n print(b)\n', 'n,a,b = map(int,input().split())\nif b > n*a:\n print(a*n)\nelif b < a*a:\n print(b)\nelse:\n print(b)\n']
['Runtime Error', 'Accepted']
['s825425406', 's939753157']
[3064.0, 2940.0]
[17.0, 17.0]
[100, 100]
p02981
u870297120
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']
['s329041200', 's876060555']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 48]
p02981
u872158847
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())\n\nprint("{}".format(min(n*a, b)))', 'n = int(input())\na = int(input())\nb = int(input())\n\nprint("".format(min(n*a, b)))', 'n, a, b = input().split()\nn = int(n)\na = int(a)\nb = int(b)\nprint("{}".format(min(n*a, b)))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s722546793', 's900172030', 's941807071']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[83, 81, 90]
p02981
u873134970
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', 'n,a,b=map(int,input().split())\n\nprint(min(a*n,b))\n']
['Wrong Answer', 'Accepted']
['s724708382', 's819857870']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 50]
p02981
u873422538
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 -*-\nimport sys\n\n\ndef answer(N, A, B):\n rail = N * A\n taxi = B\n\n return min(rail, taxi)\n\n\nif __name__ == '__main__':\n args = sys.stdin\n answer(args[0], args[1], args[2])\n", "# -*- coding: utf-8 -*-\nimport sys\n\n\ndef answer(N, A, B):\n rail = N * A\n taxi = B\n\...
['Runtime Error', 'Runtime Error', 'Accepted']
['s156931334', 's600021442', 's441045390']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[204, 222, 237]
p02981
u879478232
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(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)']
['Runtime Error', 'Accepted']
['s849653472', 's804454373']
[3060.0, 2940.0]
[18.0, 17.0]
[55, 59]
p02981
u879870653
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();print(min(A*N,B))', 'n,a,b = map(int,input().split())\nprint(min(n*a,b))\n']
['Runtime Error', 'Accepted']
['s075297769', 's933071569']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 51]
p02981
u881863399
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,N=map(int,iput(),split())\nif A*N<B :\n print(A*N)\nelse:\n print(B)', 'A,B,N=map(int,iput(),split())\nif A*N<B :\n print("A*N")\nelse:\n print("B")', 'A,B=map(int,iput(),split())\nif A*N<B :\n print(A*N)\nelse:\n print(B)', 'A,B=map(int,iput(),split())\nif A*N<B :\n print"A*N"\n else:\n print"B"',...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s061576964', 's233027799', 's616820487', 's683461227', 's705447305', 's958665122', 's698570140']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 19.0]
[72, 74, 70, 72, 72, 74, 71]
p02981
u882370611
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(a*n,b))', 'n,a,b=map(int,input().split())\nprint(min(a*n,b))\n']
['Runtime Error', 'Accepted']
['s901130060', 's641716787']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 49]
p02981
u883237011
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?
['str = input("input: ")\nn, a, b = str.split(\' \')\n\n#print(\'n: \', n)\n#print(\'a: \', a)\n#print(\'b \', b)\n\nfare_taxy = int(b)\nfare_bus = int(a) * int(n)\n\nif fare_taxy < fare_bus:\n print(fare_taxy)\nelse:\n print(fare_bus)', 'str = input("")\nn, a, b = str.split(\' \')\n\nfare_taxy = int(b)\nfare_bus...
['Wrong Answer', 'Accepted']
['s511206157', 's965840538']
[2940.0, 2940.0]
[17.0, 17.0]
[218, 160]
p02981
u883850005
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=int(input())\nB=int(input())\nN=int(input())\n\nint train=A*N\nint taxi=B\nif (train<=taxi):\n print(train)\nelse:\n print(taxi)', 'N=int(input())\nA=int(input())\nB=int(input())\n\ntrain=A*N\ntaxi=B\nif (train<=taxi):\n print(train)\nelse:\n print(taxi)', 'N=int(input())\nA=int(input())\nB=int(input())\n\nint ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s304087916', 's623646954', 's885287304', 's173822487']
[2940.0, 2940.0, 2940.0, 3064.0]
[18.0, 17.0, 18.0, 18.0]
[123, 115, 123, 115]
p02981
u887080340
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\nimport numpy as np\n\ndef mod(n):\n return n % 2019\n\n\nL, R = map(int, input().split())\n\na = list(range(L,R+1))\np = list(itertools.combinations(a, 2))\na1, a2 = map(list, zip(*p))\nans = np.array(a1)*np.array(a2)\nans = map(mod,ans)\nprint(min(ans))\n', 'def mod(n):\n return n % 2019\n\ni...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s241991000', 's538324026', 's635143812', 's233601569']
[12508.0, 12504.0, 2940.0, 2940.0]
[150.0, 149.0, 17.0, 17.0]
[262, 283, 65, 65]
p02981
u887675488
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?
['\nN, A, B = input()\n\ntrain = N * A\n\nif(train < B) :\n print(train)\nelse:\n print(B)', '\nN, A, B = map(int, input().split())\n\ntrain = N * A\n\nif(train < B) :\n print(train)\nelse:\n print(B)']
['Runtime Error', 'Accepted']
['s724066978', 's345053844']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 101]
p02981
u887886407
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?
['T = N * A\n\nL = [T, B]\nmin(L)', 'N, A, B = map(int, input().split())\nT = N * A\n\nL = [T, B]\nprint(min(L))\n\n']
['Runtime Error', 'Accepted']
['s419560334', 's102173001']
[2940.0, 2940.0]
[17.0, 17.0]
[28, 73]
p02981
u898999125
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(n*a)\nelse:\n print(b)']
['Wrong Answer', 'Accepted']
['s104155565', 's490625347']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 79]
p02981
u901757711
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*n)\nelse:\n print(b)\n', 'n,a,b = map(int, input().split())\n\nif a*n <= b:\n print(a*n)\nelse:\n print(b)\n']
['Wrong Answer', 'Accepted']
['s237618123', 's245339639']
[8908.0, 9156.0]
[27.0, 29.0]
[82, 82]
p02981
u901922943
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?
['str = input().split()\nl_org = int(str[0])\nr_org = int(str[1])\n\nl = 2019\nr = 2019\n\nif (2019 > l_org):\n\tl = l_org\n\t\nif (2019 > r_org):\n\tr = r_org\n\nmin = 2019\n\nfor i in range(l,r-1):\n\tfor j in range(i+1,r):\n\t\tm = (i * j) % 2019\n\t\tif m < min:\n\t\t\tmin = m\n\nprint(min)\n', 'str = input().split...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s528579148', 's862703019', 's670043478']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[262, 130, 130]
p02981
u902024288
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())\nprint(min(n * a, b))']
['Wrong Answer', 'Accepted']
['s689598480', 's282225270']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 53]
p02981
u903629757
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\nif t > B:\n print(B)\nelif t < B:\n print(t)\nelif t = B:\n print(B)\n', 'N, A, B = map(int,input().split())\nt = N*A\nif t > B:\n print(B)\nelse:\n print(t)\n']
['Runtime Error', 'Accepted']
['s390639089', 's939414226']
[8928.0, 9084.0]
[20.0, 30.0]
[110, 81]
p02981
u905248616
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?
['#%%\nimport sys\ndef input():\n return sys.stdin.readline().rstrip()\n\ndef main():\n L, R = map(int, input().split())\n\n R_r = R%2019\n if (R - L) > R_r :\n print(0)\n else:\n L_r = L%2019\n ans = L_r*(L_r+1)%2019\n for l in range(L_r, R_r):\n for r in range(l+1...
['Runtime Error', 'Runtime Error', 'Accepted']
['s099090493', 's613955174', 's438889332']
[3064.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0]
[484, 490, 257]
p02981
u907433146
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())\n\nN *= A\n\nif (N) < B:\n print(N)\nelse:\n print(B)', 'N = int(input())\nA = int(input())\nB = int(input())\n\nif (N*A) < B:\n print(N*A)\nelse:\n print(B)', 'N = int(input())\nA = int(input())\nB = int(input())\n\nif N*A < B:\n print(N*A)\nelse:\n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s113258037', 's591794089', 's754544377', 's323829969']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[103, 99, 97, 86]
p02981
u909487111
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?
['inp = input().split(" ")\nn = int(inp[0])\na = int(inp[1])\nb = int(inp[2])\n\nprint(max(n*a, b))', 'inp = input().split(" ")\nn = int(inp[0])\na = int(inp[1])\nb = int(inp[2])\n\nprint(min(n*a, b))']
['Wrong Answer', 'Accepted']
['s186690039', 's343171331']
[2940.0, 2940.0]
[17.0, 17.0]
[92, 92]
p02981
u912862653
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())\nprint(min(N*A, B))']
['Wrong Answer', 'Accepted']
['s433451485', 's031617059']
[3316.0, 2940.0]
[21.0, 17.0]
[54, 54]
p02981
u918845030
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?
['def input_from_console():\n l, r = map(int, input().split())\n return l, r\n\n\ndef solve(l, r):\n minimum = 2020\n if r - l >= 2019:\n return 0\n a, b = l % 2019, r % 2019\n if r // 2019 > l // 2019:\n return 0\n for i in range(a, b):\n for j in range(a + 1, b + 1):\n ...
['Runtime Error', 'Accepted']
['s833300583', 's970892147']
[3064.0, 3060.0]
[17.0, 17.0]
[631, 402]
p02981
u921773161
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?
['d = list(map(int, input().split()))\nN = d[0]\nA = d[1]\nB = d[2]\n\nif N*A >= B :\n return(N*A)\nelse:\n return(B)', '1', 'd = list(map(int, input().split()))\nN = d[0]\nA = d[1]\nB = d[2]\n\nif N*A >= B :\n return(B)\nelse:\n return(N*A)', 'd = list(map(int, input().split()))\nN = d[0]\nA = d[1]\nB = d[...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s287463222', 's289539513', 's983708213', 's207126811']
[2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0, 17.0]
[113, 1, 113, 111]
p02981
u923010184
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)', 'densya = N * A\nif densya >= B:\n\tprint(B)\nelse:\n\tprint(A)', 'input.split() = list\ndensya = list[1] * list[2]\nif densya >= list[3]:\n\tprint(list[3])\nelse:\n\tprint(densya)', 'a,b,c = map(int,input().split())\nprint(min(a*b , c))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s040267843', 's050375904', 's205838655', 's041594421']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[51, 56, 106, 52]
p02981
u924144079
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())\nif N * A >= B:\n print(N * A)\nelse:\n print(B)', 'N, A, B = (int(i) for i in input().split())\nif (N * A) >= B:\n print(B)\nelse:\n print(N * A)']
['Wrong Answer', 'Accepted']
['s356381168', 's742710791']
[2940.0, 2940.0]
[17.0, 17.0]
[90, 92]
p02981
u925836726
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 numpy as np\n\nn, d = map(int,input().split())\n\nlistA=[] \nwhile True:\n try:\n listA.append(list(map(int,input().split())))\n\n except:\n break;\n \n\ncount = 0\nfor i in range(n):\n for j in range(n):\n if(i < j):\n dis = 0\n for k in range(d):\n ...
['Runtime Error', 'Accepted']
['s727781648', 's851916938']
[12488.0, 2940.0]
[148.0, 17.0]
[542, 84]
p02981
u929107645
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())\ndensha=n*a\ntaxi=b\nif densha>taxi:\n print(taxi)\nelif densha<taxi:\n print(densha)\nelse:\n print(densha)', 'n=int(input())\na=int(input())\nb=int(input())\ndensha=n*a\ntaxi=b\nif densha>taxi:\n print(taxi)\nelif densha<taxi:\n print(densha)\nelse :\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s503399966', 's616176094', 's676592078']
[3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[154, 155, 140]
p02981
u931636178
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(B,N*A))', 'N,A,B = map(int,input().split())\nprint(min(B,N*A))']
['Runtime Error', 'Accepted']
['s641290703', 's128276076']
[2940.0, 2940.0]
[17.0, 20.0]
[48, 50]
p02981
u934788990
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())\nD = A*N\n\nif D>B:\n print(D)\nelse: \n print(G)', 'N,A,B = map(int,input().split())\nD = A*N\nG = B*N\nif D>G:\n print(D)\nelse: \n print(G)', 'N,A,B = map(int,input().split())\nD = A*N\nif D>B:\n print(D)\nelse: \n print(B)', 'N,A,B = map(int,input().split())...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s420987975', 's582324599', 's582848499', 's076139316']
[2940.0, 2940.0, 2940.0, 3064.0]
[18.0, 17.0, 17.0, 17.0]
[83, 92, 82, 82]