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 | u250090834 | 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\tprint (n*a)\nelse: \n\tprint (b)', 'n, a, b = map(int, input().split())\nif n*a < b\n\tprint n*a\nelse: \n\tprint b', 'n, a, b = map(int, input().split())\nif n*a < b:\n\tprint (n*a)\nelse: \n\tprint (b)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s048431906', 's957574457', 's602246435'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [77, 73, 78] |
p02981 | u250944591 | 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'] | ['s362041602', 's815466212'] | [8964.0, 9152.0] | [30.0, 25.0] | [48, 48] |
p02981 | u252523823 | 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)'] | ['Wrong Answer', 'Accepted'] | ['s960920622', 's174776638'] | [2940.0, 2940.0] | [18.0, 17.0] | [81, 81] |
p02981 | u252964975 | 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])', 'n,a,b=map(int, input().split())\nprint(min([a*n,b]))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s776920007', 's874031243', 's741877616'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [50, 50, 51] |
p02981 | u253952966 | 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().spalit())\npa = n * a\nprint(min(pa, b))', 'n, a, b = map(int, input().split())\npa = n * a\nprint(min(pa, b))'] | ['Runtime Error', 'Accepted'] | ['s266617607', 's299485726'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 64] |
p02981 | u259748846 | 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,inpput().split())\nprint(mini(n*a,b))', '(n,a,b)=map(int,input().split())\nprint(min(n*a,b))\n'] | ['Runtime Error', 'Accepted'] | ['s114235529', 's921179392'] | [2940.0, 2940.0] | [17.0, 17.0] | [52, 51] |
p02981 | u263830634 | 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(A * N, B))'] | ['Runtime Error', 'Accepted'] | ['s164046024', 's129291779'] | [2940.0, 2940.0] | [17.0, 18.0] | [58, 58] |
p02981 | u266054689 | 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\nlistX = []\nsw = 0\ni = 1\nfor i in range(1, 990590):\n listX.append(i*2019)\n\nfor n in range(len(listX)):\n if L < listX[n] and R > listX[n]:\n sw += 1\n\nif sw > 0:\n print(0)\n\nelif sw == 0: \n L_1 = L % 2019\n R_1 = R % 2019\n \n idx1 = 0\n listA = []\n for i... | ['Runtime Error', 'Accepted'] | ['s566129543', 's615083594'] | [3064.0, 2940.0] | [17.0, 17.0] | [416, 78] |
p02981 | u267222408 | 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\nLmod = L%2019\nRmod = R%2019\n\ni = Lmod\nj = i + 1\n\nprint((i*j)%2019)', 'L, R = map(int, input().split())\n\nLmod = L%2019\nRmod = R%2019\n\ni = Lmod\nj = i + 1\n\nfor k in range(L, R+1):\n if (k%2019) == 0:\n print(0)\n break\n elif k < R:\n\tcontinue\n else:\n\tprint(... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s099056975', 's196030209', 's854088918', 's217257912'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [100, 200, 208, 55] |
p02981 | u268792407 | 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))'] | ['Runtime Error', 'Accepted'] | ['s575442975', 's539406062'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 48] |
p02981 | u271752821 | 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())\ncount = 0\nx_list = (list(map(int, input().split())) for _ in range(n))\n\nfor i in range(n-1):\n for j in range(i+1, n):\n count += (sum((a-b)**2 for a,b in zip(x_list[i], x_list[j]))**0.5).is_integer\nprint(count)', 'n, a, b = map(int, input().split())\nprint(min(a*n, b))... | ['Runtime Error', 'Accepted'] | ['s287413041', 's142623608'] | [3060.0, 2940.0] | [19.0, 17.0] | [252, 54] |
p02981 | u272075541 | 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([n*a,b]))', 'n,a,b=map(int(input()));print(min([n*a,b]))', 'n,a,b=map(int,input().split());print(min([n*a,b]))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s192923003', 's297869157', 's388337465'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [51, 43, 50] |
p02981 | u274615057 | 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 main():\n n, a, b = map(int, input().split())\n if n * a > b:\n print(n * a)\n else:\n print(b)\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n n, a, b = map(int, input().split())\n if n * a > b:\n print(b)\n else:\n print(n * a)\n\n\nif __name__ == "__... | ['Wrong Answer', 'Accepted'] | ['s145899736', 's609874332'] | [9140.0, 9148.0] | [25.0, 34.0] | [158, 158] |
p02981 | u278057806 | 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:\n print(N * A)\n', 'import math\na = 0\nb = 1\nN, D = map(int, input().split())\nls = [list(map(int, input().split()))for i in range(N)]\nfor i in range(N):\n for j in range(i, N):\n for k in range(D):\n a += (ls[i][k]... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s318311355', 's737644818', 's620860241'] | [2940.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0] | [89, 312, 88] |
p02981 | u278379520 | 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(b)\nelse:\n print(a)', 'n,a,b=map(int,input().split())\nif a*n>=b:\n print(b)\nelse:\n print(a*n)'] | ['Wrong Answer', 'Accepted'] | ['s160915222', 's669319199'] | [2940.0, 2940.0] | [18.0, 17.0] | [73, 75] |
p02981 | u281745878 | 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? | ['List = list(map(int,input().split()))\nN = List[0]\nA = List[1]\nB = List[2]\n\nif A*N <= B:\n print(B)\nelse:\n print(A*N)\n\n', 'List = list(map(int,input().split()))\nL = List[0]\nR = List[1]\ncount_dict = {}\ncount_list = []\nif R - L >= 2019:\n print(0)\nelse:\n for i in range(L,R+1):\n for j ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s192364350', 's991785346', 's969220355'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [123, 359, 122] |
p02981 | u282707041 | 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())\ns=list()\nif l+1==r:\n print(l*r)\nelse:\n for i in range(l,r):\n s.append([i*(i+1)%2019])\n #print(s[0][0])\n s=(sorted(s))\n print(s[0][0])', 'n,a,b=map(int,input().split())\n\nd=a*n\nif d>b:\n print(b)\nelse:\n print(d)'] | ['Runtime Error', 'Accepted'] | ['s292536850', 's486133935'] | [3060.0, 2940.0] | [17.0, 17.0] | [184, 77] |
p02981 | u283751459 | 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\nprint(train,taxi)', 'n,a,b = map(int,input().split())\ntrain = n*a\ntaxi = b\nprint(min(train,taxi))\n'] | ['Wrong Answer', 'Accepted'] | ['s664814300', 's379505039'] | [9000.0, 8996.0] | [29.0, 24.0] | [71, 77] |
p02981 | u286955577 | 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 solve():\n L, R = map(int, input().split())\n ans = 2019\n for i in range(L, R):\n for j in range(i + 1, R + 1):\n v = i * j % 2019\n if v < ans: ans = v\n if ans == 0: return\n return ans\n\nprint(solve())\n', 'def solve():\n N, A, B = map(int, input().split())\n return min(N * A, B)\n\np... | ['Runtime Error', 'Accepted'] | ['s830159913', 's239204375'] | [3060.0, 2940.0] | [17.0, 17.0] | [223, 89] |
p02981 | u288430479 | 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'] | ['s024822009', 's764744162'] | [2940.0, 2940.0] | [17.0, 18.0] | [50, 50] |
p02981 | u291132512 | 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(a)\nelse:\n print(b)', 'n,a,b = map(int,input().split())\nif n%4 == 0:\n k = n//4\nelse:\n k = n//4+1\n \n\nif n+a<b*k:\n print(a)\nelse:\n print(b*k)', 'n,a,b = map(int,input().split())\n\n\nif n+a>b:\n print(n*a)\nelse:\n print(b)', ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s126987275', 's428993188', 's462467102', 's917550415', 's586608081'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0] | [74, 135, 78, 74, 79] |
p02981 | u291628833 | 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 < b*n:\n print(a)\nelse:\n print(b*n)', 'n,a,b = map(int,input().split())\nprint("test")', 'n,a,b = map(int,input().split())\n \nif b < a*n:\n print(b)\nelse:\n print(a*n)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s452285608', 's830887966', 's735688539'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [75, 46, 76] |
p02981 | u294385082 | 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())\nx = [list(map(int,input().split())) for a in range(n)]\nc = 0\n \nfor i in range(n-1):\n for j in range(i+1,n+1):\n b = 0\n for m in range(d):\n b += (int(x[i][m])-int(x[j][m]))**2\n if (b**0.5)\u3000== float(int(b**0.5)):\n c += 1\n \nprint(c)', 'n,d = map(int... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s104641170', 's415044523', 's457932399', 's533052004', 's513548348'] | [2940.0, 3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0, 17.0] | [286, 286, 275, 276, 50] |
p02981 | u294630296 | 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\nmod = []\nif R+1-L<=2019:\n for i in range(L,R):\n for j in range(i+1,R+1):\n mod.append((i*j)%2019)\n\nelse:\n for i in range(L, L+2019):\n for j in range(i, L+2019+1):\n mod.append((i*j)%2019)\n\n\nif len(mod)==0:\n print((L*R)%2019)\n... | ['Runtime Error', 'Accepted'] | ['s206285391', 's602566080'] | [3188.0, 2940.0] | [18.0, 17.0] | [328, 80] |
p02981 | u296518383 | 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,P = map(int,input().split())\nprint((A*3+P)//2)', 'N = int(input())\nA = int(input())\nB = int(input())\n\nprint(max(N*A,B))', 'A,P = map(int,input().split())\nprint((A*3+P)//2)', 'N = int(input())\nA = int(input())\nB = int(input())\n\nprint(min(N*A,B))', 'N,A,B=map(int,input().split())\nprint(min(N*A,B))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s095218699', 's402677770', 's596488576', 's853522500', 's716942688'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [48, 69, 48, 69, 48] |
p02981 | u298297089 | 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'] | ['s134401024', 's441150754'] | [3064.0, 2940.0] | [17.0, 17.0] | [51, 51] |
p02981 | u298945776 | 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\na = N * A\n\nif a > B:\n print(a)\nelse:\n print(B)', 'N, A, B = map(int, input().split())\n\na = N * A\n\nif a > B:\n print(B)\nelse:\n print(int(a))'] | ['Wrong Answer', 'Accepted'] | ['s707252510', 's818400244'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 94] |
p02981 | u306070611 | 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))'] | ['Runtime Error', 'Accepted'] | ['s023334504', 's228308484'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 50] |
p02981 | u309120194 | 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 = map(int, input().split())\n\nprint(min(A*N, B))', 'N, A, B = map(int, input().split())\n \nprint(min(A*N, B))'] | ['Runtime Error', 'Accepted'] | ['s179461215', 's022700218'] | [9116.0, 9092.0] | [24.0, 28.0] | [52, 56] |
p02981 | u310233294 | 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\nans = 10 ** 12\nif l > r:\n ans = 0\nelse:\n for i in range(l, r + 1):\n for j in range(i + 1, r + 1):\n ans = min(ans, i * j % 2019)\nprint(ans)', 'N, A, B = map(int, input().split())\nans = min(N * A, B)\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s510140921', 's492410729'] | [3060.0, 3064.0] | [18.0, 17.0] | [221, 66] |
p02981 | u310381103 | 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()))\nt=True\nC=2019\nif t:\n for i in range(A[1]):\n for t in range(A[1]+1):\n if t>i and i>=A[0]:\n if i-t>=2019:\n C=0\n t=False\n break\n else:\n if t*i%2019<C... | ['Wrong Answer', 'Accepted'] | ['s572601171', 's668570548'] | [3064.0, 3316.0] | [17.0, 21.0] | [351, 107] |
p02981 | u310678820 | 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, sys\nsys.setrecursionlimit(100000000)\nmod = 10**9+7\nN, K = map(int, input().split())\nedge = [[] for _ in range(N)]\nflag = [False]*N\nflag[0] = True\nfor i in range(N-1):\n a, b = map(int, input().split())\n edge[a-1].append(b-1)\n edge[b-1].append(a-1)\nP = [1]*(K+10)\nT = [1]*(K+10)\nfor i ... | ['Runtime Error', 'Accepted'] | ['s248918408', 's667416062'] | [3064.0, 3316.0] | [17.0, 21.0] | [629, 55] |
p02981 | u312913211 | 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? | ['\ns=inp()\n#s = (1 2 2) \ns = s.split(" ")\n\n\ndensya = int(s[0])*int(s[1])\ntaxi = int( s[3] )\n\nif ( densya < taxi):\n print(densya)\nelse:\n print(taxi)', 's=inp()\n#s = (1 2 2) \ns = s.split(" ")\n\n\ndensya = s[0]*s[1]\ntaxi = s[3]\n\nif ( densya < taxi):\n print(densya)\nelse:\n print(taxi)', ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s143684076', 's380764738', 's438195000', 's877675791'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 20.0, 17.0] | [153, 135, 165, 166] |
p02981 | u314050667 | 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,input().split())\nprint(min([n*a,b])', 'a,b,n = map(int,input().split())\nprint(min([n*a,b]))', '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', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s013638873', 's330849735', 's393624777', 's900012607'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 19.0] | [51, 52, 52, 52] |
p02981 | u318616028 | 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(4*a,b))', 'n,a,b = map(int,input().split())\nprint(min(n*a,b))\n'] | ['Runtime Error', 'Accepted'] | ['s535723027', 's781907824'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 51] |
p02981 | u329058683 | 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\nll=L%2019\nr=R//2019\nif l<r or ll==0:\n print(0)\nelse:\n print(ll*(ll+1))\n', 'L,R=map(int,input().split())\nl=L//2019\nll=L%2019\nr=R//2019\nlll=L//673\nrrr=R//673\nif l<r or ll==0:\n print(0)\nelif lll>=1 and R-L>=3:\n print(0)\nelse:\n print(ll*(ll+1))\n', 'N,A,B=map... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s439092019', 's638263391', 's271326045'] | [2940.0, 3060.0, 2940.0] | [17.0, 19.0, 17.0] | [112, 169, 48] |
p02981 | u330692748 | 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\nN, A, B = list(map(int, input().split()))\nif N * A > B:\n print(N * A)\nelse:\n print(B)', '# -*- coding: utf-8 -*-\n\nN, A, B = list(map(int, input().split()))\nif N * A < B:\n print(N * A)\nelse:\n print(B)'] | ['Wrong Answer', 'Accepted'] | ['s896678394', 's791159513'] | [2940.0, 2940.0] | [17.0, 17.0] | [116, 116] |
p02981 | u330712095 | 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\n\nif(diff >= 2019):\n print(0)\nelse:\n lmod = l % 2019\n rmod = r % 2019\n if(rmod < lmod):\n print(0)\n else:\n ans =2020\n for i in range(l,r+1):\n for j in range(i+1,r+1):\n print("{} {}".format(i,j))\n if((i*j) % 2019 < ans):\n ... | ['Runtime Error', 'Accepted'] | ['s657551069', 's187576871'] | [3064.0, 2940.0] | [17.0, 17.0] | [339, 51] |
p02981 | u331381193 | 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(input().sprit())\nres=min(n*a,b)\nprint(res)', 'n=int(input())\nx=list(map(int, input().split()))\nimport numpy as np\n\ny=np.repeat([1,-1]*(n-1))\ny.append([1])\nprint(y)\n\nfor i in range(n):\n\tif i%2!=0:\n\t\ty[i]=-1\n\nx2=np.array(x).T\n\nfor i in range(n):\n\ty2=np.roll(y,i)\n\tres=np.dot(y2,x2)\n\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s018116424', 's881403221', 's194421265'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [55, 245, 59] |
p02981 | u336650912 | 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\nresult = 2019\n\nfor i in range(2019):\n if L+i > R-1:\n break;\n for j in range(i+1, 2019):\n if(L+j > R):\n break\n else:\n result = min(result,((L+i)*(L+j))%2019)\n\nprint(result)', 'N,A,B = map(int, input().split())\nprint(min(N*... | ['Runtime Error', 'Accepted'] | ['s166087846', 's643418904'] | [3060.0, 2940.0] | [17.0, 17.0] | [254, 51] |
p02981 | u339922532 | 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'] | ['s171309129', 's500596583'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 56] |
p02981 | u340153434 | 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)'] | ['Runtime Error', 'Accepted'] | ['s286682612', 's201396785'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 76] |
p02981 | u341293550 | 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('タクシー代:'))\nl=N*A\nif l>B:\n print(B)\nelse:\n print(l)", 'N,A,B = map (int,input().split())\nl=N*A\nif l>B:\n print(B)\nelse:\n print(l)'] | ['Runtime Error', 'Accepted'] | ['s062646492', 's602661859'] | [3060.0, 2940.0] | [17.0, 17.0] | [141, 79] |
p02981 | u343489490 | 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', 'n, a, b= map(int, input().split())\nif n*a<=b:\n print(n*a)\nelse:\n print(b)\n'] | ['Wrong Answer', 'Accepted'] | ['s196028538', 's505167469'] | [2940.0, 3064.0] | [17.0, 17.0] | [77, 78] |
p02981 | u347452770 | 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\nif n * a < b:\n print(n * a)\nelse:\n print(b)', 'str = input().split()\nn = int(str[0])\na = int(str[1])\nb = int(str[2])\n\nif n * a < b:\n print(n * a)\nelse :\n print(b)'] | ['Runtime Error', 'Accepted'] | ['s662440328', 's985685178'] | [2940.0, 3060.0] | [18.0, 18.0] | [98, 117] |
p02981 | u347824651 | 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().split())\nD = x * y\nT=z\n if D < T :\n print(D)\n else : print(T)', 'x,y,z = map(int, input().split())\nD = x * y\nT=z\n if D < T :\n print(D)\n else : print(T)', 'input(taxi)\ninput(train)\nprint(train+taxi)', 'x,y,z = map(int, input().split())\nD=x*y\nT=z\n if( D<T,print(D))\n e... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s127446515', 's275883171', 's635574638', 's766178015', 's810781164', 's969550172'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [91, 92, 42, 84, 80, 90] |
p02981 | u347920118 | 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))'] | ['Wrong Answer', 'Accepted'] | ['s444181271', 's341819955'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 51] |
p02981 | u350578302 | 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\nmod = 2019\n \nfor i in range(l,r):\n for j in range(i+1,r):\n ans = min(ans,(i*j)%mod)\n if ans == 0:\n print(0)\n exit()\nprint(ans)', 'L, R = map(int, input().split())\n\n\n\n#print(L%2019, R%2019)\n\n#print((L + 2019 - L%2019))\n\ntmp = 0\n"""\nif L * R... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s395291309', 's692677969', 's411925098'] | [3060.0, 3188.0, 3060.0] | [17.0, 18.0, 19.0] | [185, 440, 74] |
p02981 | u357867755 | 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(n*a)\nelse:\n print(b)\n'] | ['Wrong Answer', 'Accepted'] | ['s915192766', 's418187824'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 80] |
p02981 | u360515075 | 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, A, B = map(int, input().split())\n\nif A * N < B:\n print (A *N)\nelse:\n print(B)'] | ['Wrong Answer', 'Accepted'] | ['s518805391', 's275897480'] | [2940.0, 2940.0] | [18.0, 17.0] | [82, 82] |
p02981 | u363599046 | 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\nif a*n > b:\n\tprint(b)\nelse:\n\tprint(a*n)', 'n, a, b = map(int, input().split())\n\nif a*n > b:\n\tprint(b)\nelse:\n\tprint(a*n)'] | ['Runtime Error', 'Accepted'] | ['s619913352', 's913526954'] | [2940.0, 2940.0] | [18.0, 17.0] | [91, 76] |
p02981 | u364642100 | 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 * B, C))', 'N, A, B = map(int, input().split())\nprint(min(A * N, B))\n'] | ['Runtime Error', 'Accepted'] | ['s035709748', 's088094761'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 57] |
p02981 | u364741711 | 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 :\n print(a)', 'n,a,b=map(int,input().split())\n\nif n*a > b :\n print(n*a)\nelse :\n print(a)', 'n,a,b=map(int,input().split())\n\nif n*a > b :\n print(b)\nelse :\n print(n*a)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s092099029', 's926047031', 's371607950'] | [2940.0, 2940.0, 2940.0] | [17.0, 20.0, 17.0] | [73, 75, 75] |
p02981 | u365243017 | 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())\nd = a*b\nif d>c\nprint("{}".format(c))\nelse if\nprint("{}".format(d))\n', "a,b,c = map(int,input().split())\nd = a*b\nif d > c:\nprint('c')\nelse if:\nprint('d')\n", "a,b,c = map(int,input().split())\nd = a*b\nif d>c:\nprint('c')\nelse:\nprint('d')\n", 'a,b,c = map(int,input().split... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s099769231', 's130703647', 's372182824', 's375206275', 's785286714', 's231211464'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [100, 82, 77, 99, 80, 80] |
p02981 | u365580581 | 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\nN = int(input())\n\n\nA = int(input())\n\n\nB = int(input())\n\nif N*A >= B:\n print(B)\nelse:\n print(N*A) ', '# -*- coding: utf-8 -*-\na, b, c = map(int, input().split())\n\nif a*b >= c:\n print(c)\nelse:\n print(a*b) '] | ['Runtime Error', 'Accepted'] | ['s749424880', 's363941473'] | [2940.0, 3064.0] | [17.0, 20.0] | [182, 108] |
p02981 | u366482170 | 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())\nmod1 = []\nmod2 = []\nfor i in range(l,r+1):\n mod1.append(i%2019)\n\nfor i in range(len(mod1)-1):\n for j in range(i+1,len(mod1)):\n mod2.append((mod1[i]*mod1[j])%2019)\nprint(min(mod2))', 'a, b, c =map(int,input().split())\nif a*b>=c:\n print(c)\nelse:\n print(a*b)'] | ['Runtime Error', 'Accepted'] | ['s036820702', 's372126745'] | [3060.0, 2940.0] | [17.0, 17.0] | [217, 74] |
p02981 | u371132735 | 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))\n'] | ['Wrong Answer', 'Accepted'] | ['s409767829', 's283613930'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 51] |
p02981 | u371530330 | 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\nn,d = list(map(int, input().split()))\nx = [list(map(int, input().split())) for N in range(n)]\n \ncnt = 0\n \nfor i in range(n):\n for j in range(i+1,n):\n kaijou = 0\n for k in d:\n kaijou = kaijou + abs(x[j][k]-x[i][k])**2\n if math.sqrt(kaijou).is_integer():\n cnt += 1\n \npr... | ['Runtime Error', 'Accepted'] | ['s795148608', 's884043639'] | [3064.0, 2940.0] | [17.0, 17.0] | [312, 50] |
p02981 | u374765578 | 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 =open(0)\n\n\nc = int(int(a) * int(n))\nb = int(b)\n\nif c > b:\n print(b)\n \nelse:\n print(c)', 'n, a, b = map(int, input().split())\n\nif n * a > b:\n print(b)\nelse:\n print(n * a)'] | ['Runtime Error', 'Accepted'] | ['s724714915', 's265014864'] | [3188.0, 2940.0] | [18.0, 17.0] | [94, 86] |
p02981 | u374802266 | 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.sprit()))\nprint(min(a[0]*a[1],a[2]))', 'a=list(map(int,input().sprit()))\nprint(min(a[0]*a[1],a[2]))', 'a=list(map(int,input.split()))\nprint(min(a[0]*a[1],a[2]))\n', 'a=list(map(int,input().split()))\nprint(min(a[0]*a[1],a[2]))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s120811708', 's135878011', 's386960258', 's246236003'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [57, 59, 58, 59] |
p02981 | u375282392 | 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())\n\nprint(max(A*N,B))', 'N,A,B = map(int,input().split())\n\nprint(max(A*N,B))', 'N,A,B = map(int,input().split())\n\nprint(min(A*N,B))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s097583696', 's210791424', 's372094882'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [47, 51, 51] |
p02981 | u379142263 | 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 = a*n\ntaxi = b//n\nprint(min(train,taxi))\n', 'n,a,b = map(int,input().split())\ntrain = a*n\ntaxi = b\nprint(min(train,taxi))\n'] | ['Wrong Answer', 'Accepted'] | ['s757502408', 's715670579'] | [2940.0, 2940.0] | [17.0, 18.0] | [80, 77] |
p02981 | u383508661 | 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>=int(B/N):\n print(B)\nelse:\n print(A*N)', 'N,A,B=map(int,input().split())\nif (A*N)>=B:\n print(B)\nelse:\n print(A*N)\n'] | ['Wrong Answer', 'Accepted'] | ['s816124767', 's715763642'] | [2940.0, 2940.0] | [17.0, 18.0] | [76, 74] |
p02981 | u385244248 | 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())\nA=[]\nC=0\nD=0\nE=0\nfor i in range (1,N+1):\n A.append(i)\nfor i in range (0,N):\n A[i]=list(map(int,input().split()))\nfor i in range (0,N-1):\n for j in range(i,N-1):\n for k in range(0,D):\n B=(A[j][k]-A[j+1][k])**2\n C+=B\n D=C\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s067682448', 's137389729', 's167084305', 's220088203', 's769185873'] | [3064.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [383, 212, 153, 252, 81] |
p02981 | u386290341 | 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? | ['people, train, taxi = input("Enter a three value: ").split()\nprice1 = int(people) * int(train)\nprint(min(price1, int(taxi)))', 'people, train, taxi = input("Enter a three value: ").split()\n\nprice1 = int(people) * int(train)\nprice2 = int(people) * int(taxi)\n\nansw = min(price1, price2)\nprint(answ)\n', 'people, ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s073699480', 's780770958', 's783836712', 's465359596'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [124, 169, 139, 102] |
p02981 | u388323466 | 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'] | ['s158261325', 's689575003'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 52] |
p02981 | u392938961 | 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 = raw_input().split()\nif(x[0] * x[1] < x[2]):\n print(x[0] * x[1])\n elif:\n print(x[2])', 'x = [int(s) for s in input().split()]\nif(x[0]*x[1]<x[2]):\n print(x[0]*x[1])\nelse:\n print(x[2])\n'] | ['Runtime Error', 'Accepted'] | ['s502037756', 's066775182'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 98] |
p02981 | u396495667 | 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())\nif n*a <=b:\n print(n*a)\nelse:\n print(b)'] | ['Runtime Error', 'Accepted'] | ['s029254406', 's087088745'] | [2940.0, 2940.0] | [18.0, 17.0] | [51, 75] |
p02981 | u404678206 | 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().sprit()\nN = int(S[0])\nA = int(S[1])\nB = int(S[2])\nif B > A*N:\n print(A*N)\nelse:\n print(B)', 'N,A,B = list(map(int, input().split()))\nprint(min(A*N,B))'] | ['Runtime Error', 'Accepted'] | ['s224718013', 's282834444'] | [2940.0, 2940.0] | [17.0, 17.0] | [103, 57] |
p02981 | u405256066 | 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 sys import stdin\nN,A,B = [int(x) for x in stdin.readline().rstrip().split()]\nprint(max(N*A,B))', 'from sys import stdin\nimport numpy as np\nimport itertools\nN,D = [int(x) for x in stdin.readline().rstrip().split()]\ndata = []\nfor _ in range(N):\n data.append([int(x) for x in stdin.readline().rstrip().spl... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s466811158', 's828994025', 's501413116'] | [3316.0, 14488.0, 2940.0] | [20.0, 161.0, 17.0] | [99, 489, 99] |
p02981 | u407311141 | 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 = max(B, A*N)\nprint(ans)', 'N,A,B = map(int, input().split())\nans = min(B, A*N)\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s572200148', 's856316240'] | [2940.0, 2940.0] | [17.0, 17.0] | [62, 62] |
p02981 | u409757418 | 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? | ['ns = input().split(" ")\nif int(ns[0])*int(ns[1]) <= int(ns[2]):\n print(int(ns[0])*int(ns[1]))\nelse:\n print(int(ns[2])', 'ns = input().split(" ")\nif int(ns[0])*int(ns[1]) <= int(ns[2]):\n print(int(ns[0])*int(ns[1]))\nelse:\n print(int(ns[2]))'] | ['Runtime Error', 'Accepted'] | ['s210873858', 's896419900'] | [2940.0, 2940.0] | [17.0, 17.0] | [119, 120] |
p02981 | u418420470 | 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)\na = N*A\nprint(min(a,B))', 'N,A,B = map(int,input().split())\na = N*A\nprint(min(a,B))'] | ['Runtime Error', 'Accepted'] | ['s632633324', 's248481157'] | [3060.0, 2940.0] | [17.0, 17.0] | [54, 56] |
p02981 | u427690532 | 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 = list(map(int,input().split()))\nn,a,b = S_list\nprint(min(n * a ,b)', 'S_list = list(map(int,input().split()))\nn,a,b = S_list\nprint(min(n * a ,b))'] | ['Runtime Error', 'Accepted'] | ['s010391755', 's435046995'] | [8812.0, 9088.0] | [22.0, 31.0] | [74, 75] |
p02981 | u427984570 | 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(c if c >= a*b else a*b)', 'a,b,c=map(int,input().split())\nprint(c if c <= a*b else a*b)\n'] | ['Wrong Answer', 'Accepted'] | ['s907068725', 's529612075'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 61] |
p02981 | u430414424 | 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 itertools\nimport math\n\nN, D = map(int, input().split())\n\nX = [[0 for x in range(D)] for y in range(N)]\n\nfor n in range(N):\n X[n] = list(map(int, input().split()))\n\nans = 0\nfor target in itertools.combinations(X, 2):\n res = sum([(y - z) ** 2 for y, z in zip(target[0], ... | ['Runtime Error', 'Accepted'] | ['s901912140', 's844131381'] | [3064.0, 2940.0] | [18.0, 17.0] | [397, 56] |
p02981 | u430771494 | 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 N*A>=B:\n print(B)\nelse\n print(N*A)', 'N,A,B= list(map(int, input().split()))\nif N*A>=B:\n print(B)\nelse:\n print(N*A)'] | ['Runtime Error', 'Accepted'] | ['s004263875', 's529560125'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 83] |
p02981 | u431381247 | 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 = int(input())\nX = [int(i) for i in input().split()]\na = np.eye(N)\nb = np.roll(a, 1, axis=1)\nA = a + b\n \nY = np.linalg.solve(A, X)\n \nY = list(map(lambda x: str(int(x*2)), Y))\nprint(' '.join(Y))", 'a = [int(i) for i in input().split()]\nx = a[0] * a[1]\ny = a[2]\n\nif (x<y):\n print(... | ['Runtime Error', 'Accepted'] | ['s040156130', 's501215399'] | [12448.0, 2940.0] | [150.0, 17.0] | [216, 101] |
p02981 | u433080052 | 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=input().split()\nd=a*b\nif d<=c:\n print(d)\nelse:\n print(c)', 'a,b,c=input().split()\na1=int(a)\nb1=int(b)\nc1=int(c)\nd=a1*b1\nif d<=c1:\n print(d)\nelse:\n print(c1)'] | ['Runtime Error', 'Accepted'] | ['s545819041', 's537744448'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 98] |
p02981 | u436887866 | 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? | ['#!/usr/local/bin/python3\n#coding:utf-8\n#import numpy as np\n\ndef main():\n in0 = input()\n IN = in0.split(\' \')\n\n N = int(IN[0])\n A = int(IN[1])\n B = int(IN[2])\n\n train = N*A\n taxi = B\n\n if(train>taxi):\n print ("%s" % (train))\n else:\n print ("%s" % (taxi))\n\nif __name__ ==... | ['Wrong Answer', 'Accepted'] | ['s358597899', 's604675718'] | [3064.0, 3064.0] | [17.0, 17.0] | [318, 330] |
p02981 | u436982376 | 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*n)\nelse:\n print(b)', 'n,a,b = map(int,input().split())\n \nif n*a <= b:\n print(a*n)\nelse:\n print(b)'] | ['Wrong Answer', 'Accepted'] | ['s946994704', 's371917240'] | [2940.0, 2940.0] | [18.0, 17.0] | [76, 77] |
p02981 | u439392790 | 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(A*N)\n'] | ['Wrong Answer', 'Accepted'] | ['s501177798', 's449547809'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 75] |
p02981 | u440334385 | 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'] | ['s427515824', 's210364184'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 54] |
p02981 | u441320782 | 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()\nprint(a)\nif int(a[0])*int(a[1])<int(a[2]):\n print(int(a[0])*int(a[1]))\nelse:\n print(int(a[2]))\n', 'a = input().split()\nif int(a[0])*int(a[1])<int(a[2]):\n print(int(a[0])*int(a[1]))\nelse:\n print(int(a[2]))\n'] | ['Wrong Answer', 'Accepted'] | ['s594107088', 's376937563'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 108] |
p02981 | u443536265 | 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())\nall_list = [list(map(int, input().split())) for i in range(N)]\n#>>>4\ncount = 0\nfor n in range (N):\n for nn in range(N):\n distance = 0\n for d in range(D):\n kou = (all_list[n][d] - all_list[nn][d])**2\n distance += kou\n for s in range... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s068276282', 's606850914', 's855131422', 's960630723'] | [3064.0, 3060.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [426, 305, 426, 79] |
p02981 | u446469817 | 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(b) ', 'n,a,b = map(int,input().split())\nif n*a<=b:\n print(n*a)\nelif n*a>=b:\n print(b) '] | ['Wrong Answer', 'Accepted'] | ['s141537195', 's403696307'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 82] |
p02981 | u446628914 | 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()))\nif a[0]*a[1]>a[2]:\n print(a[2])\nelse:\n print(a[0]*a[1])\n', 'a=list(map(int,input().split()))\nprint(min(a[0]*a[1],a[2])\n ', 'a=list(map(int,input().split()))\nprint(min(a[0]*a[1],a[2]))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s315142859', 's886243198', 's717936159'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [83, 65, 59] |
p02981 | u450786783 | 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())\nmod = []\nfor i in range(l, min(r+1,l+2019)):\n mod.append(i % 2019)\nmod = sorted(list(mod))\nprint(mod[0] * mod[1])', 'n, a, b = map(int, input().split())\nprint(min(n*a, b))'] | ['Runtime Error', 'Accepted'] | ['s380142654', 's574099570'] | [2940.0, 2940.0] | [17.0, 17.0] | [149, 54] |
p02981 | u450956662 | 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())\nmod = 2019\n\nl = L // mod\nr = R // mod\n\nif l != r:\n print(0)\nelse:\n l_ = L % mod\n r_ = R % mod\n ans = 2019\n for i in range(l_, r_):\n for j in range(i+1, r_+1):\n a = i * j % mod\n ans = min(ans, a)\n if ans == 0:\n ... | ['Runtime Error', 'Accepted'] | ['s945286693', 's269418395'] | [3060.0, 9148.0] | [17.0, 29.0] | [373, 56] |
p02981 | u452269253 | 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? | ['price = list(map(int, input().rstrip().split()))\nprint(min(price[0]*price[1], price[2])', 'price = list(map(int, input().rstrip().split()))\nprint(min(price[0]*price[1], price[2]))'] | ['Runtime Error', 'Accepted'] | ['s533782507', 's742417482'] | [2940.0, 3064.0] | [17.0, 17.0] | [87, 88] |
p02981 | u453526259 | 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())\ngap = r-l\n\nvlist = []\nmini = 2019\nxlist = []\n\nfor x in range(gap+1):\n v = (l+x) % 2019\n vlist.append(v)\n\nmini = min(vlist)\nfor x in vlist:\n if v <= mini+1:\n xlist.append(x)\n \n\nxlist.sort()\n#print(vlist)\n\n#res = i*j % 2019\nprint((vlist[0]*vlis... | ['Runtime Error', 'Accepted'] | ['s707353129', 's653974253'] | [3064.0, 2940.0] | [17.0, 17.0] | [308, 82] |
p02981 | u456896733 | 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 itertools\n\na,b=map(int,input().split())\nX = [[int(i) for i in input().split()] for i in range(a)] \n\nc = list(itertools.combinations(X, 2))\n\n\nans = 0\n\nfor i in range(len(c)):\n d = 0\n for j in range(b):\n d += (c[i][0][j]-c[i][1][j])**2\n if j == b-1:\n d = math.sqrt(d)\n ... | ['Runtime Error', 'Accepted'] | ['s306222026', 's038693029'] | [3064.0, 2940.0] | [18.0, 17.0] | [374, 84] |
p02981 | u459233539 | 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))'] | ['Runtime Error', 'Accepted'] | ['s097344016', 's827949156'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 56] |
p02981 | u464912173 | 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(n*a if n*a >= b else b)', 'n, a, b = map(int, input().split())\n\nprint(n*a if n*a <= b else b)'] | ['Wrong Answer', 'Accepted'] | ['s763177509', 's930726072'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 66] |
p02981 | u465190009 | 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().split(" ")\nprint(N)\n\nif (int(N[0]) * int(N[1])) > int(N[2]):\n print(int(N[2]))\nelse:\n print(int(N[0])*int(N[1]))\n', 'N = input().split(" ")\n#print(N)\n\nif (int(N[0]) * int(N[1])) > int(N[2]):\n print(int(N[2]))\nelse:\n print(int(N[0])*int(N[1]))\n'] | ['Wrong Answer', 'Accepted'] | ['s878959155', 's265368002'] | [2940.0, 2940.0] | [17.0, 17.0] | [131, 132] |
p02981 | u466288389 | 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\n\nn,d = map(int,input().split())\nxy = [list(map(float,input().split())) for i in range(n)]\ncount = 0\nfor i in range(n):\n for j in range(i+1,n):\n dis=0\n for k in range(d):\n dis += (xy[i][k]-xy[j][k])**2\n dis = math.sqrt(dis)\n if dis.is_integer():\n count +=1\n \nprint(... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s359014677', 's393253658', 's693820302'] | [3064.0, 3060.0, 2940.0] | [18.0, 18.0, 17.0] | [310, 310, 72] |
p02981 | u474423089 | 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 main():\n l,r = map(int,input().split(' '))\n tmp = 2019\n if l//2019 < r//2019:\n print(0)\n else:\n for i in range(l,r):\n if tmp > (i*(i+1))%2019:\n tmp = (i*(i+1))%2019\n if tmp == 0:\n print(i,i+1)\n print(tmp)\n\nif... | ['Runtime Error', 'Accepted'] | ['s857675426', 's481881290'] | [3064.0, 2940.0] | [17.0, 17.0] | [340, 117] |
p02981 | u475598608 | 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())\nx = [list(map(int,input().split())) for _ in range(n)]\nans = 0\nfor i in range(n):\n\tfor j in range(i):\n\t\tans += (sum((a-b)**2 for a,b in zip(x[i],x[j]))**0.5).is_integer()\nprint(ans)', 'N,A,B=map(int,input().split())\nprint(min(N*A,B))'] | ['Runtime Error', 'Accepted'] | ['s343961810', 's510913424'] | [3064.0, 2940.0] | [19.0, 17.0] | [212, 48] |
p02981 | u477977638 | 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())\nsum=min(N*A,B)\nprint(sum)', 'N,A,B=map(int,input().split())\nsum=min(N*A,B)\nprint(sum)'] | ['Runtime Error', 'Accepted'] | ['s770036552', 's306976379'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 56] |
p02981 | u485566817 | 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)\nelse:\n print(A*B)', 'N, A, B = map(int, input().split())\nif N*A < B:\n print(N*A)\nelse:\n print(B)'] | ['Wrong Answer', 'Accepted'] | ['s502454539', 's207667981'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 81] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.