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
u635540732
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())\nz = a*3+p\nif z % 2 == 0:\n print(z/2)\nelse:\n print((z-1)/2)\n', 'a,p = map(int,input().split())\nz = a*3+p\nif z % 2 = 0:\n print(z/2)\nelse:\n print((z-1)/2)', 'a,p = map(int,input().split())\nz = a*3+p\nif z % 2 = 0:\n print(int(z/2))\nelse:\n print(int((z-1)/2))\n', 'a,p = ...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s069341873', 's155596618', 's337493191', 's583644153']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[92, 90, 101, 103]
p03029
u636775911
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.
['#coding:utf-8\nd=[int(i) for i in input().split()]\nprint(int(answer=(d[0]*3+d[1])/2))\n', '#coding:utf-8\nd=[int(i) for i in input().split()]\nprint(int((d[0]*3+d[1])/2))']
['Runtime Error', 'Accepted']
['s213703542', 's457561718']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 77]
p03029
u637824361
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((3A+P)//2)', 'A, P = map(int,input().split())\nprint((3*A+P)//2)']
['Runtime Error', 'Accepted']
['s463651561', 's860010804']
[2940.0, 2940.0]
[17.0, 18.0]
[48, 49]
p03029
u639426108
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)/2))', 'a, p = map(int, input().split())\nb = a * 3 + p\nprint(int(b/2))']
['Wrong Answer', 'Accepted']
['s399143832', 's913808064']
[2940.0, 2940.0]
[18.0, 17.0]
[52, 62]
p03029
u641804918
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())\n\nsum = a*3 + b\n\np = sum/2\n\nprint(p)', 'a,b = map(int, input().split())\n\nsum = a*3 + b\n\np = sum/2\n\nprint(p)', 'import math\n\na,b = map(int, input().split())\n \nsum = a*3 + b\np = sum/2\nprint(math.floor(p))\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s845633919', 's929809235', 's985917654']
[2940.0, 3316.0, 2940.0]
[17.0, 21.0, 17.0]
[67, 67, 92]
p03029
u650236619
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,\u3000p=map(int,input().split())\nans=(a*3+b)//2\nprint(ans)\n', 'a,p=map(int,input().split())\nans=(a*3+b)//2\nprint(ans)\n', 'a,p=map(int,input().split())\nans=(a*3+p)//2\nprint(ans)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s429084352', 's921229390', 's592880719']
[3188.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[58, 55, 55]
p03029
u652656291
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())\nif 3*a+b < 2:\n print(0)\nelif (3*a+b) % 2 == 0:\n print((3*a+b)//2)\nelse:\n print((3*a+b-1)//2)', 'a, p = map(int, input().split())\nprint((a * 3 + p) // 2)\n']
['Runtime Error', 'Accepted']
['s348970134', 's608231065']
[2940.0, 2940.0]
[17.0, 17.0]
[126, 57]
p03029
u656845405
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.
['\nimport copy\n\nclass MyClass():\n\n maxSum = 0\n\n def do(self, baseList, _temochi, leftIndex, rightIndex, nokoriSousaCount):\n if nokoriSousaCount < 0:\n return\n\n sum = 0\n for each in _temochi:\n sum += each\n\n if self.maxSum < sum:\n self.maxS...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s045192464', 's146007110', 's355469006', 's382287482']
[3700.0, 2940.0, 2940.0, 2940.0]
[32.0, 17.0, 17.0, 17.0]
[1344, 103, 79, 104]
p03029
u658697703
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()\n\nprint( (A*3+P) / 2)', 'stdin = list(map(int, input().split()))\n\nprint(int((stdin[0]*3+stdin[1]) / 2))']
['Runtime Error', 'Accepted']
['s739653782', 's935401470']
[2940.0, 2940.0]
[18.0, 17.0]
[43, 78]
p03029
u659563289
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 a, p = map(int,input().split())\n a = a * 3\n b = a / 2\n print(a + p)\n\nmain()', 'def main():\n a, p = map(int,input().split())\n a = a * 3\n piece = a + p\n ans = int(piece / 2)\n print(ans)\n\nmain()\n']
['Wrong Answer', 'Accepted']
['s158915660', 's238248389']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 128]
p03029
u663014688
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().suplit())\n\nkakera = 3 * a + p\npie = kakera // 2\nprint(pie)', 'a, p = map(int, input().split())\n\nkakera = 3 * a + p\npie = kakera // 2\nprint(pie)']
['Runtime Error', 'Accepted']
['s836558926', 's290619690']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 81]
p03029
u663438907
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 + P\n\nif APPLE % 2 = 0:\n ans = APPLE/2\nelse:\n ans = (Apple-1)/2', 'A, P = map(int, input().split())\n\nAPPLE = 3*A + P\n\nif APPLE % 2 = 0:\n ans = APPLE/2\nelse:\n ans = (Apple-1)/2\n\nprint(ans)', 'A, P = map(int, input().split())\n\nApple = 3*A + P\n\nif Appl...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s173865937', 's178298664', 's179300132', 's426103741']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[110, 122, 128, 131]
p03029
u665572011
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\nlist = []\nfor i in range(N):\n s, p = input().split()\n P = 100 - int(p)\n list.append((s,P,i+1))\n\nlist.sort()\n\nfor a in list:\n print(a[2])\n ', 'a, p = map(int, input().split())\n\nre = int((a*3 + p) / 2)\n\nprint(re)']
['Runtime Error', 'Accepted']
['s365185086', 's958575391']
[2940.0, 2940.0]
[17.0, 17.0]
[182, 68]
p03029
u667694979
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)', 'A,P=map(int,input().split())\nprint((3*A+P)//2)']
['Wrong Answer', 'Accepted']
['s492469900', 's068740817']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 46]
p03029
u667978773
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=3*a+p\nif s%2==0:\n print(s/2)\nelse:\n print((s-1)/2)', 'a,p=map(int,input().split())\ns=3*a+p\nif s%2==0:\n print(int((s/2)))\nelse:\n print(int(((s-1)/2)))']
['Wrong Answer', 'Accepted']
['s185941934', 's913114966']
[3060.0, 2940.0]
[19.0, 18.0]
[83, 97]
p03029
u668503853
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())\nlist=[]\nfor i in range(n):\n s,p=input().split()\n list.append((s, -int(p), i+1))\nlist.sort()\nfor s,p,i in list:\n print(i)', 'a,p = map(int,input().split())\nprint((3*a+p)//2)']
['Runtime Error', 'Accepted']
['s195768508', 's424721118']
[2940.0, 2940.0]
[17.0, 17.0]
[138, 48]
p03029
u669787859
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.
['if __name__ == \'__main__\':\n A, P = map(int, input().split(" "))\n pieces = 3 * A + P\n apple_pi = pieces // 2\n \n print(pieces)', "if __name__ == '__main__':\n A, P = map(int, input().split())\n pieces = 3 * A + P\n apple_pi = pieces // 2\n \n print(pieces)", "if __name__ == '__main__':\n A, P = map(in...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s029816456', 's925669088', 's597635822']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[129, 126, 128]
p03029
u672898046
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*2+p)//2))', 'a, p = map(int, input().split())\nprint(int((a*3+p)/2))']
['Wrong Answer', 'Accepted']
['s359141556', 's568145369']
[2940.0, 2940.0]
[18.0, 17.0]
[55, 54]
p03029
u673872744
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\nimport matplotlib.pyplot as plt\n\ndef main():\n\tprint(\'Input A\')\n\ta = int(input())\n\tprint(\'Input P\')\n\tp = int(input())\n\n\ttips = a * 3 + p\n\tpie = int(tips / 2)\n\n\tprint("output\\n"+str(pie))\n\n\nif __name__ == \'__main__\':\n\tmain()', "import numpy as np\nimport matplotlib.pypl...
['Runtime Error', 'Runtime Error', 'Accepted']
['s620688405', 's991739974', 's630096057']
[12508.0, 12508.0, 2940.0]
[149.0, 150.0, 17.0]
[241, 188, 76]
p03029
u675073679
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())\nP = int(input())\nB = 3*A + P\n\nprint(int(B/2))', 'A = int(input())\nP = int(input())\nB = 3*A + P\n\nprint(int(B/3))', 'A = int(input())\nP = int(input())\nB = 3*A + P\n\nprint(int(B // 2))', 'A,P = map(int,input().split())\nprint((3*A + P) // 2)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s112364479', 's613687956', 's985681213', 's052840332']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[62, 62, 65, 52]
p03029
u676458682
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 _ in range(M)]\nP=list(map(int,input().split()))\na=0\nfor n in range(2**N):\n s_count=0\n for j,s in enumerate(S):\n count=0\n for t in s:\n if n &(1<<t):\n count|=1<<t\n s_count^=count\n ...
['Runtime Error', 'Accepted']
['s920694020', 's314019597']
[3064.0, 2940.0]
[17.0, 17.0]
[401, 46]
p03029
u676496404
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 java.util.Scanner;\nclass Main{\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int P = scanner.nextInt();\n int ans = (A*3+P)/2;\n System.out.println(ans);\n }\n}', 'A,P = map(int,input().split())\npr...
['Runtime Error', 'Accepted']
['s357868321', 's138960548']
[2940.0, 2940.0]
[17.0, 17.0]
[271, 52]
p03029
u681444474
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=int((a*3+b)/2)\n\nprint(n)', 'a,b=map(int,input().split())\nn=int((a*3+b)/2)\n \nprint(n)']
['Runtime Error', 'Accepted']
['s298556652', 's208269880']
[2940.0, 2940.0]
[17.0, 17.0]
[55, 56]
p03029
u687443343
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())\ngoukei=3*A+B\nprint(int(goukei/2))', 'A,B =map(int,input().split())\ngoukei=3*A+B\nprint(int(goukei/2))']
['Runtime Error', 'Accepted']
['s161728820', 's755093548']
[2940.0, 2940.0]
[17.0, 17.0]
[62, 63]
p03029
u687929074
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+p)/2)', 'a, p = map(int,input().split())\nans = (a * 3 + p) // 2\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s813794032', 's529111820']
[2940.0, 2940.0]
[17.0, 17.0]
[49, 66]
p03029
u688055251
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())\np=int(input())欠片\nc=a*3\nb=(c+p)//2\nprint(b)\n', 'a=int(input())\np=int(input())\nc=a*3\nb=(c+p)/2\nprint(b)', 'a,p=int(input().split())\nc=a*3\nb=(c+p)//2\nprint(b)\n', 'a,p=map(int,input().split())\nc=a*3\nb=(c+p)//2\nprint(b)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s066498404', 's356843424', 's553185162', 's564377026']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[82, 54, 51, 55]
p03029
u688319022
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', 'A,P=map(int,input().split())\nprint((3*A+P)//2)\n']
['Runtime Error', 'Accepted']
['s167735681', 's309546909']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 47]
p03029
u688375653
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,inqut().sprit())\nprint((3*a+p)//2)', 'a,p = map(int,input().split())\nprint((3*a+p)//2)']
['Runtime Error', 'Accepted']
['s587306239', 's987450492']
[2940.0, 2940.0]
[18.0, 18.0]
[46, 48]
p03029
u691896522
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((3 * a + p) / 2)', 'a, p = list(map(int,input().split()))\nprint(int(((3 * a + p) / 2)))\n']
['Runtime Error', 'Accepted']
['s136248760', 's456585957']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 68]
p03029
u692311686
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())\nif (3*A+P)/2==0: print(int((3*A+P)/2))\nelse: print(int((3*A+P-1)/2))', 'A,P=map(int, input().split())\nif (3*A+P)/2==0: print((3*A+P)/2)\nelse: print(int((3*A+P-1)/2))', 'A,P=map(int, input().split())\nif (3*A+P)%2==0: print(int((3*A+P)/2))\nelse: print(int((3*A+P-1)/2))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s638161800', 's920711432', 's957518913']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[98, 93, 98]
p03029
u696469748
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())\nprint((A*3+P)/2)', 'A, P = map(int, input().split())\nprint((A*3+P)//2)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s170939696', 's447748927', 's282399073']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[50, 49, 50]
p03029
u698064859
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 itertools\n\n\nN, M = map(int, input().split())\nconnected_switches = [[int(x) - 1 for x in input().split()[1:]] for x in range(M)]\nconditions = list(map(int, input().split()))\n\nis_ok = 0\nfor patterns in itertools.product((0, 1), repeat=M):\n patterns = list(patterns)\n on_light = 0\n for i, light...
['Runtime Error', 'Accepted']
['s392598806', 's439890474']
[3064.0, 2940.0]
[17.0, 17.0]
[592, 69]
p03029
u702213338
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(input().split())\nanswer = int((A*3+P)/2)\nprint(answer)', 'A,P =(int(x) for x in input().split())\nanswer = int((A*3+P)/2)\nprint(answer)\n']
['Runtime Error', 'Accepted']
['s413896676', 's635276559']
[2940.0, 2940.0]
[17.0, 17.0]
[62, 77]
p03029
u712868001
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) % 2\nprint(B)', 'A,P= map(int, input().split())\nprint((3*A+P)%2))\n', 'A,P= map(int, input().split())\nprint((3*A+P) // 2)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s122925481', 's795691663', 's009987604']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[53, 49, 50]
p03029
u712905108
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.
["line = input().split(' ')\na = int(line[0])\np = int(line[1])\nn = (a*2 + p)//2\nprint(n)\n", "line = input().split(' ')\na = int(line[0])\np = int(line[1])\nn = (a*3 + p)//2\nprint(n)"]
['Wrong Answer', 'Accepted']
['s580697363', 's953727924']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 85]
p03029
u716922016
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().split())\n\nnum1 = ( n[0] * 3 + n[1] ) // 2\n\nprint(num1)', 'n = int(input().split())\n\nnum1 = ( int(n[0]) * 3 + int(n[1]) ) // 2\n\nprint(num1)', 'n =input().split()\n\nnum1 = ( int(n[0]) * 3 + int(n[1])) // 2\n\nprint(num1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s484370533', 's490096331', 's525151732']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[71, 81, 74]
p03029
u718177299
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((3*A+P)/2)', 'A,P = input().split()\nprint((3*A+P)/2)\n', 'A, P = input().split()\nB = 3 * A + P\nprint(B/2)\n', 'A, P = input().split()\nprint(int((3*int(A)+int(P))/2))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s105812140', 's599050712', 's679335415', 's191306255']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 18.0]
[39, 39, 48, 54]
p03029
u719790500
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)-(3*a+p)%2)/2)', 'a,p = map(int, input().split())\nprint(((3*a+p)-(3*a+p)%2)/2)\n', 'a,p = map(int, input().spilit())\nprint((3*a+p)/2-(3*a+p%2))\n', 'a,p = map(int, input().split())\nprint(int(((3*a+p)-(3*a+p)%2)/2))']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s119656192', 's160824640', 's650003499', 's522066001']
[9104.0, 9104.0, 9016.0, 9208.0]
[26.0, 27.0, 26.0, 31.0]
[63, 61, 60, 65]
p03029
u721425712
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())\npeice = 3*a + p\nprint(int(peice/3))', 'a, p = map(int, input().split())\npeice = 3*a + p\nprint(int(peice/2))']
['Wrong Answer', 'Accepted']
['s068479966', 's005247876']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 68]
p03029
u723583932
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.
['#128 b \nn=int(input())\nres=[]\nfor i in range(n):\n a,b=list(input().split())\n b=-1*int(b)\n res.append([a,b,i+1])\nres=sorted(res)\nfor x in res:\n print(x[2])\n', '#128 b\nn=int(input())\nres=[]\nfor i in range(n):\n a,b=list(input().split())\n b=-1*int(b)\n res.append([a,b,i+1])\nres=sorted...
['Runtime Error', 'Runtime Error', 'Accepted']
['s375093071', 's936104538', 's496891222']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[167, 165, 77]
p03029
u725133562
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.
['int A = input()\nint B = input()\n\nprint(int((3*A+B)/2))', 'A, P = map(int, input().split())\n\nprint((3*A+P)//2)\n']
['Runtime Error', 'Accepted']
['s455191334', 's060055155']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 52]
p03029
u726212005
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((3*a+p)//2)', 'a,p=int(input().split())\nprint((3*a+p)//2)', 'a,p=map(int,input().split())\nprint((3*a+p)//2)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s138456306', 's833491664', 's393814294']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[37, 42, 46]
p03029
u727608386
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())\nSList = []\nPList = []\ndic = {}\nSlist = []\naa = []\nfor _ in range(N):\n S, P = input().split()\n dic[S] = int(P)\n Slist.append(S)\n aa.append((int(P), S))\ndic = sorted(dic.items())\n\nsortedS = list(sorted(set(Slist)))\n\nfor i in range(len(sortedS)):\n tempV = []\n tempI = [...
['Runtime Error', 'Accepted']
['s067667271', 's287672858']
[3064.0, 2940.0]
[17.0, 17.0]
[520, 66]
p03029
u728615412
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()\nreturn (A*3 + B)//2', 'A, B = int(input().split())\nreturn (A*3 + B)//2 ', 'A,P = map(int,input().split())\nprint((3*A+P)//2)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s061540706', 's950030415', 's230433920']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[42, 48, 48]
p03029
u729300713
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())\nS=[0]*N\nP=[0]*N \nfor i in range(N):\n S[i], P[i] = input().split()\n P[i] = int(P[i])\n\nS_mid = sorted(S, key=lambda idx: P[idx] )\nfin = sorted(range(N), key=lambda idx: S_mid[idx])\nfor i in fin:\n print (i)', 'A, P = input()\nP += A*3\npi = int(P/3)\nprint (pi)', 'A, P = input().spl...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s478678068', 's600859771', 's640855277', 's850458447', 's876015219', 's443349973']
[3064.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 17.0]
[230, 48, 56, 66, 60, 66]
p03029
u730222237
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)', 'a , p = map(int , input().split())\nprint((3*a+p)//2)']
['Wrong Answer', 'Accepted']
['s379345230', 's662273397']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 52]
p03029
u732651691
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())\nSTXlist = [list(map(int,input().split())) for _ in range(n)]\nD = [(-1)*int(input()) for _ in range(q)]\n\ntime = 0\nstop = 1\nans = [1j] * q\nT = (sorted(STXlist, key=lambda x: x[1],reverse=True)) \nTmax = T[0][2]\n\nwhile True:\n time += 1\n D = list(map(lambda x:x+1 , D))\n\...
['Runtime Error', 'Accepted']
['s182960376', 's644799920']
[3064.0, 2940.0]
[17.0, 17.0]
[817, 53]
p03029
u733138183
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 s,p =input().split()\n book.append((s,int(p),i))\n \ns=sorted(book, key=lambda x: ( x[0],-x[1]))\nfor i in range(N):\n print(s[i][2]+1)\n', 'A,P = map(int, input().split())\nprint((3*A+P)//2)']
['Runtime Error', 'Accepted']
['s240517826', 's614424315']
[2940.0, 2940.0]
[17.0, 17.0]
[186, 49]
p03029
u735186902
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.
['pie=int("3*A+P")\nif pie//2:\n (3*A+P)/2\nelse :\n (3*A+P-1)/2', 'a, p = map(int, input().split())\nprint((a*3+p) // 2)\n']
['Runtime Error', 'Accepted']
['s971714704', 's427223735']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 53]
p03029
u735975757
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())\np = 3a + p\nprint(p//2)', 'a,p = map(int,input().split())\np = 3*a + p\nprint(p//2)']
['Runtime Error', 'Accepted']
['s293631349', 's160980665']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 54]
p03029
u741495664
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().split()]\n\nprint(int((A*3)+P)/2)', 'A,P=[int(x) for x in input().split()]\n\nprint(int(((A*3)+P)/2))']
['Wrong Answer', 'Accepted']
['s803212606', 's667446791']
[2940.0, 2940.0]
[17.0, 18.0]
[60, 62]
p03029
u747873993
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((3*A+P)/2)', 'A,P=int(i) for i in input().split()\nprint((3*A+P)/2)', 'A,P=(int(i) for i in input().split())\nprint(int((3*A+P)/2))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s023012438', 's429537739', 's238979328']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[54, 52, 59]
p03029
u753810022
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())\nD = 3*A + P\nif D % 2 == 0:\n print(int(D/2))\nelse:\n print(round(int((D/2))', 'A, P = map(int, input().split())\nD = 3*A + P\nif D % 2 == 0:\n print(D/2)\nelse:\n print(round(D/2))', 'A, P = map(int, input().split())\nD = 3*A + P\nprint(D//2)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s598362138', 's752319275', 's131042362']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[112, 102, 56]
p03029
u754022296
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\nread = sys.stdin.read\n\ndef main():\n n, q = map(int, input().split())\n event = []\n stop = set()\n for _ 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 event.sort()\n event.append((float("inf"), 0,...
['Runtime Error', 'Accepted']
['s485194301', 's310416746']
[3064.0, 2940.0]
[18.0, 17.0]
[628, 50]
p03029
u756399469
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\ninputs = sys.stdin.readline\nN, Q= map(int,inputs().split())\nV = [list(map(int,inputs().split())) for p in [0]*N]\n\nfor q in [0]*Q:\n\tm = int(inputs())\n\tfor n in range(N):\n\t\tif V[n][0] - V[n][2] <=m and m <= V[n][1] - V[n][2] -1:\n\t\t\tprint(V[n][2])\n\t\t\tbreak\n\telse:\n\t\tprint(-1)\n', 'impo...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s297002388', 's372301776', 's636045549', 's846175038']
[3064.0, 3188.0, 3192.0, 2940.0]
[18.0, 18.0, 18.0, 18.0]
[284, 852, 1296, 98]
p03029
u760360044
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+p/2)', 'a,p=map(int,input().split())\nprint(int(a*3/2+p/2))']
['Wrong Answer', 'Accepted']
['s421668557', 's067676376']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 50]
p03029
u762148180
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())\na = [int(x) for x in input().split()]\nmx = 0\nfor i in range(min(n, k + 1)):\n\tfor j in range(min(k - i + 1, n - i + 1)):\n\t\tsumma = 0\n\t\tb = []\n\t\tfor t in range(i):\n\t\t\tb.append(a[t])\n\t\tfor t in range(n - j, n):\n\t\t\tb.append(a[t])\n\t\tz = k - i - j\n\t\tb.sort()\n...
['Runtime Error', 'Runtime Error', 'Accepted']
['s095931430', 's262864426', 's032963182']
[3064.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[390, 394, 61]
p03029
u762488523
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\nresult =( A * 3 + P ) / 2\n\nprint(result)', 'A,P = map(int, input().split())\n\nresult =( A * 3 + P ) // 2\n\nprint(result)']
['Wrong Answer', 'Accepted']
['s308689076', 's558271646']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 74]
p03029
u765401716
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.
['i = list(map(int, input().split())) \nApple = 3 * i[0] + i[1]\nApple//2', 'i = list(map(int, input().split())) \nApple = 3 * i[0] + i[1]\nprint(Apple//2)']
['Wrong Answer', 'Accepted']
['s572191605', 's260510527']
[2940.0, 2940.0]
[17.0, 17.0]
[69, 76]
p03029
u767543103
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\nimport itertools as ittr\n\ndef test_switch(e_balls, sw, p):\n for i, e_ball in enumerate(e_balls):\n si = sw[e_ball - 1]\n \n if p[i] != (np.sum(si == 1) % 2):\n return False\n \n return True\n\nN, M = map(int, input().split())\n\ne_balls = []\n\nfor m in ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s238252281', 's893243472', 's254521842']
[12496.0, 12388.0, 2940.0]
[152.0, 151.0, 17.0]
[573, 704, 57]
p03029
u771804983
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']
['s789430989', 's389892646']
[2940.0, 2940.0]
[17.0, 17.0]
[46, 47]
p03029
u773305685
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.
['w = input()\ns = w.split()\n\napple = int(s[0])\npiece = int(s[1])\n\n\nanswer = ( 3 * apple + piece - (( 3 * apple + piece ) % 2 ) /2\n\nprint(answer)', 'w = input()\ns = w.split()\n\napple = int(s[0])\npiece = int(s[1])\n\n\nanswer = int(( 3 * apple + piece - (( 3 * apple + piece ) % 2 )) /2)\n\nprint(answer)']
['Runtime Error', 'Accepted']
['s706605470', 's786874871']
[2940.0, 3064.0]
[17.0, 18.0]
[142, 148]
p03029
u778261293
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())\np=int(input())\nprint(int((3*a+p)/2))', 'a,p= map(int ,input().split())\nprint(int((3*a+p)/2))\n\n\n']
['Runtime Error', 'Accepted']
['s270665026', 's987862989']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 55]
p03029
u779455925
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.
['X=[input() for i in range(2)]\nA,P=X[0],X[1]\n\nprint(int(A*3+P)/2)\n', 'X=input()\nX=X.split()\nA,P=int(X[0]),int(X[1])\n\nprint(int(A*3+P/2))\n', 'X=input()\nX=X.split()\nA,P=int(X[0]),int(X[1])\n\nprint(int((A*3+P)/2))\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s174119515', 's453221000', 's449550287']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[65, 67, 69]
p03029
u783175749
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=int(inport())\nP=int(inport())\n\n#3A/2=pai\nP=3*A\npai=P/2\nprint(math.floor(pai))', 'A=int(inport())\nP=int(inport())\n\npai=(3*A+P)/2\nprint(pai)', '\nimport math\nA=int(inport())\nP=int(inport())\n\npai=(3*A+P)/2\nprint(math.floor(pai))', '\nA,B= map(int, input().split())\n\npai=int((3*A+P)//2)\npr...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s218554899', 's285369617', 's306440476', 's320889389', 's436179399', 's583340434', 's684813131', 's723857839', 's088457480']
[2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[91, 57, 130, 142, 63, 95, 69, 47, 48]
p03029
u783229284
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().split()]\nX = (P + 3 * A)/2\nprint(X)\n', 'A,P = [int(x) for x in input().split()]\nX = (P + 3 * A)/2\nprint(int(X))\n']
['Wrong Answer', 'Accepted']
['s780700425', 's876319398']
[2940.0, 2940.0]
[18.0, 17.0]
[67, 72]
p03029
u785989355
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\n\nsys.setrecursionlimit(500000)\ndef input():\n return sys.stdin.readline()[:-1]\n\ndef main():\n N,Q = list(map(int,input().split()))\n\n road = []\n x_list = []\n\n for i in range(N):\n s,t,x = list(map(int,input().split()))\n road.append([0,s-x,x])\n road.append([1,t...
['Runtime Error', 'Accepted']
['s435641912', 's999821876']
[3316.0, 2940.0]
[20.0, 17.0]
[1031, 56]
p03029
u790877102
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, a, b, c, d = map(int,input().split())\ns = input()\n\nif c<d:\n s = list(s)\n h = s[b:d]\n for i in range(1,len(h)):\n if "\n print("No")\n break\n else:\n hh = s[a:c]\n for i in range(1,len(hh)):\n if "\n print("No")\n ...
['Runtime Error', 'Accepted']
['s713713201', 's128248235']
[3064.0, 2940.0]
[17.0, 17.0]
[993, 49]
p03029
u791128478
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(" enter no of apples")\nP=int(input(" enter no of peices ")\nn=A*3\npe=n+P\napple=pe//2\nprint(apple)\n\n', 'A, P = int(input())\nP += A * 3\nprint(int(P / 2))', 'n=A*3\npe=n+P\napple=pe//2\n', 'A, P = map(int, input().split())\nP += A * 3\nprint(int(P / 2))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s407614717', 's450119118', 's539830492', 's520201493']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[110, 48, 25, 61]
p03029
u792050702
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.
['app, ap_chip = map(int,list(input().split()))\n\n\nap_chip += app*3\n\n\nprint(int(ap_chip%2)\n', 'app, ap_chip = map(int,list(input().split()))\n\n\nap_chip += app*3\n\n\nprint(int(ap_chip/2))']
['Runtime Error', 'Accepted']
['s406553629', 's763530448']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 88]
p03029
u792727648
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()]\n\nN = A + P//3\n\nprint(N)', 'A, P = [int(i) for i in input().split()]\n\nnum_of_apples = A +round(P//3)\n\nprint(num_of_apples)\n', 'A, P = [int(i) for i in input().split()]\n\nprint((3 * A + P//2))', 'A, P = [int(i) for i in input().split()]\n\nnum_of_apples = A +round(P//3...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s246114755', 's267281172', 's349627608', 's719276673', 's750926886']
[2940.0, 3064.0, 3188.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[64, 95, 63, 136, 63]
p03029
u796044734
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 int((3*a+p)/2)', 'a,p = map(int,input().split())\n\nprint(int((3*a+p)/2))\n']
['Runtime Error', 'Accepted']
['s344686078', 's478338772']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 54]
p03029
u796789068
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())\ninfo=[input().split() for i in range(N)] \n#print(info)\nfrom operator import itemgetter\ndic1={}\nfor i in range(len(info)):\n dic1[i+1]=info[i]\n#print(dic1)\ninfo1=sorted(info,key=lambda x:int(x[1]),reverse=True)\ninfo2=sorted(info1,key=itemgetter(0))\n#print(info2)\nfor i in info2:\n for key...
['Runtime Error', 'Runtime Error', 'Accepted']
['s260344790', 's567518021', 's289280235']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[383, 48, 53]
p03029
u796867346
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()\nprint((a*3+b)//2)\n', 'a , b = input().split()\nprint((a*3+b)//2)', 'a,b =input().split()\nprint((int(a)*3+int(b))//2)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s347740379', 's931971304', 's167476084']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[33, 41, 49]
p03029
u800058906
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_p=a*3\np_total=a_p+p\nprint(p_total//3)', 'a,p=map(int,input().split())\n\na_p=a//3\np_total=a_p+p\nprint(p_total//3)', 'a,p=map(int,input().split())\n\na_p=a*3\np_total=a_p+p\nprint(p_total//2)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s153876414', 's312494110', 's548509502']
[9052.0, 9020.0, 9064.0]
[30.0, 28.0, 31.0]
[69, 70, 69]
p03029
u804048521
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())\nif (3*A + P) % 2== 0:\n print((3*A + P) /2)\nelse:\n print((3*A + P-1)/2)', 'A, P = map(int, input().split())\nif (3*A + P) % 2== 0:\n print(int((3*A + P) /2))\nelse:\n print(int((3*A + P-1)/2))']
['Wrong Answer', 'Accepted']
['s344097887', 's863971408']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 119]
p03029
u805575473
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) // 2)', 'A, P = [int(i) for i in input().split()]\nprint((A * 3 + P) // 2)\n']
['Runtime Error', 'Accepted']
['s348538656', 's037380252']
[2940.0, 2940.0]
[17.0, 17.0]
[67, 65]
p03029
u808373096
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\nN, Q = [int(x) for x in input().split()]\nSTX = np.zeros((N, 3))\nfor i in range(N):\n STX[i, 0], STX[i, 1], STX[i, 2] = [int(x) for x in input().split()]\nD = [int(input()) for _ in range(Q)]\nSTX = STX[np.argsort(STX[:, 2])]\n\nfor d in D:\n STX_copy = np.copy(STX)\n STX_copy[:, :2] = S...
['Runtime Error', 'Accepted']
['s305610589', 's402167713']
[12496.0, 2940.0]
[150.0, 17.0]
[496, 56]
p03029
u810067811
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.
['ap=input().split()\nprint((int(ap[0])*3+int(ap[1]))//2)\n', 'ap = input().split()\nprint((int(ap[0])*3+int(ap[1]))//2)\n']
['Runtime Error', 'Accepted']
['s515961273', 's163051759']
[2940.0, 2940.0]
[17.0, 17.0]
[57, 57]
p03029
u811817592
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.
['# -*- coding: utf-8 -*-\n\nimport sys\ns = sys.stdin.readlines()\nN, Q = map(int, s[0].split())\nx_dict = {}\nmax_x = 0\nfor e in s[1:N]:\n S, T, X = map(int, e.split())\n if X in x_dict:\n for i in range(S - 1, T):\n x_dict[X].add(i + 0.5)\n else:\n x_dict[X] = {S - 0.5}\n fo...
['Wrong Answer', 'Accepted']
['s297465704', 's767260467']
[3064.0, 2940.0]
[18.0, 17.0]
[761, 131]
p03029
u813102292
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 + p//3)', 'a, p = map(int, input().split())\nprint((3*a+p)//2)']
['Wrong Answer', 'Accepted']
['s087562801', 's237776895']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 50]
p03029
u814781830
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', 'a,p=map(int,input().split())\nprint(int((3 * a + p) / 2))\n']
['Wrong Answer', 'Accepted']
['s486035036', 's013976151']
[2940.0, 3064.0]
[17.0, 18.0]
[52, 57]
p03029
u821775079
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(eval(input().replace(" ","//")))', 'a,p=map(int,input().split())\nprint((a*3+p)//2)']
['Runtime Error', 'Accepted']
['s553143069', 's636134045']
[2940.0, 2940.0]
[17.0, 17.0]
[38, 46]
p03029
u822169805
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=input()\nb=input()\nprint((a*3+b)/2)', 'a,p=map(int,input().split())\nprint((a*3+p)//2)']
['Runtime Error', 'Accepted']
['s009105039', 's369725571']
[2940.0, 2940.0]
[17.0, 17.0]
[36, 46]
p03029
u825440127
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\npis = (3a + p)//2\nprint(pis)', 'a, p = map(int, input().split())\n\npies = (3*a + p) // 2\nprint(pies)']
['Runtime Error', 'Accepted']
['s802780575', 's064129052']
[2940.0, 2940.0]
[17.0, 17.0]
[62, 67]
p03029
u832498588
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 = input()\nP = input()\n\npi = round((A*3 + P)/2)\n\nprint(pi)\n', '\npi = round((A*3 + P)/2)\n\n\n\n\nreturn pi', 'a,p = input().split()\nint(a)\nint(p)\nprint((a*3+p)//2)', 'A = int(input())\nP = int(input())\n \npi = round((A*3 + P)/2)\n \nprint(pi)', '\npi = (A*3 + P)/2\n\nreturn pi', 'a,p=map(int,input().split...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s058660825', 's564353808', 's573921751', 's679747936', 's833373333', 's479064580']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0, 18.0]
[60, 38, 53, 71, 28, 46]
p03029
u837383145
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()]\n\nif (a*3+p) % 2 == 1:\n print((a*3+p-1)/2)\nelse:\n print((a*3+p)/2)\n', 'a,p = [int(i) for i in input().split()]\nprint(int((a*3+p)/2))\n']
['Wrong Answer', 'Accepted']
['s951549472', 's635005603']
[2940.0, 2940.0]
[17.0, 17.0]
[112, 62]
p03029
u838857768
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())\nb = int(input())\nprint((a*3 + b) // 2)\n', 'a, b = map(int, input().split())\nprint((a*3 + b) // 2)\n']
['Runtime Error', 'Accepted']
['s385370248', 's766622720']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 55]
p03029
u843318346
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())\nans = (2*a + P)//2\nprint(ans)', 'a,p = map(int,input().split())\nans = (3*a + p)//2\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s615942783', 's204961175']
[2940.0, 2940.0]
[18.0, 17.0]
[60, 61]
p03029
u844123804
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.
['num = input().split()\n\nsum_apple = int(num[0])*3 + int(num[1])\n\nprint(sum_apple//3)', 'num = input().split()\n\nsum_apple = int(num[0]) * 3 + int(num[1])\n\nprint(sum_apple//2)\n']
['Wrong Answer', 'Accepted']
['s847799322', 's008347360']
[2940.0, 2940.0]
[18.0, 17.0]
[83, 86]
p03029
u847165882
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\nB=A*3\nAns=B//2\n\nprint(Ans)', 'A,P=map(int,input().split(" "))\n\nB=A*3+P\nAns=B//2\n\nprint(Ans)']
['Wrong Answer', 'Accepted']
['s344760803', 's264087303']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 61]
p03029
u847605090
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 print(int((a*3+p)//2))', 'a,p = map(int,input().split())\nprint((a*3+p)//2)']
['Runtime Error', 'Accepted']
['s293525869', 's514530141']
[2940.0, 2940.0]
[17.0, 18.0]
[54, 48]
p03029
u848263468
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)\n']
['Runtime Error', 'Accepted']
['s158079004', 's340229797']
[8916.0, 9148.0]
[26.0, 26.0]
[47, 51]
p03029
u852058690
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 copy\n\nN, K = map(int, input().split())\nV = [int(i) for i in input().split()]\n\nvalue = 0\n\nnum = min(N,K)\nfor k in reversed(range(num)):\n for ret in range(K-k): \n if (ret < k+1):\n for i in range(k+1+1): \n tmp = []\n V_tmp = copy.copy(V)\n ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s278519450', 's661473876', 's651420698']
[3444.0, 2940.0, 2940.0]
[23.0, 18.0, 17.0]
[707, 85, 99]
p03029
u857330600
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((3*a+p)//2)', 'a,p=map(int,input().split())\nprint((3*a+p)//2)']
['Runtime Error', 'Accepted']
['s518069385', 's742286677']
[2940.0, 2940.0]
[17.0, 17.0]
[38, 46]
p03029
u862231708
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.
['arguments = input()\narguments_as_list = arguments.split(" ")\nlist_to_integer = list(map(int, arguments_as_list))\napples = list_to_integer[0]\npieces = list_to_integer[1]\n \nprint((apples//3 + pieces)//2)', 'def applpie(apples, pieces):\n x = apples//3\n y = apples + pieces\n return y//2', 'arguments = input()...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s173833885', 's242878104', 's810484010', 's928463751', 's443995168']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0]
[201, 81, 200, 220, 221]
p03029
u864276028
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)']
['Runtime Error', 'Accepted']
['s047069651', 's923247391']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 48]
p03029
u867848444
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)\nif ap%2==0:\n print(ap/2)\nelse:\n print((ap-1)/2)', 'a,p=map(int,input().split())\nap=(a*3+p)\nif ap%2==0:\n print(int(ap/2))\nelse:\n print(int((ap-1)/2))']
['Wrong Answer', 'Accepted']
['s243512990', 's180948336']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 103]
p03029
u868344991
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=input()\nN=int(N)\nS=[100]*N\nP=[100]*N\nfor num in range(N):\n S[num]=input().split()\n S[num].append(num+1)\n S[num][1]=int(S[num][1])\n\nS.sort()\nflag=0\nflag2=0\nwhile(flag==0):\n flag2=0\n for num in range(0,N-1):\n if(S[num][0]==S[num+1][0]):\n if(S[num][1]<S[num+1][1]):\n ...
['Runtime Error', 'Accepted']
['s805366549', 's992132029']
[3064.0, 2940.0]
[17.0, 17.0]
[464, 56]
p03029
u870062840
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 operator import itemgetter\n\ndef input_list(num,args):\n for i in range(num):\n S,P = input().split()\n P=int(P)\n if 1<=len(S)<=10 and S.islower()==1 and S.isalpha()==1 \\\n and 0<=P<=100 and isinstance(P,int)==1:\n args.append([S,P])\n else :\n pr...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s191719786', 's306494789', 's454657482', 's779617445', 's628146921']
[3064.0, 4592.0, 3060.0, 3060.0, 2940.0]
[18.0, 29.0, 20.0, 18.0, 17.0]
[1661, 368, 139, 167, 136]