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
|
---|---|---|---|---|---|---|---|---|---|---|
p03323 | u456896733 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['D_N = [int(i) for i in input().split()]\nt = 0\nq = 100 ** D_N[0]\ni = 0\n\n\nwhile(D_N[1]):\n i = i+1\n t = t+q\n \n if i == 100:\n print(t + q)\n break\n\n if i == D_N[1]:\n print(t)\n \n break\n', "a = [int(i) for i in input().split()]\nif a[0]<=8 and a[1]<=8:\n print('Yay!')\nelif a[0] > 8 or a[0] > 8:\n print(':(')\nelif a[0]+a[1] == 16 and a[0]>7 or a[1] > 7: \n print(':(')"] | ['Wrong Answer', 'Accepted'] | ['s044951104', 's496287462'] | [2940.0, 3060.0] | [17.0, 18.0] | [229, 181] |
p03323 | u457283867 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a,b=list(map(int,input().split()))\nprint('Yey!' if (a<=8&&b<=8) else ':(')", "a,b=map(int,input().split())\nprint('Yey!' if (a<=8 and b<=8) else ':(')\n", "a,b=map(int,input().split())\nprint('Yay!' if (a<=8 and b<=8) else ':(')\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s052849316', 's451873220', 's763252632'] | [3068.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [74, 72, 72] |
p03323 | u457901067 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A=int(input())\nB=int(input())\n\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")', 'A,B = map(int,input().split())\t\n\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s626603741', 's931488999'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 94] |
p03323 | u460745860 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A,B = map(int, raw_input().split())\nif((A <= 8) or (B <= 8)):\n\tprint("Yay!")\nelse:\n\tprint(":(")\n', 'A,B = map(int, input().split())\n\nif (A > 8) or (B > 8):\n print(":(")\nelse:\n print("Yay!")'] | ['Runtime Error', 'Accepted'] | ['s189675726', 's155470411'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 95] |
p03323 | u461636820 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["# -*- coding: utf-8 -*-\n\ndef main():\n A, B = map(int, (input().split()))\n print('Yay' if A<=8 and B<=8 else ':(')\n\nif __name__ == '__main__':\n main()\n", "# -*- coding: utf-8 -*-\n\ndef main():\n A, B = map(int, (input().split()))\n print('Yay!' if A<=8 and B<=8 else ':(')\n\nif __name__ == '__main__':\n main()\n"] | ['Wrong Answer', 'Accepted'] | ['s459534988', 's178153063'] | [2940.0, 2940.0] | [17.0, 17.0] | [159, 160] |
p03323 | u463775490 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a,b = map(int,input())\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')", "a,b = map(int,input().split())\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')"] | ['Runtime Error', 'Accepted'] | ['s991897885', 's985010699'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 92] |
p03323 | u468972478 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a, b = map(int, input().split())\nprint("Yay!" if a <= 8 and b <= 8 else: ":(")', 'a, b = map(int, input().split())\nprint("Yay!" if a <= 8 and b <= 8 else ":(")'] | ['Runtime Error', 'Accepted'] | ['s956004036', 's967789602'] | [8920.0, 9148.0] | [25.0, 28.0] | [78, 77] |
p03323 | u469953228 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a,b=map(int,input().split())\nif a <= 8 and b <=8:\n print('Yay')\nelse:\n print(':(')", "a,b=map(int,input().split())\nif a <= 8 and b <=8:\n print('yay')\nelse:\n print(':(')", "a,b=map(int,input().split())\nif a <= 8 and b <=8:\n print('Yay!')\nelse:\n print(':(')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s048108997', 's393965601', 's138334057'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [84, 84, 85] |
p03323 | u472108666 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['import sys\narray =[]\nfor line in sys.stdin.readlines():\n array.append(line.rstrip())\nnum1 = array[0]\nbox =list()\nnum2 = array[1]\nprint(num2)\nfor i in range(0,len(num2.split(" "))) :\n box.append(int(num2.split(" ")[i]))\ncount =0\nfor j in range(len(box)):\n while(True):\n if box[j]%2==0:\n count+=1\n box[j]=box[j]//2\n else:\n break;\nprint(count) ', 'input_lines = input()\nif int(input_lines.split(" ")[0])<=8 and int(input_lines.split(" ")[1])<=8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s272725098', 's804315677'] | [3064.0, 2940.0] | [18.0, 17.0] | [400, 137] |
p03323 | u473952728 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['n, m = map(int, input().split())\ndata = [[int(x) for x in input().split()] for _ in range(n)]\n\npats = [(x,y,z) for x in [-1,1] for y in [-1,1] for z in [-1,1]] # +++,++-,...,---\nscore = lambda sgns, vals: sum([s * x for(s, x) in zip(sgns, vals)]) # i.e.x+y-z\nresult = max(sum(sorted(score(pat, row) for row in data)[-m:]) for pat in pats)\nprint(result)', 'from itertools import *\nd, n = map(int, input().split())\ndelta = 100 ** d\nite = (x for x in count(delta, delta) if x % (delta * 100) != 0)\nprint(next(islice(ite, n - 1, None)))', 'xs = map(int, input().split())\ncheck= all(x <= 8 for x in xs)\nprint ("Yay!" if check else ":(")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s578453130', 's778103301', 's990286761'] | [3064.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [353, 176, 95] |
p03323 | u474423089 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A,B=map(int,input().splti(' '))\nif A<=8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')", "A,B=map(int,input().split(' '))\nif A<=8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')"] | ['Runtime Error', 'Accepted'] | ['s671459237', 's527862578'] | [2940.0, 3060.0] | [17.0, 19.0] | [91, 91] |
p03323 | u475598608 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['D,N=map(int,input().split())\nif N==100:\n N+=1\nprint(N*(100**D))', "a,b=map(int,input().split())\nprint('Yay!' if a<=8 and b<=8 else ':(')"] | ['Wrong Answer', 'Accepted'] | ['s218720505', 's024442444'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 69] |
p03323 | u480527817 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | [' d, n = map(int, input().split())\n if d == 0:\n if n == 100:\n print(101)\n else:\n print(n)\n else:\n if n == 100:\n \tprint(100**d * n)\n else:\n print(100**d * 101)', 'a, b = map(int, input().split())\nif a <= 8 and b <= 8:\n\tprint("Yay!")\nelse:\n\tprint(":(")'] | ['Runtime Error', 'Accepted'] | ['s382063498', 's177061348'] | [2940.0, 2940.0] | [17.0, 17.0] | [212, 88] |
p03323 | u484578205 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A, B = input().split(" ")\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")', 'A, B = list(int(a) for a in input().split(" "))\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s349007420', 's401533235'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 109] |
p03323 | u495166526 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A=int(input())\nB=int(input())\nif A>8 or B>8 :\n print(":(")\nelse:\n print("Yay!")', 'A,B=[int(a) for a in input().split()]\nif A>8 or B>8 :\n print(":(")\nelse:\n print("Yay!")\n'] | ['Runtime Error', 'Accepted'] | ['s813806341', 's990944596'] | [2940.0, 2940.0] | [18.0, 17.0] | [83, 92] |
p03323 | u497046426 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['D, N = map(int, input().split())\n\nprint(N*(100**D))', 'A = int(input())\nB = int(input())\n\nif max(A, B) <= 8:\n print("Yay!")\nelse:\n print(":(")', 'A = int(input())\nB = int(input())\n\nif max(A, B) <= 8:\n print("Yay!")\nelse:\n print(":(")\n ', 'A, B = map(int, input().split())\n\nif max(A, B) <= 8:\n print("Yay!")\nelse:\n print(":(")\n'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s014063885', 's442750850', 's912575322', 's816945116'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 17.0] | [51, 93, 98, 93] |
p03323 | u497883442 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['n = int(input())\na = list(map(int, input().split()))\ncount = 0\nfor i in range(n):\n while a[i] % 2 == 0:\n count += 1\n a[i] /= 2\nprint(count)', 'a,b = list(map(int, input().split()))\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yey!")', 'a,b = list(map(int, input().split()))\nif abs(a-b) > 1:\n print(":(")\nelse:\n print("Yey!")', 'a,b = list(map(int, input().split()))\nif max(a,b) > 8:\n print(":(")\nelse:\n print("Yey!")', 'a,b = list(map(int, input().split()))\nif max(a,b) > 8:\n print(":(")\nelse:\n print("Yay!")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s143646197', 's198160621', 's632786848', 's897120469', 's832175835'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 19.0, 17.0, 17.0, 17.0] | [146, 92, 90, 90, 90] |
p03323 | u500279510 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A, B = map(int,input().split())\n\nif A <= 8 & B <= 8:\n print('Yay!')\nelse:\n print(':(')", "A, B = map(int,input().split())\n\nif (A >= 9) or (B >= 9):\n print(':(')\nelse:\n print('Yay!')"] | ['Wrong Answer', 'Accepted'] | ['s235685173', 's009224350'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 97] |
p03323 | u501163846 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b=map(int,input().split())\nif a<=8 and b<=8:\n print("Yey!")\nelse:\n print(":(")\n', 'a,b=map(int,input().split())\nif a>8 or b>8:\n print(":(")\nelse:\n print("Yey!")\n', 'a,b=map(int,input().split())\nif a<=8 and b<=8:\n print("Yay!")\nelse:\n print(":(")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s297533634', 's695035714', 's192094675'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 19.0] | [87, 84, 87] |
p03323 | u503901534 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b = map(int,input())\n\nif a <= 8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")', 'a = int(input())\nb = int(input())\n\nif a <= 8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")', 'a = int(input())\nb = int(input())\n\nif a <= 8 and b <= 8:\n print("Yay!")\nelse:\n print(":()")', 'a,b = map(int,input().split())\n\nif a <= 8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s176091208', 's273177869', 's722360812', 's455228003'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [85, 96, 97, 93] |
p03323 | u506086925 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a = int(input())\nb = int(input())\nif a<=8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")', 'a = int(input())\nb = int(input())\nif a<=8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")', 'a = int(input())\nb = int(input())\nif a<=8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")', 'a, b = map(int,input().split())\nif a<=8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s460486852', 's601940348', 's647392050', 's450067100'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [93, 93, 93, 91] |
p03323 | u509739538 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['4444\n1111\naaaa\na\na\na\na\na\na\n', 'x = int(input())\n\nprint(x)\n\nprint("Hello World!")', 'hhh', "4444\n1111\naaaa\na\na\na\na\na\na\nprint('Hello World!'')", '\'x = int(input())\\n\\nprint(x)\\n\\nprint("Hello World!")\'', 'print(1)\n', '4545454\n5455454\n4\n4545\n44444444444444444444444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n\n0000000000044444', "print('Hello World!'')", 'x,y = map(int,input().split())\nif x<=8 and y<=8:print("Yay!")\nelse:print(":(")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s061760581', 's136015805', 's301583614', 's349207862', 's369220613', 's393645518', 's557947870', 's632834699', 's252905202'] | [2940.0, 2940.0, 2940.0, 2940.0, 3068.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [27, 49, 9, 49, 55, 9, 337, 22, 78] |
p03323 | u512138205 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a, b = map(int, input().split())\nprint('Yay' if a <= 8 and b <= 8 else ':(')\n", "a, b = map(int, input())\nprint('Yay' if a <= 8 and b <= 8 else ':(')\n", "a, b = map(int, input().split())\nprint('Yay!' if a <= 8 and b <= 8 else ':(')\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s128853242', 's678279604', 's534157212'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [77, 69, 78] |
p03323 | u513793759 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['D, N = map(int, input().split())\nif N<100:\n\tif D==0:\n\t\tprint(N)\n\telif D==1:\n\t\tprint(100*N)\n\telse:\n\t\tprint(10000*N)\nelse:\n\tif D==0:\n\t\tprint(101)\n\telif D==1:\n\t\tprint(10100)\n\telse:\n\t\tprint(1010000)', 'A,B = map(int, input().split())\nif A<=8 and B<=8:\n\tprint("Yay!")\nelse:\n\tprint(":(")\n'] | ['Wrong Answer', 'Accepted'] | ['s528522536', 's176849980'] | [3060.0, 2940.0] | [17.0, 17.0] | [194, 84] |
p03323 | u514894322 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a,b = map(int,input())\nif max([a,b]) >= 9:\n print(':(')\nelse:\n print('Yay!')", "a,b = map(int,input().split())\nif max([a,b]) >= 9:\n print(':(')\nelse:\n print('Yay!')\n"] | ['Runtime Error', 'Accepted'] | ['s662443836', 's496459104'] | [2940.0, 2940.0] | [20.0, 17.0] | [78, 87] |
p03323 | u518556834 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b = map(int,input().split())\nif a<=8 and b<=8:\n print("Yay")\nelse:\n print(":(")', 'a,b = map(int,input().split())\nif a <= 8 and b <= 8:\n print("Yey!")\nelse:\n print(":(")', 'a,b = map(int,input().split())\nif a<=8 and b<=8:\n print("Yay!")\nelse:\n print(":(")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s456704413', 's791795023', 's017475161'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [83, 88, 85] |
p03323 | u519721530 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A, B = map(int, input().split())\nif A <= 8 & A <= 8:\n print("Yay!")\nelse:\n print(":(")', 'A, B = map(int, input().split())\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Wrong Answer', 'Accepted'] | ['s050411216', 's712635764'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 94] |
p03323 | u525595811 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A = int(input())\nB = int(input())\n\nif A > 8 or B > 8:\n print(":(")\nelse:\n print("Yay!")\n', 'A, B = map(int, input().split())\n\nif A > 8 or B > 8:\n print(":(")\nelse:\n print("Yay!")\n'] | ['Runtime Error', 'Accepted'] | ['s571483573', 's436426987'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 94] |
p03323 | u528807020 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A,B = [int(i) for i in input().split()]\nif A <= 8:\n print('Yay!')\n if B <= 8:\n print('Yay!')\n else:\n print(':(')\nelse:\n print(':(')", "A,B = [int(i) for i in input().split()]\nif A <= 8:\n print('Yay!')\n if B <= 8:\n print('Yay!')\n elif:\n print(':(')\nelse:\n print(':(')", "A,B = [int(i) for i in input().split()]\nif A <= 8:\n print('Yay!')\nelif B <= 8:\n print('Yay!')\nelse:\n print(':(')", "A,B = [int(i) for i in input().split()]\nif A >= 8:\n print('Yay!')\nelif B >= 8:\n print('Yay!')\nelse:\n print(':(')\n", "A,B = [int(i) for i in input().split()]\nif A > 8:\n print(':(')\nelif B > 8:\n print(':(')\nelse:\n print('Yay!')"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s074885406', 's141606268', 's503236176', 's999835823', 's785783684'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [157, 157, 125, 122, 117] |
p03323 | u532806301 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['D,N = map(int, input().split())\n\nprint(100 ** D * N)', "a,b = map(int, input().split())\n\nif a <= 8 and b<= 8:\n print('Yay!')\nelse:\n print(':(')"] | ['Wrong Answer', 'Accepted'] | ['s152862979', 's839814981'] | [3316.0, 2940.0] | [19.0, 17.0] | [52, 93] |
p03323 | u533232830 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a, b = map(int, input().split())\nif a<=8 and b<=8:\n print("Yay!")\nelse:\n print(":(")', 'a, b = map(int, input().split())\n\nif a <= 8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Wrong Answer', 'Accepted'] | ['s587304476', 's888749963'] | [2940.0, 2940.0] | [18.0, 17.0] | [88, 95] |
p03323 | u533713111 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A,B = map(int,input().split())\nif A <= 8 and B <= 8:\n print('Yey!')\nelse:print(':(')", "A,B = map(int,input().split())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:print(':(')"] | ['Wrong Answer', 'Accepted'] | ['s764977154', 's173574959'] | [2940.0, 3064.0] | [17.0, 17.0] | [85, 85] |
p03323 | u535827181 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['D, N = (int(i) for i in input().split())\nA = 100 * N\nB = 10000 * N\nif N == 100:\n if D == 0:\n print(101)\n if D == 1:\n print(10100)\n if D == 2:\n print(10010000)\n\nif D == 0:\n print(N)\nelif D == 1:\n print(A)\nelse:\n print(B)', "D, N = (int(i) for i in input().split())\nA = 100 * N\nB = 10000 * N\nif D == 0:\n print('N')\nelif D == 1:\n print(A)\nelse:\n print(B)", "A, B = (int(i) for i in input().split())\nif A <= 8 and B <= 8:\n print('yay!')\nelse:\n print(':(')", "A, B = (int(i) for i in input().split())\nif A =< 8 and B =< 8:\n print('yay!')\nelse:\n print(':(')", "A, B = (int(i) for i in input().split())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s280444740', 's445086159', 's497631748', 's591644175', 's788505687'] | [3060.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [240, 137, 98, 98, 98] |
p03323 | u538739837 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['n=int(input())\na=list(map(int,input().split()))\n#print(n)\n#print(a)\ncount=0\ni=0\nflag=True\nwhile(flag):\n flag=False\n for i in range(n):\n if(flag==True):\n a[i]=a[i]*3\n elif(a[i]%2==0):\n #print(i)\n a[i]=a[i]/2\n count+=1\n flag=True\n else:\n a[i]=a[i]*3\nprint(count)', 'n=int(input())\na=list(map(int,input().split()))\n#print(n)\n#print(a)\ncount=0\nflag=True\nwhile(flag):\n flag=False\n for i in range(n):\n if(a[i]%2==0):\n #print(i)\n #a=list(map(lambda x:x*3,a))\n a[i]=int(a[i]/2)\n #print(a)\n count+=1\n flag=True\n break\nprint(count)', 'a,b = map(int,input().split())\n#if((a<0 or a>16) or (b<0 or b>16) or (a+b>16)):\n #print("error\\n")\ncount=16\nflag=False\npic=0 # 0=a,1=b\nwhile(count>0):\n if(pic==0):\n a-=1\n count-=1\n pic=1 \n elif(pic==1):\n pic=0\n b-=1\n count-=1\n if(a<=0 and b<=0):\n flag=True\n break\nif(flag==True):\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s332496303', 's521983634', 's747130240'] | [3064.0, 3060.0, 3064.0] | [17.0, 17.0, 17.0] | [353, 347, 390] |
p03323 | u539283796 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A = int(input())\nB = int(input())\nif (A <= 8 and B <= 8):\n print('Yay!')\nelse:\n print(':(')", "A = input()\nB = input()\nif int(A) <= 8 and int(B) <= 8:\n print('Yay!')\nelse:\n print(':(')", "A = input()\nB = input()\nif int(A) <= 8 and int(B) <= 8:\n print('Yay!')\nif 9 <= int(A) <=16 or 9 <= int(B) <= 16: \n print(':(')", "A = int(input())\nB = int(input())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')", "A = int(input())\nB = int(input())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')", "A = int(input())\nB = int(input())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')", "A, B = map(int, input().split())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s052482471', 's139682207', 's430536255', 's685707152', 's727259562', 's991330306', 's637977635'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 17.0, 18.0, 17.0, 18.0] | [97, 95, 132, 95, 97, 95, 94] |
p03323 | u548545174 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['D, N = map(int, input().split())\nif N == 100:\n N = 101\nif D == 0:\n print(N)\nelif D == 1:\n print(N * 100)\nelse:\n print(N * (100 ** 2))', 'D, N = map(int, input().split())\nif D == 0:\n print(N)\nelif D == 1:\n print(N * 100)\nelse:\n print(N * (100 ** 2))', "A, B = map(int, input().split())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s648166105', 's887694606', 's077676847'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [145, 120, 94] |
p03323 | u549497563 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b=map(int,input().split())\nif a<=8 and b<=8: \n print("Yey!")\nelse:\n print(":(")', 'a,b=map(int,input().split())\nif a<=8 and b<=8: \n print("Yay!")\nelse:\n print(":(")'] | ['Wrong Answer', 'Accepted'] | ['s837676197', 's387972329'] | [3064.0, 2940.0] | [17.0, 18.0] | [83, 83] |
p03323 | u550895180 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["import sys\n\n\ndef solve(d,n):\n if d==0:\n return(n)\n if d==1:\n return(100**1*n)\n if d==2:\n return(100**2*n)\n\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n [str_a, str_b] = line.split(' ')\n return (int(str_a), int(str_b))\n\ndef main():\n a, b = readQuestion()\n answer = solve(a, b)\n print(answer)\n \nif __name__ == '__main__':\n main()", "import sys\n\n\ndef solve(a,b):\n if 8>=a and 8>=b: \n return'Yay!'\n else:\n return':('\n\n\n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n [str_a, str_b] = line.split(' ')\n return (int(str_a), int(str_b))\n\ndef main():\n a, b = readQuestion()\n answer = solve(a, b)\n print(answer)\n \nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Accepted'] | ['s471794699', 's586800311'] | [3060.0, 3060.0] | [17.0, 17.0] | [557, 528] |
p03323 | u552706598 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a,b = map(int,input().split())\nif a > 8 || b > 8:\n print(':(')\nelse:\n print('Yay!')", 'a,b = map(int,input().split())\nif a > 8 || b > 8:\n print(\':(")\nelse:\n print(\'Yay!\')', "a,b = map(int,input().split())\nif a > 8 or b > 8:\n print(':(')\nelse:\n print('Yay!')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s540558103', 's578002998', 's231225858'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [83, 83, 83] |
p03323 | u553070631 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a,b=int(input().split())\nif a>=9:\n print('')\nelif b>=9:\n print(':(')\nelse:\n print('Yay!')\n", "a,b=input().split()\nif a>=9:\n print('')\nelif b>=9:\n print(':(')\nelse:\n print('Yay!')", "a,b=(int(i) for i in input().split())\nif a>=9\n print(':(')\nelif b>=9:\n print(':(')\nelse:\n print('Yay!')", "a,b=(int(x) for x in input().split())\nif a>=9:\n print(':(')\nelif b>=9:\n \n print(':(')\nelse:\n print('Yay!')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s007684713', 's669374134', 's692008560', 's744639275'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 17.0] | [93, 87, 106, 151] |
p03323 | u553459461 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b = map(int, input().split())\nif(a<9 && b<9):\n print("Yay!")\nelse:\n print(":(")', 'a,b = map(int, input().split())\ncake = [0]*16\n\nif(a+b<=16):\n \n even=0\n while(a and even<16):\n cake[even]=True\n even+=2\n a-=1\n \n odd=1\n while(b and odd<16):\n cake[odd]=False\n odd+=2\n b-=1\n \n #print(cake)\n \n f=1\n \n for pc in cake:\n if(pc==0):\n print(":(")\n f=0\n break\n \n if(f):\n print("Yay!")\nelse:\n print(":(")\n ', 'a,b = map(int, input().split())\nif(a<9 and b<9):\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s553866961', 's607537015', 's400394306'] | [2940.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0] | [83, 452, 88] |
p03323 | u556069480 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['N,D=map(int, input().split())\nprint(100**D*N)', 'a,b=map(int, input().split())\nif a<=8 and b<=8:\n print("Yay!")\nelse:\n print(":(")'] | ['Wrong Answer', 'Accepted'] | ['s203909530', 's895556479'] | [2940.0, 2940.0] | [18.0, 18.0] | [45, 83] |
p03323 | u556371693 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b -map(int, input().split())\nif 9>a and 9>b:\n print("Yay!")\nelse:\n print(":(")', 'a,b =map(int, input().split())\nif 9>a and 9>b:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s567822174', 's381057796'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 86] |
p03323 | u556913481 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A,B=map(int,input().split())\nif A<=8:\n print(Yay!)\nif B<=8:\n print(:()', "A,B = map(int,input().split())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')"] | ['Runtime Error', 'Accepted'] | ['s629230331', 's784292353'] | [2940.0, 2940.0] | [18.0, 17.0] | [72, 88] |
p03323 | u559823804 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b=map(int,input().split())\nif a<=8 and b<=8:\n print(\'Yes\')\nelse:\n print(":(")\n', 'a,b=map(int,input().split())\nif a<=8 and b<=8:\n print(\'Yay!\')\nelse:\n print(":(")\n'] | ['Wrong Answer', 'Accepted'] | ['s232190010', 's788726206'] | [2940.0, 2940.0] | [17.0, 24.0] | [86, 87] |
p03323 | u561522372 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['import sys \nimport math\n\na, b = map(int, input().split(" "))\n\nif a<=8 & b<=8:\n print("Yey!")\nelse:\n print(":(")\n', 'import sys \nimport math\n\na, b = map(int, input().split(" "))\n\nif a<=8 & b<=8:\n print("Yay!")\nelse:\n print(":(")\n', 'import sys \nimport math\n\na, b = map(int, input().split(" "))\n\nif a<=8 and b<=8:\n print("Yay!")\nelse:\n print(":(")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s589953831', 's877276699', 's449687415'] | [3064.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [118, 118, 119] |
p03323 | u564657854 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a, b = input().split()\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")', 'a, b = input().split()\nif a or b > 8:\n print(":(")\nelse:\n print("Yay!")\n', 'a, b = input().split()\nif (a or b) > 8:\n print(":(")\nelse:\n print("Yay!")', 'a, b = map(int,input().split())\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s384324236', 's391534293', 's682828089', 's033083346'] | [2940.0, 2940.0, 3068.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [77, 74, 75, 86] |
p03323 | u565204025 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['n = int(input())\na = list(map(int,input().split()))\n\ncnt = 0\n\nfor i in range(n):\n while(True):\n if a[i] % 2 != 0:\n break\n else:\n a[i] = int(a[i] / 2)\n cnt += 1\n\nprint(cnt)\n', '# -*- coding: utf-8 -*-\n\na,b = map(int,input().split())\n\nif a >= 8 o r b >= 8:\n print(":(")\nelse:\n print("Yay!")\n', '# -*- coding: utf-8 -*-\n\na,b = map(int,input().split())\n\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s055256645', 's354541854', 's689376851'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [222, 119, 116] |
p03323 | u567483959 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['\nn = int(input())\nA = map(int,input().split())\n\ncnt = 0\n\nfor a in A:\n while (a % 2 == 0):\n cnt = cnt + 1\n a = a / 2\n\nprint(cnt)', 'd,n = map(int,input().split())\nif n == 100:\n print(101 * (100**d))\nelse:\n print(n * (100**d))', 'a,b = map(int,input().split())\nif (a <= 8 and b <= 8):\n print("Yay!")\nelse:\n print(":(")\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s103563075', 's933725866', 's074255711'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [144, 99, 95] |
p03323 | u570612423 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['# -*- coding: utf-8 -*-\n\na=int(input())\nb=int(input())\n\nif a<9 and b<9:\n print("Yay!")\nelse:\n print(":(")', '# -*- coding: utf-8 -*-\n\na,b = map(int, input().split())\n\nif a<9 and b<9:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s610003500', 's096715278'] | [2940.0, 3064.0] | [17.0, 18.0] | [111, 113] |
p03323 | u576504675 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['# coding:utf-8\nimport itertools\n\nn, m = map(int,input("").split())\n\ncakes = []\nfor i in range(n):\n cakes.append(input().split())\n\nmaxsum = 0\nfor kumiawase in itertools.combinations(cakes, m):\n x = y = z = 0\n for cake in kumiawase:\n x += int(cake[0])\n y += int(cake[1])\n z += int(cake[2])\n statussum = abs(x) + abs(y) + abs(z)\n if statussum > maxsum:\n maxsum = statussum\nprint(maxsum)\n', '# coding:utf-8\n\na, b = map(int,input("").split())\n\nif a >= 1 and a <= 8 and b >= 1 and b <= 8:\n print("Yay!")\nelse:\n print(":(")\n'] | ['Runtime Error', 'Accepted'] | ['s369914168', 's778133586'] | [3064.0, 2940.0] | [18.0, 17.0] | [427, 135] |
p03323 | u577927591 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b = map(int,input().split())\n\nif (a > 8 or b>8):\n print(":(")\nelse\n print("Yay!")', 'a,b = map(int,input().split())\n\nif (a > 8 or b>8):\n print(":(")\nelse:\n print("Yay!")'] | ['Runtime Error', 'Accepted'] | ['s758393237', 's173576085'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 90] |
p03323 | u577942884 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a, b = list(map(int(input().rstrip())))\nif a<8 and b< 8:\n print("Yay!")\nelse:\n print(":(")', 'a, b = list(map(int(input().rstrip())))\nif a<=8 and b<= 8:\n print("Yay!")\nelse:\n print(":(")', 'a, b = int(input())\nif a<8 and b< 8:\n print("Yay!")\nelse:\n print(":(")', 'a, b = list(map(int, input().rstrip().split()))\nif a<= 8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s383423096', 's659033863', 's934075079', 's200689029'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [92, 94, 72, 108] |
p03323 | u578489732 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["# -*- coding: utf-8 -*-\nimport sys\n# ----------------------------------------------------------------\n# Use Solve Function\n\ndef solve(lines):\n A,B = map(int, lines.pop(0).split(' '))\n if A <= 8 and B <= 8:\n print('Yey!')\n else:\n print(':(')\n\n\n#\n# main\n#\n\n# 1. use list instead of stdin\n\n# contents = '''\\\n# 2 9\\\n# '''\n\n\n# 2. use stdin\n\nlines = [x.strip() for x in sys.stdin.readlines()]\n\n#\n# solve !!\n#\nsolve(lines)", "# -*- coding: utf-8 -*-\nimport sys\n# ----------------------------------------------------------------\n# Use Solve Function\n\ndef solve(lines):\n A,B = map(int, lines.pop(0).split(' '))\n if A <= 8 and B <= 8:\n print('Yay!')\n else:\n print(':(')\n\n\n#\n# main\n#\n\n# 1. use list instead of stdin\n\n# contents = '''\\\n# 2 9\\\n# '''\n\n\n# 2. use stdin\n\nlines = [x.strip() for x in sys.stdin.readlines()]\n\n#\n# solve !!\n#\nsolve(lines)"] | ['Wrong Answer', 'Accepted'] | ['s646753157', 's439322090'] | [2940.0, 3060.0] | [18.0, 17.0] | [468, 468] |
p03323 | u580873239 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b=int(input())\nif a<=8 and b<=8:\n print("Yay!")\nelse:\n print(":(")', 'a,b=map(int,input().split())\nif a<=8 and b<=8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s444588318', 's129263886'] | [2940.0, 2940.0] | [18.0, 17.0] | [74, 86] |
p03323 | u585101972 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A, B = map(int, input().split())\nif A <= 8 and B <= 8:\n print('Yah')\nelse:\n print(':(')\n \n", "A, B = map(int, input().split())\nif A <= 8 and B <= 8:\n print('Yah!')\nelse:\n print(':(')\n", "A, B = map(int, input().split())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s144976933', 's442601821', 's198940820'] | [2940.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0] | [99, 95, 95] |
p03323 | u585265265 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['# coding: utf-8\ndef main():\n A = int(input())\n B = int(input())\n if A > 8 or B > 8:\n print(":(")\n else:\n print("Yay!")\n\nif __name__ == "__main__":\n main()', 'def main():\n A, B = map(int, input().split())\n if A > 8 or B > 8:\n print(":(")\n else:\n print("Yay!")\n\nif __name__ == "__main__":\n main()\n\n \n'] | ['Runtime Error', 'Accepted'] | ['s984994968', 's382432976'] | [2940.0, 2940.0] | [18.0, 17.0] | [183, 168] |
p03323 | u585670729 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['from sys import stdin, stdout\nfrom math import sqrt\nfrom collections import defaultdict\n#t = int(stdin.readline().strip())\n#R, L, C, Vin = [float(x) for x in stdin.readline().strip().split()]\nA = int(stdin.readline().strip())\nB = int(stdin.readline().strip())\nprint("Yay!" if (A <= 8 and B <= 8) else ":(")\n', 'from sys import stdin, stdout\nfrom math import sqrt\nfrom collections import defaultdict\n#t = int(stdin.readline().strip())\n#R, L, C, Vin = [float(x) for x in stdin.readline().strip().split()]\nA = int(stdin.readline().strip())\nB = int(stdin.readline().strip())\nprint("Yay!" if (A <= 8 and B <= 8) else ":(")\n', 'from sys import stdin, stdout\nfrom math import sqrt\nfrom collections import defaultdict\n#t = int(stdin.readline().strip())\n#R, L, C, Vin = [float(x) for x in stdin.readline().strip().split()]\nA, B = [int(x) for x in stdin.readline().strip().split()]\nprint("Yay!" if (A <= 8 and B <= 8) else ":(")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s406933965', 's806491206', 's700731523'] | [3444.0, 3444.0, 3316.0] | [103.0, 91.0, 21.0] | [307, 307, 296] |
p03323 | u585742242 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["# -*- coding: utf-8 -*-\na = int(input())\nb = int(input())\n\nif a > 8 or b > 8:\n print(':(')\nelse:\n print('Yay!')\n", "# -*- coding: utf-8 -*-\na = int(input())\nb = int(input())\n\nif a > 8 or b > 8:\n print(': (')\nelse:\n print('Yay!')\n", "# -*- coding: utf-8 -*-\na, b = map(int, input().split())\n\nif a > 8 or b > 8:\n print(':(')\nelse:\n print('Yay!')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s382283687', 's753501546', 's492174316'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [118, 119, 117] |
p03323 | u586149955 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a, b = [int(_) for _ in input().split())]\nprint('Yay!' if a <= 8 and b <= 8 else ':()')\n", "a, b = [int(_) for _ in input().split()]\nprint('Yay!' if a <= 8 and b <= 8 else ':(')\n"] | ['Runtime Error', 'Accepted'] | ['s997073169', 's349233677'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 86] |
p03323 | u589726284 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A = int(input())\nB = int(input())\nif A <= 8 and B <= 8:\n print("Yay!")\nelif 8 < A or B < 8:\n print(":(")', 'A, B = map(int, input().split())\nif A <= 8 and B <= 8:\n print("Yay!")\nelse :\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s789762553', 's654162046'] | [2940.0, 2940.0] | [18.0, 17.0] | [106, 91] |
p03323 | u591764610 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["l = [int(i) for i in input().split()]\nif (l[0]<=8)and(l[1]<=8):\n print('Ywy!')\nelse:\n print(':(')", "print('Yay!' if max([int(i) for i in input().split()]) <= 8 else ':(')"] | ['Wrong Answer', 'Accepted'] | ['s416528939', 's191958963'] | [2940.0, 2940.0] | [18.0, 18.0] | [99, 70] |
p03323 | u593346450 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['l = input().split()\na = int(l[0])\nb int(l[1])\nif (a>8) or (b>8):\n print(":(")\nelse:\n print("Yay!")\n', 'start = 0\nfor l in input():\n if start == 0:\n start += 1\n else: \n l = list(map(int, input().split()))\n break\ncount = 0\nfor i in l:\n while True:\n if i%2 == 0:\n count += 1\n i = i/2\n else:\n break\nprint(count)', 'l = input().split()\na = int(l[0])\nb = int(l[1])\nif (a>8) or (b>8):\n print(":(")\nelse:\n print("Yay!")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s339379632', 's415346681', 's378775392'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [106, 288, 107] |
p03323 | u597374218 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b=map(int,input().split())\nprint("Yay!" if A<9 and B<9 else ":(")', 'A,B=map(int,input().split())\nprint("Yay!" if A<=8 and B<=8 else ":(")'] | ['Runtime Error', 'Accepted'] | ['s897172058', 's702493128'] | [3316.0, 8988.0] | [21.0, 29.0] | [67, 69] |
p03323 | u597436499 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['import sys\n\nstdin = sys.stdin\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline()\n\na = ni()\nb = ni()\n\nif a >= 9 or b >= 9:\n print(":(")\nelse:\n print("Yay!")\n', 'import sys\n\nstdin = sys.stdin\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline()\n\na,b = na()\n\nif a >= 9 or b >= 9:\n print(":(")\nelse:\n print("Yay!")\n'] | ['Runtime Error', 'Accepted'] | ['s847837141', 's720993938'] | [2940.0, 2940.0] | [17.0, 17.0] | [219, 212] |
p03323 | u598229387 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["s = input()\nprint(s.count('+') - s.count('-'))", "a,b = map(int, input().split())\nif a < 9 and b < 9:\n print('Yay!')\nelse:\n print(':(')"] | ['Wrong Answer', 'Accepted'] | ['s082235000', 's744298020'] | [2940.0, 2940.0] | [18.0, 17.0] | [46, 91] |
p03323 | u598812605 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a, b = int(input())\nif (a <= 8) & (b <= 8):\n print('Yay!')\nelse:\n print(':(')", "a, b = map(int, input().split())\nif (a <= 8) & (b <= 8):\n print('Yay!')\nelse:\n print(':(')"] | ['Runtime Error', 'Accepted'] | ['s414206749', 's144094246'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 92] |
p03323 | u599547273 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['d, n = map(int, input().split())\nprint(100**d * (n+n//99))', 'a, b = [int(n) for n in input().split(" ")]\n\nprint("Yay!" if a <= 8 and b <= 8 else ":(")'] | ['Wrong Answer', 'Accepted'] | ['s280711780', 's872761860'] | [2940.0, 2940.0] | [17.0, 17.0] | [58, 89] |
p03323 | u601575292 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A, B = map(int, input().split())\n\nif A >= 8 and B >= 8:\n\tprint("Yay!")\nelse:\n\tprint(":(")', 'A, B = map(int, input().split())\n\nif A <= 8 and B <= 8:\n\tprint("Yay!")\nelse:\n\tprint(":(")'] | ['Wrong Answer', 'Accepted'] | ['s999719347', 's903750424'] | [2940.0, 2940.0] | [17.0, 18.0] | [89, 89] |
p03323 | u603234915 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a = int(input())\nb = int(input())\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')\n ", "a = int(input())\nb = int(input())\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')\n ", "a, b = map(int,input().split())\n\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')\n "] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s723161758', 's939584042', 's746582025'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 20.0] | [94, 94, 93] |
p03323 | u606045429 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['11 4', 'A, B = [int(i) for i in input().split()]\n\nif A > 8 or B > 8:\n print(":(")\nelse:\n print("Yay!")'] | ['Runtime Error', 'Accepted'] | ['s435314763', 's093895961'] | [2940.0, 3064.0] | [18.0, 17.0] | [4, 100] |
p03323 | u609061751 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['import sys\ninput = sys.stdin.readline\nA, B = [int(x) for x in input().split()]\nif A <= 8 and B <= 8:\n print("Yes")\nelse:\n print("No")', 'import sys\ninput = sys.stdin.readline\nN = int(input())\nN_str = list(str(N))\na = 0\nfor i in N_str:\n a += int(i)\nif N % a == 0:\n print("Yes")\nelse:\n print("No")', 'import sys\ninput = sys.stdin.readline\nA, B = [int(x) for x in input().split()]\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s657110734', 's717776172', 's320382641'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [139, 167, 140] |
p03323 | u609814378 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['N = int(input())\n*A, = map(int, input().split())\nans = 0\nfor a in A:\n while a % 2 == 0:\n a //= 2\n ans += 1\nprint(ans)', 'A,B = map(int, input().split())\n\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s771177919', 's461936504'] | [2940.0, 2940.0] | [18.0, 17.0] | [124, 94] |
p03323 | u617659131 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A, B = map(int,input().split())\nif A <= 8 and B <= 8:\n print(\'Yay\')\nelse:\n print(":(")', 'A, B = map(int,input().split())\nif A <= 8 and B <= 8:\n print(\'Yay!\')\nelse:\n print(":(")'] | ['Wrong Answer', 'Accepted'] | ['s925298585', 's927828742'] | [2940.0, 2940.0] | [18.0, 17.0] | [88, 89] |
p03323 | u620945921 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a,b = input().split()\n#print(a)\n#print(b)\n\nif a>8 or b>8:\n print(':(')\nelse:\n print('Yay!')\n\n\n", "a,b = input().split()\n#print(a)\n#print(b)\n\nif a>8 or b>8:\n print(':(')\nelse:\n print('Yay!')\n\n\n", "a,b = input().split()\n#print(a)\n#print(b)\n\nif int(a)>8 or int(b)>8:\n print(':(')\nelse:\n print('Yay!')\n\n\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s144132352', 's247872404', 's622721541'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [98, 100, 110] |
p03323 | u621674426 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A,B = map(int,input().split())\nif A <= 8 and B <= 8:\n print('Yay')\nelse:\n print(':(')\n", "A,B = map(int,input().split())\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')\n"] | ['Wrong Answer', 'Accepted'] | ['s933855596', 's402405010'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 93] |
p03323 | u624455250 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a=input().split(" ")\nb=int(a[0])\nc=int(a[1])\nif a>8 or b>8:\n print(":(")\nelse:\n print("Yay!")', 'a=input().split(" ")\nb=int(a[0])\nc=int(a[1])\nif c>8 or b>8:\n print(":(")\nelse:\n print("Yay!")'] | ['Runtime Error', 'Accepted'] | ['s062193666', 's140589354'] | [2940.0, 2940.0] | [18.0, 18.0] | [95, 95] |
p03323 | u624475441 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A=int(input())\nB=int(input())\nprint(['Yay!',':('][A>8 or B>8])", "A,B=map(int,input(),split())\nprint(['Yay!',':('][A>8 or B>8])", "A,B=map(int,input().split())\nprint(['Yay!',':('][A>8 or B>8])"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s067467035', 's356266905', 's473867175'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [62, 61, 61] |
p03323 | u626228246 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A,B = map(int,input().split())\nprint("Yay" if A <= 8 and B <= 8 else ":(")', 'A,B = map(int,input().split())\nprint("Yay!" if A <= 8 and B <= 8 else ":(")\n'] | ['Wrong Answer', 'Accepted'] | ['s001068544', 's897828108'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 76] |
p03323 | u627803856 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A, B = map(int, input().split())\nif(A+B>8):\n print(":(")\nelif(A+B<=8):\n print("Yay!")', 'A, B = map(int, input().split())\nif A>8 or B>8:\n print(":(")\nelif A<=8 and B<=8:\n print("Yay!")'] | ['Wrong Answer', 'Accepted'] | ['s053657544', 's754614218'] | [2940.0, 2940.0] | [18.0, 18.0] | [91, 101] |
p03323 | u628805995 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b = map(int,input().split())\nif a>8 and b>8:\n print(":(")\nelse:\n print("yay!")', 'a,b = map(int,input().split())\nif a>9 or b>9:\n print(":(")\nelse:\n print("yay!")', 'a,b = map(int,input().split())\nif \nif a>9 and b>9:\n print(":(")\nelse:\n print("yay!")', 'a,b = map(int,input().split())\nif a>9 and b>9:\n print(":(")\nelse:\n print("yay!")', 'a,b = map(int,input().split())\nif a>9 0r b>9:\n print(":(")\nelse:\n print("yay!")', 'a,b = map(int,input().split())\n\nif a<9 and b<9:\n print("Yay!")\nelif a>8 or b>8:\n print(":(")'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s349360768', 's533208928', 's690799408', 's858625313', 's924640996', 's027098457'] | [2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [82, 81, 86, 82, 81, 94] |
p03323 | u632369368 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['from collections import deque\n\nN = int(input())\nA = list(map(int, input().split()))\n\nC = 0\nwhile True:\n if len([n for n in A if n > 0 and n % 2 == 0]) == 0:\n break\n \n odds3 = [n * 3 for n in A if n % 2 != 0]\n evens = sorted([n for n in A if n % 2 == 0])\n evens3 = [n * 3 for n in evens[:-1]]\n evens2 = [n // 2 for n in [evens[-1]]]\n A = odds3 + evens3 + evens2\n C += 1\nprint(C)\n', "A, B = map(int, input().split())\n\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')\n"] | ['Runtime Error', 'Accepted'] | ['s560903593', 's830567824'] | [3564.0, 2940.0] | [25.0, 17.0] | [435, 96] |
p03323 | u634208461 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A, B = list(map(int, input().split()))\nif(A > 8 and B > 8)\n print(':(')\nelse\n print('Yey!')\n", "A, B = list(map(int, input().split()))\nif(A > 8 or B > 8):\n print(':(')\nelse:\n print('Yey!')\n", "A, B = list(map(int, input().split()))\nif(A > 8 and B > 8)\n print(':(')\nelse\n print('Yey!')\n", "A, B = list(map(int, input().split()))\nif(A > 8 or B > 8):\n print(':(')\nelse:\n print('Yey!')\n", "A, B = list(map(int, input().split()))\nif(A > 8 or B > 8):\n print(':(')\nelse:\n print('Yay!')\n"] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s002600081', 's366426752', 's601258887', 's828164779', 's485169023'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [98, 99, 98, 99, 99] |
p03323 | u635974378 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A = int(input())\nB = int(input())\nif A < 9 and B < 9:\n print('Yay!')\nelse:\n print(':(')", "A = int(input())\nB = int(input())\nif a < 9 and b < 9:\n print('Yay!')\nelse:\n print(':(')", "A, B = map(int, input().split())\nif A < 9 and B < 9:\n print('Yay!')\nelse:\n print(':(')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s058704775', 's483876262', 's222488286'] | [2940.0, 2940.0, 2940.0] | [18.0, 16.0, 17.0] | [89, 89, 93] |
p03323 | u636162168 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b=map(int,input().split())\nif a<8 or b<8:\n print(":(")\nelse:\n print("Yay!")', 'a,b=map(int,input().split())\nif a>8 or b>8:\n print(":(")\nelse:\n print("Yay!")'] | ['Wrong Answer', 'Accepted'] | ['s756296961', 's159707342'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 84] |
p03323 | u639592190 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A,B=map(int,input().split())\nprint("Yay!" if A<=8 and B<=8 ":(")', 'A,B=map(int,input().split())\nprint("Yay!" if A<=8 and B<=8 else ":(")'] | ['Runtime Error', 'Accepted'] | ['s687165036', 's297801730'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 69] |
p03323 | u640123177 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['N = int(input())\nli = list(map(int, input().split()))\na = 0\nwhile any(j % 2 == 0 for j in li):\n for i in range(N):\n if li[i]%2 == 0:\n li[i] = li[i]/2\n a += 1\n break\nprint(a)', 'a, b = map(int, input().split())\nif a <= 8 and b <= 8:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Accepted'] | ['s738488189', 's823516489'] | [2940.0, 2940.0] | [17.0, 17.0] | [192, 90] |
p03323 | u641406334 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['D, N = map(int,input().split())\nif D==0 and N<100:\n print(N)\nelif D==0 and N==100:\n print(N-1)\nelif D==1 and N<100:\n print(100*N)\nelif D==1 and N==100:\n print(100*N-1)\nelif D==2 and N<100:\n print(10000*N-1)\nelif D==2 and N==100:\n print(10000*N-1)', 'a,b = map(int,input().split())\nprint("Yay!" if a<=8 and b<=8 else ":(")'] | ['Wrong Answer', 'Accepted'] | ['s331418503', 's474058572'] | [3060.0, 2940.0] | [17.0, 18.0] | [252, 71] |
p03323 | u642012866 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A,B = list(map(int,input().split()))\n\nif A <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')", "A,B = list(map(int,input().split()))\n \nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')"] | ['Runtime Error', 'Accepted'] | ['s137445476', 's719698677'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 96] |
p03323 | u642418876 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A,B=map(int,input().split())\nif A<=8 and B<=8:\n print("Yay!")\nekse:\n print(":(")\n ', 'A,B=map(int,input().split())\nif A>8 or B>8:\n print(":(")\nelse:\n print("Yay!")\n '] | ['Runtime Error', 'Accepted'] | ['s543648782', 's091194401'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 82] |
p03323 | u644778646 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A,B = map(int,input().split())\n\nif A <= 8 and B <= 8:\n print("Yey!")\nelse:\n print(":(")\n', 'D,N = map(int,input().split())\n\nif D == 0:\n print(N)\nelif D == 1:\n print(100*N)\nelif D == 2:\n print(10000*N)\n', 'A,B = map(int,input().split())\n\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s148755103', 's508289720', 's725921677'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [94, 118, 94] |
p03323 | u645250356 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a,b = map(int,input().split())\nif a<=8 and b<=8:\n print('Yes')\nelse:\n print(':(')", "a,b = map(int,input().split())\nif a<=8 and b<=8:\n print('Yay!')\nelse:\n print(':(')"] | ['Wrong Answer', 'Accepted'] | ['s498041832', 's930779430'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 88] |
p03323 | u652498023 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['A = int(input())\nB = int(input())\n\nif A<9 and B<9:\n print("Yay!")\nelse:\n print(":(")', 'A = int(input())\nB = int(input())\n\nif A<9 and B<9:\n print("Yay!")\nelse:\n print(":(")', 'A = int(input())\nB = int(input())\n\nif A<9 and B<9:\n print("Yay!")\nelse:\n print(":(")', 'A, B = map(int, input().split())\n\nif A<9 and B<9:\n print("Yay!")\nelse:\n print(":(")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s041937832', 's349425355', 's741201049', 's422367370'] | [2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 18.0, 17.0, 20.0] | [84, 84, 84, 83] |
p03323 | u653005308 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["a=int(input())\nb=int(input())\nif a<=8 and b<=8:\n print('Yay!')\nelse:\n print(': (')", "a=int(input())\nb=int(input())\nif a<=8 and b<=b:\n print('Yay!')\nelse:\n print(': (')", "a=int(input())\nb=int(input())\nif a<=8:\n if b<=8:\n print('Yay!')\n else:\n print(': (')\nelse:\n print(': (')\n", "a,b=map(int,input().split())\nif a<=8 and b<=8:\n print('Yay!')\nelse:\n print(':(' )"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s034196925', 's932463409', 's957301778', 's066086317'] | [2940.0, 3064.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [88, 88, 128, 87] |
p03323 | u654386293 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a, b = map(int, input().split())\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yey!")', 'a, b = map(int, input().split())\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")'] | ['Wrong Answer', 'Accepted'] | ['s271718141', 's942377355'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 87] |
p03323 | u654536970 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['list1 = [int(a) for a in input().split()]\nlist1_0 = list1[0] #A\nlist1_1 = list1[1] #B\n\nif list1_0 < 8:\n print("Yay!")\nif list1_1 < 8:\n print("Yay!")\nelse:\n print(":(")', 'list1 = [int(a) for a in input().split()]\nlist1_0 = list1[0] #A\nlist1_1 = list1[1] #B\n\nif list1_0 < 8 or list1_1 < 8:\n print(":(")\nelse:\n print("Yay!")', 'list1 = [int(a) for a in input().split()]\nlist1_0 = list1[0] #A\nlist1_1 = list1[1] #B\n\nif list1_0 > 8 or list1_1 > 8:\n print(":(")\nelse:\n print("Yay!")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s001140850', 's395676354', 's327258486'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [176, 157, 157] |
p03323 | u657818166 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b=map(int,input().split())\nprint("yay" if a<=8 and b<=8 else ":(")', 'd, n = map(int, input().split())\nif d==0:\n ans=n\n if n==100:\n n=101\nelse:\n ans=(100**d)*n\n if n==100:\n ans=100**d*101\n\nprint(ans)\n', 'a,b=map(int,input().split())\nprint("Yay" if a<=8 and b<=8 else ":(")', 'a=int(input())\nb=int(input())\nprint("yay" if a<=8 and b<=8 else ":(")', 'a,b=map(int,input().split())\nif a+b<=16:\n\tprint("yay" if a<=8 and a>=1 and b>=1 and b<=8 else ":(")', 'a,b=map(int,input().split())\nprint("Yay!" if a<=8 and b<=8 else ":(")\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s103040445', 's435492055', 's475714951', 's523995740', 's675365286', 's866498519'] | [3316.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [19.0, 17.0, 19.0, 18.0, 17.0, 17.0] | [68, 156, 68, 69, 99, 70] |
p03323 | u658993896 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A, B = [int(x) for x in input().split(' ')]\n\nif A >= 8 or B >= 8:\n print('Yay!')\nelse:\n print(':(')", "A, B = [int(x) for x in input().split(' ')]\n\nif A > 8 or B > 8:\n print(':(')\nelse:\n print('Yay!')"] | ['Wrong Answer', 'Accepted'] | ['s961023158', 's150760112'] | [2940.0, 2940.0] | [17.0, 17.0] | [105, 103] |
p03323 | u660562696 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ["A,B=map(int,input().split())\nif 16-(A+B)>=2 or A==B==8:\n print('Yay!')\nif A>9 or B>9:\n print(':(')\nelse:\n print(':(')", "A,B=map(int,input().split())\nif 16-(A+B)>2:\n print('Yay!')\nif A==B==8:\n print('Yay!')\nelse:\n print(':(')\n", "A,B=map(int,input().split())\nif A<=8 and B<=8:\n print('Yay!')\n\nelse:\n print(':(')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s582223304', 's986873213', 's681743318'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [126, 114, 88] |
p03323 | u667949809 | 2,000 | 1,024,000 | E869120's and square1001's 16-th birthday is coming soon. Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces. E869120 and square1001 were just about to eat A and B of those pieces, respectively, when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake". Can both of them obey the instruction in the note and take desired numbers of pieces of cake? | ['a,b = map(int,input())\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")', 'a = int(input())\nb = int(input())\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")', 'a,b = map(int,input().split())\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s252467892', 's914757069', 's099722204'] | [3316.0, 2940.0, 3064.0] | [19.0, 17.0, 17.0] | [81, 92, 90] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.