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 |
|---|---|---|---|---|---|---|---|---|---|---|
p03029 | u113255362 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,b=map(int,input().split())\nn = 3*a +b\nres = int(n/3)\nprint(res)', 'a,b=map(int,input().split())\nn = 3*a +b\nres = int(n/2)\nprint(res)'] | ['Wrong Answer', 'Accepted'] | ['s055476033', 's809908342'] | [8976.0, 9020.0] | [31.0, 27.0] | [65, 65] |
p03029 | u115110170 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int,input().split())\n\nprint(3*a//2)', 'a,p = map(int,input().split())\n\nprint((p+3*a)//2)\n'] | ['Wrong Answer', 'Accepted'] | ['s074400295', 's647882497'] | [2940.0, 2940.0] | [17.0, 17.0] | [45, 50] |
p03029 | u116233709 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['n,m=map(int,input().split())\ns=[list(map(int,input().split()))[1:] for i in range(m)]\np=list(map(int,input().split()))\ncnt=0\n\nfor i in range(2**n):\n pattern=format(i,"b").zfill(n)\n point=0\n \n for j in range(m):\n swi=0\n for k in s[j]:\n if pattern[k-1]=="1":\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s076749616', 's079545413', 's169980721', 's209010243', 's108247912'] | [3064.0, 2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [409, 79, 228, 49, 49] |
p03029 | u123745130 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,b=map(int,input().split())\nprint(3*(a+b)//2)', 'a,b=map(int,input().split())\nprint((3*a+b)//2)\n'] | ['Wrong Answer', 'Accepted'] | ['s139073320', 's914892986'] | [2940.0, 3064.0] | [17.0, 17.0] | [46, 47] |
p03029 | u135116520 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P=map(int,input())\nprint((A*3+P)//2)', 'A,P=map(int,input().split())\nc=(A*3+P)//2\nprint(c)'] | ['Runtime Error', 'Accepted'] | ['s908027023', 's731085708'] | [2940.0, 2940.0] | [17.0, 17.0] | [38, 50] |
p03029 | u135389999 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int,input())\nprint((a * 3 + p)//2)', 'a,p = map(int,input().split())\nprint((a * 3 + p)//2)\n'] | ['Runtime Error', 'Accepted'] | ['s379199586', 's055238396'] | [3064.0, 2940.0] | [17.0, 17.0] | [44, 53] |
p03029 | u141410514 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int,input().split())\nprint((3*a+p)//2))', 'N = int(input())\nB = []\nfor i in range(N):\n s,p = map(str,input().split())\n tmp = [i+1,s,int(p)]\n B.append(tmp)\nB.sort(key=lambda x:x[2],reverse=True)\nB.sort(key=lambda x:x[1])\nfor x in B:\n print(x[0])\n', 'a,p=map(int,input().split())\nprint((3... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s072484721', 's246802906', 's115533984'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 18.0] | [47, 214, 46] |
p03029 | u150664457 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['N, Q = map(int,input().split())\nList_S = [list(map(int,input().split())) for i in range(N)]\nList_D = [int(input()) for i in range(Q)]\n\nList_S.sort(key=lambda x:x[2])\n\nfor i in range(Q):\n flag = 0\n for j in range(N):\n if (List_S[j][0]-0.5 < (List_D[i] + List_S[j][2])) and ((List_D[i] + List_S[j][... | ['Runtime Error', 'Accepted'] | ['s594706869', 's604315128'] | [3064.0, 2940.0] | [17.0, 17.0] | [455, 91] |
p03029 | u151625340 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['N,K = map(int,input().split())\nV = list(map(int,input().split()))\nans = 0\nR = min(N,K)\nfor A in range(R+1):\n for B in range(R-A+1):\n s = V[:A]+V[N-B:]\n #print(s)\n s.sort()\n S = sum(s)\n for k in range(min(K-A-B,len(s))):\n if s[k] < 0:\n S -= s[... | ['Runtime Error', 'Accepted'] | ['s891418219', 's222121924'] | [3064.0, 2940.0] | [18.0, 17.0] | [344, 48] |
p03029 | u152006247 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = (int(i) for i in input().split())\nprint(a*3 // p)', 'a, p = (int(i) for i in input().split()) \nprint((a*3+p) // 2)'] | ['Runtime Error', 'Accepted'] | ['s394252628', 's562614758'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 62] |
p03029 | u153419200 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int,input().split())\nb=3*a+p\nif b%2==0:\n print(b/2)\nelse:\n print((b-1)/2)\n', 'a,p=map(int,input().split())\nb=3*a+p\nif b%2==0:\n print(b/2)\nelse:\n print((b-1)/2)', 'a,p=map(int,input().split())\nb=3*a+p\nif b%2==0:\n print(b//2)\nelse:\n print((b-1)//2)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s201212055', 's608852543', 's659058741'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [84, 83, 86] |
p03029 | u162612857 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, b = list(map(int, input().split()))\nprint((a*3+p)//2)', 'a, b = list(map(int, input().split()))\nprint((a*3+b)//2)'] | ['Runtime Error', 'Accepted'] | ['s446818352', 's354110338'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 56] |
p03029 | u172785970 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int,input().split())\nprint((a*3+2)//2)', 'a,p=map(int,input().split())\nprint((a*3+p)//2)'] | ['Wrong Answer', 'Accepted'] | ['s761155919', 's866421585'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 46] |
p03029 | u173374079 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['#!/usr/bin/python\n# coding: UTF-8\n \nn,m = map(int,input().split())\n \ns = []\nfor i in range(m):\n s += [tuple(map(int,input().split())),]\n \np = list(map(int,input().split()))\n \nret = 0\nall = [(str(bin(i)))[2:].zfill(n) for i in range(2 ** n)]\nall = [[int(i) for i in case] for case in all]\nfor case in a... | ['Runtime Error', 'Accepted'] | ['s607890843', 's247652723'] | [3064.0, 2940.0] | [18.0, 17.0] | [580, 104] |
p03029 | u174536291 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, b = list(map(int, input().split()))\nn = a * 3 + b\nc = n % 2\nmy_result = (n - c) / 2\nprint(my_result)', 'a, b = list(map(int, input().split()))\nn = a * 3 + b\nc = n % 2\nmy_result = (n - c) / 2\nprint(int(my_result))\n'] | ['Wrong Answer', 'Accepted'] | ['s911617478', 's046222267'] | [9064.0, 9160.0] | [29.0, 26.0] | [103, 109] |
p03029 | u174603263 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=int(input().split())\n\nprint(int((a*3+p)/2))', 'a,p=input().split()\n\nprint(int((a*3+p)/2))', 'a,p=map(int,input().split())\n\nprint(int((a*3+p)/2))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s191006023', 's404474735', 's521085674'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 19.0] | [47, 42, 51] |
p03029 | u175590965 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int,input().split())\nc = a*3+p\nprint(c % 2)', 'a,p = map(int,input().split())\nprint(((a*3)+p)%2)', 'a,p = map(int,input().split())\nprint((a*3+p)//2)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s102263581', 's188425180', 's764739276'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [53, 49, 48] |
p03029 | u181195295 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P = map(int,input.split())\n\nP += 3*A\nprint(P//2)', 'A,P = map(int,input().split())\n\nP += 3*A\nprint(P//2)\n'] | ['Runtime Error', 'Accepted'] | ['s134377731', 's054055085'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 53] |
p03029 | u181215519 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = int( x ) for x in input()\nprint( ( A * 3 + P ) // 2 )\n', 'A, P = int( x ) for x in input().split()\nprint( ( A * 3 + P ) // 2 )', 'A, P = map( int, input().split() )\nprint( ( A * 3 + P ) // 2 )'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s443349665', 's461274014', 's659931249'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [61, 68, 62] |
p03029 | u183200783 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input().split())\n\na = A*3 + P\n\nif a > 0:\n print(math.floor(a/2))\nelse:\n print(0)', 'A, P = map(int, input().split())\n\na = A*3 + P\n\nprint(math.floor(a/2))', 'A, P = map(int, input().split())\n\na = A*3 + P\n\nif a > 0:\n print(int(a/2))\nelse:\n print(0)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s120493935', 's440583233', 's505704847'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [98, 69, 92] |
p03029 | u185393907 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = map(int, input().split())\nprint(a*3/2)', 'a, p = map(int, input().split())\nprint((int)(a*3+p)/2)', 'a, p = map(int, input().split())\nprint((a*3+p)/2)', 'a, p = map(int, input().split())\nprint(int((a*3+p)/2))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s383685623', 's391627441', 's722070946', 's228946712'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [45, 54, 49, 54] |
p03029 | u185966380 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input().split())\nprint((A*3 + p)//2)', 'A, P = map(int, input().split())\nprint((A*3 + P)//2)'] | ['Runtime Error', 'Accepted'] | ['s675480995', 's456027299'] | [2940.0, 2940.0] | [17.0, 17.0] | [52, 52] |
p03029 | u187233527 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['N, K = map(int, input().split())\nd = list(map(int, input().split()))\nleft = [0]\nleft_m = []\nright = [0]\nright_m = []\nfor i, l, r in zip(range(K), d, d[::-1]):\n left.append(left[i] + l)\n left_m.append(l if l < 0 else 0)\n right.append(right[i] + r)\n right_m.append(r if r < 0 else 0)\npoint = 0\nfo... | ['Runtime Error', 'Accepted'] | ['s868813775', 's285063669'] | [3064.0, 2940.0] | [17.0, 17.0] | [504, 56] |
p03029 | u187606204 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P = map(int,input().split())\nprint(int((A*3*2+P)/2))', 'A,P = map(int,input().split())\nprint(int((A*3+P)/2))'] | ['Wrong Answer', 'Accepted'] | ['s198749640', 's874236905'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 52] |
p03029 | u196697332 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ["from collections import defaultdict\n\nN = int(input())\nS = [0] * N\nP = [0] * N\n\ncity_point = {}\n\nfor i in range(N):\n inp = input().split()\n S[i] = inp[0]\n P[i] = inp[1]\n city_point[i] = {'city': S[i], 'point': int(P[i])}\n \nsorted_list = sorted(city_point.items(), key=lambda x: (x[1]['city'... | ['Runtime Error', 'Accepted'] | ['s191955628', 's629890040'] | [3316.0, 2940.0] | [21.0, 17.0] | [372, 88] |
p03029 | u197300773 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['import heapq\nimport sys\nsys.setrecursionlimit(10 ** 7)\n\nn,q=map(int,input().split())\n\nevent=[]\nfor _ in range(n):\n s,t,x=map(int,input().split())\n event.append([s-x,1,x])\n event.append([t-x,-1,x])\n\nfor i in range(q):\n event.append([int(input()),2,i])\nevent.sort()\n\nans=[0]*q\n\nstop=set()\n... | ['Runtime Error', 'Accepted'] | ['s155021902', 's830553203'] | [3064.0, 2940.0] | [18.0, 18.0] | [601, 58] |
p03029 | u199347185 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ["def main():\n N = int(input())\n restaurants = []\n for i in range(N):\n si, pi = input().split()\n restaurants.append([i+1, si, int(pi)])\n cities = sorted(set([restaurant[1] for restaurant in restaurants]))\n\n for city in cities:\n same_cities = []\n for restaurant in res... | ['Runtime Error', 'Accepted'] | ['s202229248', 's101261062'] | [3064.0, 2940.0] | [17.0, 17.0] | [612, 141] |
p03029 | u200527996 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['#1107\nA, P = map(int, input().split())\nprint((A*3+P)/2)\n', 'from numpy import*\nn, m = map(int, input().split())\nl = []\nfor i in range(m):\n *a,=map(int,input().split())\n l.append(a[1:])\n*p,=map(int,input().split())\nans = 0\nfor t in range(2**n):\n for s in range(n):\n tmp = array([t >> s & 1]... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s164914203', 's965101470', 's688270384'] | [2940.0, 12484.0, 2940.0] | [17.0, 149.0, 17.0] | [56, 334, 80] |
p03029 | u201082459 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int,input().split())\nprint(((a * 3) + p) / 2)', 'a,p = map(int,input().split())\nprint(int(((a * 3) + p) / 2))'] | ['Wrong Answer', 'Accepted'] | ['s957666496', 's077699321'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 60] |
p03029 | u204904256 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int,input().split())\nprint((a+3*p)//2)', 'a,p = map(int,input().split())\nprint((3*a+p)//2)'] | ['Wrong Answer', 'Accepted'] | ['s236083880', 's305166021'] | [2940.0, 2940.0] | [18.0, 18.0] | [48, 48] |
p03029 | u207391881 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int, input().split())\nprint((a*3+p)/2)', 'a,p=map(int, input().split())\nprint(int((a*3+p)/2))'] | ['Wrong Answer', 'Accepted'] | ['s059659661', 's148450489'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 51] |
p03029 | u208497224 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a = int(input().split()[0])\np = int(input().split()[1])\n\ns = a * 3 + p\nprint(s // 2)', 'a = input().split()\nan = int(a[0])\np = int(a[1])\n\ns = an * 3 + p\nprint(s // 2)'] | ['Runtime Error', 'Accepted'] | ['s195679327', 's012927783'] | [2940.0, 2940.0] | [18.0, 17.0] | [84, 78] |
p03029 | u221041683 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['n = int(input())\ndic = {}\nfor x in range(n):\n dic[x+1] = input().split()\nls = sorted(dic.items(), key=lambda x:x[1][0])\n\nfor y in range(1,n-1):\n \n if ls[y][1][0] == ls[y+1][1][0]:\n \n if ls[y][1][1] < ls[y+1][1][1]:\n \n ls[y+1],ls[y] = ls[y],ls[y+1]\n \n \nfor b in range(len(ls)):\n... | ['Runtime Error', 'Accepted'] | ['s309971930', 's410284444'] | [3064.0, 2940.0] | [18.0, 17.0] | [320, 49] |
p03029 | u223904637 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['n,ki=map(int,input().split())\nv=list(map(int,input().split()))\n\nm=min(n,ki)\nans=0\n\nfor i in range(m+1):\n for j in range(i+1):\n q=[]\n tmp=0\n for k in range(j):\n if len(v)>0:\n q.append(v[k])\n for kz in range(i-j):\n if len(v)>0:\n ... | ['Runtime Error', 'Accepted'] | ['s133300771', 's017941092'] | [3064.0, 2940.0] | [17.0, 17.0] | [502, 46] |
p03029 | u227210643 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P=map(int(input().split()))\nprint(((A*3)+P)//2)', 'A,P=map(int,input().split())\nprint(((A*3)+P)//2)'] | ['Runtime Error', 'Accepted'] | ['s277117724', 's657862163'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 48] |
p03029 | u228232845 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ["from collections import defaultdict, deque\nimport sys\n\n\ndef LI(): return list(map(int, sys.stdin.buffer.readline().split()))\ndef I(): return int(sys.stdin.buffer.readline())\ndef LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()\ndef S(): return sys.stdin.buffer.readline().rstrip().decode... | ['Wrong Answer', 'Accepted'] | ['s041854486', 's313416515'] | [3316.0, 3316.0] | [20.0, 21.0] | [658, 658] |
p03029 | u231530807 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['\nN = int(input().strip())\n\n\ngrid = []\nfor i in range(N):\n array = list(input().strip().split())\n grid.append(array)\n grid[i][1]=int(grid[i][1])\nprint(grid)\nagrid=sorted(grid)\nfor i in range(N-1):\n if agrid[i][0]==agrid[i+1][0] and agrid[i][1]<agrid[i+1][1]:\n b=agrid[i+1]\n c=agrid[i]\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s679770890', 's941258911', 's265951073'] | [3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [394, 59, 74] |
p03029 | u231615655 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a=list(map(int,input().split()))\n\nprint((3*a_1+a_2)%2)', 'a=list(map(int,input().split()))\nb=(3*a[0]+a[1])//2\nprint(b)'] | ['Runtime Error', 'Accepted'] | ['s295441000', 's791991332'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 60] |
p03029 | u234904586 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = map(int, input().split())\napple = a*3 + p\nreturn int(apple/2)', 'a, p = map(int, input().split())\napple = a*3 + p\nreturn apple/2', 'a, p = map(int, input().split())\nprint(int((a*3 + p)/2))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s047362444', 's711893128', 's024992700'] | [2940.0, 3056.0, 2940.0] | [17.0, 18.0, 18.0] | [68, 63, 57] |
p03029 | u235066013 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=[int(i)for i in input().split()]\napple=a+p//3\nprint(apple//2)', 'a,p=[int(i)for i in input().split()]\napple=3*a+p\nprint(apple//2)'] | ['Wrong Answer', 'Accepted'] | ['s900715121', 's780999053'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 64] |
p03029 | u237656255 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = [int(a) for a in input().split()]\n\nc = 3 * a + p\n\nresult = int(p / 2)\n\nprint(result)', 'a, p = [int(a) for a in input().split()]\n\nc = 3 * a + p\n\nresult = int(c / 2)\n\nprint(result)'] | ['Wrong Answer', 'Accepted'] | ['s980521325', 's252213480'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 91] |
p03029 | u238084414 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input())\n\nprint(int((A*3+ P) //2))', 'A, P = map(int, input().split())\n\nprint(int((A*3+ P) //2))'] | ['Runtime Error', 'Accepted'] | ['s502374691', 's394691711'] | [2940.0, 2940.0] | [18.0, 17.0] | [50, 58] |
p03029 | u244836567 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,b=input().split()\na=int(a)\nb=int(b)\nprint(int(a*3+b)/2)', 'a,b=input().split()\na=int(a)\nb=int(b)\nprint(int((a*3+b)/2)', 'a,b=input().split()\na=int(a)\nb=int(b)\nprint(int((a*3+b)/2))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s051864572', 's739132555', 's282450007'] | [9140.0, 9004.0, 9116.0] | [30.0, 26.0, 30.0] | [57, 58, 59] |
p03029 | u248221744 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input().split())\nX = 3*A + P\nY = (3*A + P) % 2\nprint((X - Y)/2)', 'A, P = map(int, input().split())\nX = 3*A + P\nprint(int(X/2))'] | ['Wrong Answer', 'Accepted'] | ['s691558039', 's103496530'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 60] |
p03029 | u249218227 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = input().split()\nprint((a*3 + p) // 2)', 'a, p = input().split()\nptint((a*3 + p) // 2)', 'a, p = map(int, input().split())\nans = (a*3+p) // 2\nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s111934546', 's735558325', 's764085076'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [44, 44, 62] |
p03029 | u252964975 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['import math\nA,P=map(int, input().split())\nprint(math.floor((3*a+P)/2))', 'import math\nA,P=map(int, input().split())\nprint(math.floor((3*A+P)/2))'] | ['Runtime Error', 'Accepted'] | ['s358933507', 's204633247'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 70] |
p03029 | u253209284 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['print((lambda x,y:(x*3+y)//3)(*map(int, input().split())))', 'print((lambda x,y:(x*3+y)//2)(*map(int, input().split())))'] | ['Wrong Answer', 'Accepted'] | ['s864915033', 's332587827'] | [2940.0, 2940.0] | [17.0, 17.0] | [58, 58] |
p03029 | u253952966 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = map(int, input().split())\nprint((a * 3) // 2)', 'a, p = map(int, input().split())\nprint((a // 3) * 2)', 'a, p = map(int, input().split())\nprint((a*3 + p) // 2)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s906397121', 's962251335', 's051674175'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [52, 52, 54] |
p03029 | u256710795 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int,input().split())\nprint(3*a+p)', 'a,p=map(int,input().split())\nprint((3*a+p)//2)'] | ['Wrong Answer', 'Accepted'] | ['s116419091', 's173753318'] | [2940.0, 2940.0] | [17.0, 17.0] | [41, 46] |
p03029 | u261891508 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int,input().split())\nprint((a*3+p)/2)', 'a,p=map(int,input().split())\nprint((a*3+p)//2)'] | ['Wrong Answer', 'Accepted'] | ['s813780853', 's156835220'] | [2940.0, 2940.0] | [17.0, 17.0] | [45, 46] |
p03029 | u263347388 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['first=input()\n(A, P)=first.split()\nA=int(A)\nP=int(P)\nx=3*A\ny=(x+P)/2\nprint(y)', 'first=input()\n(A, P)=first.split()\nA=int(A)\nP=int(P)\nx=3*A\ny=(x+P)//2\nprint(y)'] | ['Wrong Answer', 'Accepted'] | ['s036971175', 's476422912'] | [2940.0, 2940.0] | [17.0, 18.0] | [77, 78] |
p03029 | u263734237 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int, input().split())\nparts = ((a*3)+p)\nprint(parts/2)', 'a,p = map(int, input().split())\nparts = ((a*3)+p)\nprint(parts//2)'] | ['Wrong Answer', 'Accepted'] | ['s380434829', 's209690754'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 65] |
p03029 | u265118937 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = map(int, input().split())\n\napple = 3 * a + b\npie = apple // 2\n\nprint(pie)', 'a, p = map(int, input().split())\n\napple = 3 * a + p\npie = apple // 2\n\nprint(pie)'] | ['Runtime Error', 'Accepted'] | ['s393894607', 's968408051'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 80] |
p03029 | u268181283 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['n=int(input())\nq=[input().split() + [i] for i in range(n)]\nfor i in range(n):\n q[i][1]=int(q[i][1])\nlist_point = sorted(q, key=lambda x:x[1], reverse=1)\nlist_city = sorted(list_point, key=lambda x:x[0], reverse=0)\nfor s,t,r in list_city:\n print(r+1)\n ', 'A, P = (int(i) for i in input().split()) \n\np... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s108083778', 's310417341', 's522402932', 's616445485', 's858445948'] | [3060.0, 2940.0, 2940.0, 2940.0, 3064.0] | [19.0, 17.0, 17.0, 17.0, 17.0] | [260, 62, 56, 60, 58] |
p03029 | u271752821 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['n = int(input())\ns_p_list = []\n\nfor i in range(n):\n s_p_list.append(input().split())\n s_p_list[i].append(i+1)\n\nresult = sorted(s_p_list, key=lambda x: (x[0], -int(x[1]))) \n\nfor i in result:\n print(i[2])', 'a, p = map(int, input().split())\nprint((a*3+p)//2)'] | ['Runtime Error', 'Accepted'] | ['s075516749', 's660628800'] | [3060.0, 2940.0] | [18.0, 17.0] | [231, 50] |
p03029 | u273186459 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int,input().split())\ns=a*3\nreuslt=(p+s)//2\n\nprint(result)', 'a,p=map(int,input().split())\nresult=(p+(a*3)) // 2\nprint(result)'] | ['Runtime Error', 'Accepted'] | ['s780848760', 's036869392'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 64] |
p03029 | u276204978 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = map(int(), input().split())\nprint(int((3*a+p)/2))', 'a, p = map(int(), input().split())\n\nans = (a * 3 + p) // 2\n\nprint("{}".format(ans))', "N = int(input())\na = []\nfor i in range(N):\n s, p = input().split()\n p = -int(p)\n a.append(s, p , i + 1)\n \na.sort()\n\nprint('\\n'.join(str(ai[2]) f... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s199798046', 's508813597', 's589746410', 's978652384', 's992427179', 's503388064'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3316.0] | [17.0, 17.0, 17.0, 18.0, 17.0, 19.0] | [56, 83, 168, 49, 63, 54] |
p03029 | u277104886 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = map(int, input().split())\nprint((a*3+p)//3)', 'a, p = map(int, input().split())\nprint((a*3+p)//2)\n'] | ['Wrong Answer', 'Accepted'] | ['s519738231', 's529735308'] | [9064.0, 9008.0] | [31.0, 29.0] | [50, 51] |
p03029 | u277920185 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int, input().split())\nprint(a*3+p//2)', 'a, p = map(int, input().split())\npie = (a*3+p / 2)\nprint(int(pie))', 'a, p = map(int, input().split())\nprint(a*3+p//2)', 'a,b=input().split()\n\napple_peace = int(a) * 3\ntotal_peace = int(b) + int(apple_peace)\n\nif total_peace > 1:\n pie = total_peace / 2\n pri... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s202080013', 's354753274', 's805769959', 's847297522', 's861558194', 's448958912'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 9092.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 26.0] | [45, 66, 48, 143, 44, 49] |
p03029 | u281733053 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,b = map(int,input().split())\nprint(int((a*3+b)/3))', 'a,b = map(int,input().split())\nprint(int((a*3+b)/2))'] | ['Wrong Answer', 'Accepted'] | ['s837216865', 's161482355'] | [2940.0, 2940.0] | [17.0, 17.0] | [52, 52] |
p03029 | u282652245 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['import numpy as np\n\n', '\n\nimport numpy as np\n\n\n# In[0] = A, [1] = P\nIn = list(map(int, input().split()))\n\nA = In[0]\nP = In[1]\n\npiece = 3*A + P\npie = int(piece/2)\n\nprint(pie)\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s370603686', 's499041690'] | [12424.0, 22124.0] | [152.0, 1482.0] | [20, 240] |
p03029 | u282707041 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int,input().split())↲\nprint(int((a*3+p)/2))\n', 'a,b=map(int,input().split())↲\nd=0\nc=a*3\nif c>=1:\n d=(c+b)//2\nelif c==0 and b>1:\n d=b//2\nprint(d)↲\n', 'a,b=int(input().split())↲\nc=a*3\nd=c+d/2\n\nprint(d)↲', 'a,b=map(int,input().split())↲\nc=a*3\nd=c+d/2\nprint(d)↲', 'a,b=map(int,input().split())↲\... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s111396766', 's234109800', 's242934610', 's270492085', 's346467328', 's433803449', 's670471931', 's734284727', 's759318327', 's888878904', 's935888315', 's963616118', 's950866458'] | [2940.0, 2940.0, 2940.0, 3192.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 19.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [54, 104, 54, 57, 107, 58, 74, 53, 74, 102, 105, 102, 106] |
p03029 | u283751459 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a、b= map(int,input().split())\napple_pie = (a*3 + b) //2\nprint(apple_pie)', 'a,b = map(int,input().split())\napple_pie = (a*3 + b) //2\nprint(apple_pie)\n'] | ['Runtime Error', 'Accepted'] | ['s726574973', 's302086045'] | [8948.0, 9076.0] | [23.0, 25.0] | [74, 74] |
p03029 | u284363684 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['# input\nA, P = map(int, input().split())\nprint(3 * A + P // 2)', '# input\nA, P = map(int, input().split())\nprint((3 * A + P) // 2)'] | ['Wrong Answer', 'Accepted'] | ['s081969259', 's066157675'] | [2940.0, 2940.0] | [17.0, 17.0] | [62, 64] |
p03029 | u287431190 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int, input().split())\nb = a*2+p\nprint(b//2)', 'a,p = map(int, input().split())\nb = a*2+p\nprint(b%2)', 'a,p = map(int, input().split())\nb = a*3+p\nprint(b//2)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s148746187', 's466223115', 's699113753'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [53, 52, 53] |
p03029 | u287500079 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['\na,p = [int(i) for i in input().split()]\nprint(int(a * 3 + p))', '\na,p = [int(i) for i in input().split()]\nprint(int(int(a * 3 + p) / 2))'] | ['Wrong Answer', 'Accepted'] | ['s605912827', 's049707011'] | [2940.0, 3316.0] | [17.0, 20.0] | [112, 121] |
p03029 | u289288647 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['def main():\n\n N = int(input())\n if 0 > N or N > 100:\n print("input N error")\n exit()\n \n a = []\n for i in range(N):\n b = input().split()\n if len(b[0]) > 10 or len(b[0]) < 1:\n print("input S error")\n exit()\n\n if int(b[1]) < 0 or i... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s247070174', 's412338631', 's381704163'] | [3184.0, 3064.0, 2940.0] | [18.0, 17.0, 17.0] | [1307, 1157, 205] |
p03029 | u298413997 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input().split())\nprint((int((3*A)+P)/2))\n', 'A, P = map(int, input().split())\nprint(int(((3*A)+P)/2))\n'] | ['Wrong Answer', 'Accepted'] | ['s914587674', 's859624959'] | [2940.0, 2940.0] | [17.0, 17.0] | [57, 57] |
p03029 | u306070611 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, B = map(int, input().split())\nkakera = A + B\nprint(int(kakera/3))', 'A, B = map(int, input().split())\nkakera = A*3 + B\nprint(int(kakera/3))', 'A, B = map(int, input().split())\nkakera = A*3 + B\nprint(int(kakera/2))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s640875589', 's698650005', 's146849299'] | [3064.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [68, 70, 70] |
p03029 | u312821683 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['N = int(input())\n\nmy_list = []\n\nfor i in range(N):\n sp = input().split()\n sp[1] = int(sp[1])\n sp.insert(0, i+1)\n \n my_list.append(sp)\n \nmy_list.sort(key = lambda x: x[2], reverse=True)\nmy_list.sort(key = lambda x: x[1])\n\nfor i in my_list:\n print(i[0])', 'A, P = map(int,input().spli... | ['Runtime Error', 'Accepted'] | ['s004804585', 's970249211'] | [9080.0, 9160.0] | [28.0, 30.0] | [272, 143] |
p03029 | u314050667 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['n = int(input())\nbook=[]\nfor i in range(n):\n a,b=input().split()\n temp=[a,int(b),i+1]\n book.append(temp)\n\nbook.sort(key=lambda x:x[0])\nbook.sort(key=lambda x:x[1])\n\nfor j in range[len(book)]:\n print(book[j][3])', 'a, p = map(int, input().split())\n\nprint(((a * 3) + p) // 2)'] | ['Runtime Error', 'Accepted'] | ['s586618049', 's153481159'] | [3064.0, 2940.0] | [17.0, 17.0] | [222, 59] |
p03029 | u315354220 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input().split())\n\nprint((3A + P)//2)', 'A, P = map(int, input().split())\n\nprint((3*A + P)//2)'] | ['Runtime Error', 'Accepted'] | ['s419849979', 's775815263'] | [2940.0, 2940.0] | [17.0, 17.0] | [52, 53] |
p03029 | u315392164 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['n = int(input())\na = []\nfor i in range(n):\n s, p = input().split()\n p = int(p)\n a.append((s, -int(p), i))\na.sort()\n\nfor _, _, i in a:\n print(i + 1)', 'n = int(input())\na = []\nfor i in range(n):\n s, p = input().split()\n a.append((s, -int(p), i))\na.sort()\n\nfor _, _, i in a:\n print(... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s345172911', 's518052216', 's069136017'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [159, 144, 63] |
p03029 | u316240682 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['goukei = input("数値を入力:").split()\napple = int(goukei[0])\npiece = int(goukei[1])\n\nmaxpiece = apple * 3 + piece\npie = maxpiece / 2\n\nprint(int(pie))', 'goukei = input().split()\napple = int(goukei[0])\npiece = int(goukei[1])\n\nmaxpiece = apple * 3 + piece\npie = maxpiece / 2\n\nprint(int(pie))'] | ['Wrong Answer', 'Accepted'] | ['s930696496', 's246191517'] | [2940.0, 2940.0] | [24.0, 17.0] | [154, 136] |
p03029 | u316401642 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['n = int(input())\nl = []\nfor i in range(n):\n s, p = input().split()\n l.appen([s, -int(p), i + 1])\n\nl.sort()\nfor i in l:\n print(i[2])', 'a, p = list(map(int,input().split()))\n\nans = (a * 3 + p) // 2\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s429899126', 's735258104'] | [3064.0, 2940.0] | [17.0, 17.0] | [140, 73] |
p03029 | u319805917 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P=map(int,input().split())\nap=A*3+P\nprint(ap//P)', 'A,P=map(int,input().split())\nap=A*3+P\nprint(ap//2)'] | ['Runtime Error', 'Accepted'] | ['s954387904', 's144141658'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 50] |
p03029 | u320763652 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int, input().split())\n\ncnt = a * 3\n\nprint(int(cnt/2))', 'a,p = map(int, input().split())\n\ncnt = a * 3\n\nprint(int(cnt/p))', 'a,p = map(int, input().split())\n\n# a,p = map(int, "1 3".split())\n\n\ncnt = a * 3 + p\n\nprint(int(cnt/2))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s752031729', 's977165397', 's775999445'] | [2940.0, 2940.0, 3060.0] | [18.0, 17.0, 17.0] | [63, 63, 101] |
p03029 | u327532412 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input())\nprint((A*3+P)//2)', 'A, P = map(int, input().split())\nprint((A*3+P)//2)\n'] | ['Runtime Error', 'Accepted'] | ['s819439300', 's462547764'] | [2940.0, 2940.0] | [17.0, 17.0] | [42, 51] |
p03029 | u329058683 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['def main(a,p):\n b=(a*3+p)/3\n return b', 's = input().split()\nt=int(s[0])*3+int(s[1])\nprint(t/3)', 's = input().split()\nt=int(s[0])*3+int(s[1])\nprint(t//3)', 'a,b=map(int,input().split())\nprint((a*3+b)//2)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s062971434', 's474111737', 's739515931', 's029087688'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 19.0] | [39, 54, 55, 46] |
p03029 | u329143273 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P=map(int,input().split())\nprint(((A*3)//2 + b//2) + (((A**3)%2 + b%2)//2))', 'A,P=map(int,input().split())\nprint(((A*3)//2 + P//2) + (((A*3)%2 + P%2)//2))'] | ['Runtime Error', 'Accepted'] | ['s423039275', 's361493600'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 76] |
p03029 | u329407311 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P = map(int,input().split())\n\nif ( A * 3 + P ) % 2 == 0:\n print(( A * 3 + P ) / 2 )\nelse:\n print( int(( A * 3 + P - 1) / 2 ))', 'A,P = map(int,input().split())\n\n\nfor i in range(10**111111):\n a =0\n\nif ( A * 3 + P ) % 2 == 0:\n print(int( ( A * 3 + P ) / 2 ))\nelse:\n print( int(( A * 3 + P - 1) / 2 )... | ['Wrong Answer', 'Time Limit Exceeded', 'Accepted'] | ['s324301387', 's937776158', 's434894305'] | [2940.0, 3188.0, 3316.0] | [17.0, 2104.0, 21.0] | [129, 172, 65] |
p03029 | u329455846 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['N = int(input())\nrest = {}\ncities = []\nfor i in range(N):\n k,s = input().split()\n if k not in rest:\n rest[k] = []\n cities.append(k)\n rest[k].append([int(s),i+1])\nprint(sorted(rest))\ncities = cities.sort()\nfor k in cities:\n rest[k].sort(reverse = True)\n for i in rest[k]:\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s080442706', 's450923204', 's501155690', 's562750515', 's672605126'] | [3064.0, 3064.0, 3064.0, 3060.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 20.0] | [319, 310, 310, 290, 55] |
p03029 | u330314953 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int,input().split())\nprint(int(a*3+p)/2)\n', 'a,p = map(int,input().split())\nprint(int((a*3+p)/2))'] | ['Wrong Answer', 'Accepted'] | ['s352826414', 's106873458'] | [3316.0, 2940.0] | [21.0, 17.0] | [51, 52] |
p03029 | u333731247 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P=map(int,input().split())\n\nprint((A*3+P)/2)', 'A,P=map(int,input().split())\n\nprint(int((A*3+P)/2))'] | ['Wrong Answer', 'Accepted'] | ['s234007771', 's843837743'] | [3064.0, 2940.0] | [17.0, 17.0] | [46, 51] |
p03029 | u339550873 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ["#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\nN, M = [int(x) for x in input().split()]\n\nS =[]\nfor j in range (M):\n a = [x for x in input().split()]\n k = a[0]\n s = [int(x) for x in a[1:]]\n S.append(s)\nP = [int(x) for x in input().split()]\nans = 0\nfor i in range (2**N):\n n = format(i,'b').... | ['Runtime Error', 'Accepted'] | ['s107473584', 's468315570'] | [3064.0, 3060.0] | [17.0, 17.0] | [576, 142] |
p03029 | u340952887 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input().split())\n\nprint((A*3 + P) / 2)\n', 'A, P = map(int, input().split())\npie = ((A * 3) + P) // 2\nprint(pie)\n'] | ['Wrong Answer', 'Accepted'] | ['s036019429', 's861203191'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 69] |
p03029 | u341736906 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['import sys\ninput = sys.stdin.readline\nA=int(input())\nP=int(input())\nif A%2==0:\n A=A*3/2\n print(A+P)\nelse:\n A=(A*3+P)/2\n print(A)', 'import sys\ninput = sys.stdin.readline\na,p = map(int,input().split())\nprint((a*3+p)//2)'] | ['Runtime Error', 'Accepted'] | ['s037131644', 's931445671'] | [3060.0, 2940.0] | [17.0, 17.0] | [132, 86] |
p03029 | u342502598 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p=map(int,input().split())\nx=a+p\nprint(x//2)', 'a,p=map(int,input().split())\nx=3*a+p\nprint(x//2)'] | ['Wrong Answer', 'Accepted'] | ['s415993716', 's972955237'] | [2940.0, 2940.0] | [17.0, 18.0] | [46, 48] |
p03029 | u347545486 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int, input().split())\nprint((a*3 + p)%2)\n', 'a,p = map(int, input().split())\nprint((a*3 + p)//2)'] | ['Wrong Answer', 'Accepted'] | ['s730992579', 's595219034'] | [3316.0, 2940.0] | [21.0, 17.0] | [51, 51] |
p03029 | u355154595 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | [' a,b=map(int,input().split())\nprint((3a+b)//2)\n', ' a,b=map(int,input())\nprint((3a+b)//2)', ' a,b=map(int,input().split())\nprint((3*a+b)//2)\n', ' a,b=map(int,input().split())\nprint((3*a+b)//2)\n', ' a,b=map(int,input())\nprint((3*a+b)//2)\n', 'a,b=map(int,input().split())\nprint((3*a+b)//2)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s323258068', 's427876100', 's447173087', 's679038476', 's955328863', 's272376152'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [47, 38, 48, 48, 40, 47] |
p03029 | u360090862 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,P=[int(i) for input().split()]\nprint((A//3+P)//2)', 'A,P=[int(i) for i in input().split()]\nprint((A//3+P)//2)', 'A,P=[int(i) for i in input().split()]\nprint((A*3+P)//2)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s693732935', 's767581465', 's551498746'] | [2940.0, 2940.0, 2940.0] | [20.0, 17.0, 17.0] | [51, 56, 55] |
p03029 | u364061715 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = input().split()\nP += A*3\nprint(P//2)', 'A, P = map(int,input().split())\nP += A*3\nprint(P//2)'] | ['Runtime Error', 'Accepted'] | ['s207771326', 's661487511'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 52] |
p03029 | u364642100 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A, P = map(int, input().input())\nprint((A * 3 + P)//2)', 'A, P = map(int, input().split())\nprint((A * 3 + P)//2)\n'] | ['Runtime Error', 'Accepted'] | ['s735376738', 's625003093'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 55] |
p03029 | u365243017 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,b=map(int,input().split())\nc=a*3\nd=c+b\ne=d//2\nprint("e")\n', 'a,b=map(int,input().split())\nc=a*3\nd=c+b\ne=d//2\nprint(e)\n'] | ['Wrong Answer', 'Accepted'] | ['s699114591', 's704584056'] | [2940.0, 2940.0] | [17.0, 17.0] | [59, 57] |
p03029 | u367130284 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['import sys;input=sys.stdin.readline\nfrom bisect import*\n\nn,q=map(int,input().split())\nevent=[]\nstopped=set([-1])\n\ndef doevent(l):\n global stopped\n if l[1]==1:\n if stopped=={-1}:\n stopped=set()\n stopped.add(l[2])\n elif l[1]==-1:\n if l[2] in stopped:\n s... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s109066972', 's793287625', 's350748936'] | [3064.0, 3064.0, 2940.0] | [18.0, 18.0, 18.0] | [875, 904, 46] |
p03029 | u369338402 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['import math\na,p=map(int.input().split())\np=p+a*3\nprint(math.floor(p/3))', 'import math\na,p=map(int,input().split())\np=p+a*3\nprint(int(math.floor(p/3)))', 'import math\na,p=map(int,input().split())\np=p+a*3\nprint(math.floor(p/3))', 'import math\na,p=map(int,input().split())\np=p+a*3\nprint(int(math.floor(p/2)))... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s253072832', 's581078606', 's609309747', 's226636496'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [71, 76, 71, 76] |
p03029 | u370429695 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a,p = map(int,input().split()\nprint(int((a*3+p)/2))', 'a,p = map(int,input().split()\nprint((a*3+p)/2', 'a,p = map(int,input().split())\nprint((a*3+p)//2)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s756325990', 's951546130', 's809968188'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [51, 45, 48] |
p03029 | u371409687 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['A,B=map(int,input().split())\nprint((3*A+B)//3)', 'A,B=map(int,input().split())\nprint((3*A+B)//2)'] | ['Wrong Answer', 'Accepted'] | ['s029593808', 's906485460'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 46] |
p03029 | u373047809 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, p = map(int, input().split())\nprint((a**3 + p) // 2)', '#!/usr/bin/env python3\na, p = map(int, input().split())\nprint((a*3+p)//2)'] | ['Wrong Answer', 'Accepted'] | ['s325433766', 's925810083'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 73] |
p03029 | u379136995 | 2,000 | 1,048,576 | We have A apples and P pieces of apple. We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan. Find the maximum number of apple pies we can make with what we have now. | ['a, b=map(int,input().split()) \nprint((a*3+b)/2)', 'a,b=map(int,input().split())\nb+=a*3\nprint(b//2)'] | ['Wrong Answer', 'Accepted'] | ['s770249474', 's520065906'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 47] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.