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
u864047888
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>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', 'Accepted']
['s650109398', 's684366609']
[2940.0, 3064.0]
[17.0, 17.0]
[72, 79]
p03323
u864273141
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']
['s322038300', 's096197663']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 82]
p03323
u865191802
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?
['data = list(map(int,input().split()))\nd = data[0]\nn = data[1]\nif(n==100):\n\tprint(d*(n+1))\nelse:\n\tprint(d*n)', 'data = list(map(int,input().split()))\na = data[0]\nb = data[1]\nif(a>8 or b>8):\n\tprint(":(")\nelse:\n\tprint("Yay!")']
['Wrong Answer', 'Accepted']
['s444898835', 's219945060']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 111]
p03323
u866478932
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(N*100**D)', "A, B = map(int, input().split())\ncakes = 'E'*A + 'S'*B + '0' *(16-A-B)\n\nwhile 'ES' in cakes:\n cakes = cakes.replace('ES', '')\nwhile 'E0' in cakes:\n cakes = cakes.replace('E0', '')\nwhile 'S0' in cakes:\n cakes = cakes.replace('S0', '')\n\nif 'EE' in cakes or 'SS' in cakes:\n print(':(')\nelse: print('Yay!')\n"]
['Wrong Answer', 'Accepted']
['s088732802', 's077163186']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 315]
p03323
u866949333
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?
["\na = int(input())\nb = int(input())\n\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')\n", "a, b = (int(i) for i in input().split())\n\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')\n"]
['Runtime Error', 'Accepted']
['s266003856', 's862433960']
[2940.0, 2940.0]
[17.0, 17.0]
[140, 104]
p03323
u867848444
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())\nw=list(range(1,101))\nif d==0:\n print(w[n-1])\nelif d==1:\n print(n*100)\nelse:\n print(n*10000)', 'd,n=map(int,input().split())\nprint(100**d*n if n!=100 else 100**d*(n+1))', "a,b=map(int,input().split())\nprint('Yay!' if a<9 and b<9 else ':(')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s058823601', 's511446373', 's369278569']
[3060.0, 2940.0, 2940.0]
[16.0, 17.0, 17.0]
[129, 72, 67]
p03323
u869708025
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']
['s445590859', 's019172268']
[2940.0, 2940.0]
[17.0, 19.0]
[88, 96]
p03323
u869728296
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().strip().split(" ")\nb=[int(i) for in a]\n\nif(b[0]<=8 and b[1]<=8):\n print("Yay!")\nelse:\n print(":(")\n', 'a=input().strip().split(" ")\nb=[int(i) for i in a]\n\nif(b[0]<=8 and b[1]<=8):\n print("Yay!")\nelse:\n print(":(")\n']
['Runtime Error', 'Accepted']
['s115649297', 's609189461']
[2940.0, 2940.0]
[17.0, 18.0]
[115, 117]
p03323
u871550854
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\nimport sys\nfrom collections import deque\n\ndef input_data(d):\n t = sys.stdin.read()\n if t:\n return t\n else:\n if d[0] == "\\n":\n d = d[1:]\n if d[-1] == "\\n":\n d = d[:-1] \n return d\n\nA, B = map(int,input_data().split())\nA\nout = ":("\nif A <= 6 and B <= 6:\n out = "Yay!"\n\nprint(out)', '\n\nimport sys\nfrom collections import deque\n\ndef input_data(d=""):\n t = sys.stdin.read()\n if t:\n return t\n else:\n if d[0] == "\\n":\n d = d[1:]\n if d[-1] == "\\n":\n d = d[:-1] \n return d\n\nA, B = map(int,input_data().split())\nA\nout = ":("\nif A <= 8 and B <= 8:\n out = "Yay!"\n\nprint(out)']
['Runtime Error', 'Accepted']
['s194253404', 's049196542']
[3316.0, 3316.0]
[21.0, 20.0]
[331, 334]
p03323
u871804476
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('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']
['s033619035', 's021823585']
[2940.0, 2940.0]
[17.0, 18.0]
[85, 86]
p03323
u871934301
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("Yay!")\nelse:\n print(":(") \n\n\n\n\n\n\n', 'A,B=map(int,input().split())\nif A>8 or B>8:\n print(":(")\nelse:\n print("Yay!") \n\n\n\n\n\n\n']
['Wrong Answer', 'Accepted']
['s812848420', 's385831127']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 98]
p03323
u873680834
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())\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', 'Accepted']
['s965891726', 's316475090']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 89]
p03323
u875855656
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("Yey!")\nelse:\n print(":(")', '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 or b>8:\n print(":(")\nelse:\n print("Yay!")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s073571718', 's845921373', 's575504208']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[79, 80, 80]
p03323
u878935253
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 = (int(i) for i in input().split())\n\nif a > 8 or b > 8:\n print(':(')\nelse:\n print('Yay!')\n"]
['Runtime Error', 'Accepted']
['s649292500', 's823157811']
[2940.0, 2940.0]
[22.0, 17.0]
[94, 100]
p03323
u883323885
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)', 'A, B = map(int, input().split())\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")']
['Wrong Answer', 'Accepted']
['s437051099', 's158631274']
[2940.0, 3316.0]
[17.0, 21.0]
[49, 93]
p03323
u883792993
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("Yah!")\nelse:\n print(":(")', 'A,B = list(map(int, input().split()))\n\nif A<=8 and B<=8:\n print("Yay!")\nelse:\n print(":(")']
['Wrong Answer', 'Accepted']
['s430772714', 's574364428']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 96]
p03323
u884382638
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()\n\nif(a[0]<=8 and a[1]<=8):\n print("Yay!")\nelse:\n print(":(")', 'a = input().split()\n \nif(int(a[0])<=8 and int(a[1])<=8):\n print("Yay!")\nelse:\n print(":(")']
['Runtime Error', 'Accepted']
['s820549191', 's665136564']
[2940.0, 2940.0]
[17.0, 17.0]
[81, 92]
p03323
u884531978
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(x) for x in input().split()]\n\nprint(pow(10,d)*n)', '#coding:utf-8\nimport sys\n\ninput_nums = [int(x) for x in split(readline())]\n\nif len(input_num) > 2 :\n\tsys.exit("illegal input")\n \nif (sum(input_nums)) > 16:\n sys.exit("illegal input")\n \nif (min(input_nums)) < 1:\n sys.exit("illegal input")\n \nif (max_num = max(input_nums)) > 16:\n sys.exit("illegal input")\nelif max_num > 8:\n print(":(")\nelse :\n print(\'Yay!\')', 'd,n = [int(x) for x in input().split()]\n\nif n == 100:\n print(pow(100,d)*101)\nelse:\n print(pow(100,d)*n)', 'd,n = [int(x) for x in input().split()]\n\nprint(pow(100,d)*n)', 'd,n = [int(x) for x in input().split()]\n\nif n == 100:\n print(pow(100,d)*101)\nelse:\n print(pow(100,d)*n)', '#coding:utf-8\nimport sys\n\ninput_nums = [int(x) for x in sys.stdin.readline().split()]\n\nif len(input_nums) > 2 :\n\tsys.exit("illegal input")\n \nif (sum(input_nums)) > 16:\n sys.exit("illegal input")\n \nif (min(input_nums)) < 1:\n sys.exit("illegal input")\n\nmax_num = max(input_nums)\nif max_num > 16:\n sys.exit("illegal input")\nelif max_num > 8:\n print(":(")\nelse :\n print(\'Yay!\')']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s578447068', 's596694427', 's607953966', 's695398775', 's957601500', 's380886782']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0, 18.0, 18.0, 17.0]
[59, 366, 105, 60, 105, 382]
p03323
u890807039
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 = int(input())\n b = int(input())\n \n if a<=8 and b<=8 :\n print("Yay!")\n else:\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', 'Accepted']
['s126638259', 's682955935', 's951983286']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[93, 122, 90]
p03323
u893239355
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\nA, B = [int(x) for x in stdin.readline().rstrip().split()]\nif A<=8 and B<=8:\n print("Yey!")\nelse:\n print(":(")', 'from sys import stdin\nA, B = [int(x) for x in stdin.readline().rstrip().split()]\nif A<=8 and B<=8:\n print("Yay!")\nelse:\n print(":(")']
['Wrong Answer', 'Accepted']
['s712628949', 's279076483']
[2940.0, 2940.0]
[17.0, 17.0]
[138, 138]
p03323
u896430034
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"""\nCreated on Sat Jun 16 23:09:00 2018\n\n@author: sakas\n"""\nA,B = map(int(input()))\n\nif A>9 or B>9:\n print(":(")\nelse:\n print("Yay!")\n', '# -*- coding: utf-8 -*-\n"""\nCreated on Sat Jun 16 23:09:00 2018\n\n@author: sakas\n"""\nA = input()\nB = input()\nif A>=9 or B>=9:\n print(":(")\nelse:\n print("Yay!")\n', '# -*- coding: utf-8 -*-\n"""\nCreated on Sat Jun 16 23:09:00 2018\n\n@author: sakas\n"""\nA = input()\nB = input()\nif A>9 or B>9:\n print(":(")\nelse:\n print("Yay!")\n', '# -*- coding: utf-8 -*-\n"""\nCreated on Sat Jun 16 23:09:00 2018\n\n@author: sakas\n"""\nA, B = map(int, input().split())\nif A>=9 or B>=9:\n print(":(")\nelse:\n print("Yay!")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s319974551', 's353754313', 's707915077', 's661180815']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[164, 165, 163, 174]
p03323
u899645116
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(':(')\n"]
['Runtime Error', 'Accepted']
['s301222795', 's592479952']
[2940.0, 3064.0]
[18.0, 17.0]
[81, 90]
p03323
u901598613
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(":(")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s057319169', 's165064805', 's551371719']
[9012.0, 8888.0, 9156.0]
[23.0, 28.0, 22.0]
[86, 86, 86]
p03323
u902786897
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!")\n else:\n print(":(")', 'a,b=map(int,input().split())\nif (a<9)&(b<9):\n print("Yay!")\nelse:\n print(":(")']
['Runtime Error', 'Accepted']
['s513836230', 's220473562']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 82]
p03323
u905510147
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 (A < 9) and (B < 9):\n print("Yay!")\nelse:\n print(":(")\n', 'A, B = map(int, input().split())\nprint(A)\nif (A < 9) and (B < 9):\n print("Yay!")\nelse:\n print(":(")\n', 'A, N = map(int, input().split())\nif (A < 9) and (B < 9):\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(":(")\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s175167201', 's370595464', 's809284590', 's716394040']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 18.0]
[97, 106, 97, 97]
p03323
u908349502
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(intput())\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(':(')\n"]
['Runtime Error', 'Accepted']
['s810137057', 's835175473']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 94]
p03323
u910756197
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("No")\nelse:\n print("Yes")', 'a, b = map(int, input().split())\nif max(a, b) > 8:\n print(":(")\nelse:\n print("Yay!")']
['Wrong Answer', 'Accepted']
['s914644432', 's553510019']
[2940.0, 2940.0]
[17.0, 18.0]
[86, 86]
p03323
u914330401
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("Yay")\nelse:\n print(":(")', 'A, B = map(int, input().split())\nif A > 8 or B > 8:\n print(":(")\nelse:\n print("Yay!")']
['Wrong Answer', 'Accepted']
['s065902950', 's081490102']
[3316.0, 3316.0]
[21.0, 20.0]
[86, 87]
p03323
u920694585
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('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']
['s721241727', 's401634717']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 95]
p03323
u922952729
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?
['try:\n A=int(input())\n B=int(input())\nexcept:\n A,B=[int(i) for i in input().split(" ")]\nif A<=8 and B<=8:\n print("Yay!")\nelse:\n print(":(")\n', 'A,B=[int(i) for i in input().split(" ")]\nif A<=8 and B<=8:\n print("Yay!")\nelse:\n print(":(")\n']
['Runtime Error', 'Accepted']
['s080716181', 's241241271']
[2940.0, 2940.0]
[17.0, 21.0]
[154, 99]
p03323
u928784113
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,B=map(int,input().split)\nif A <= 8 and B <= 8:\n print(Yay!)\nelse:\n print(:()', '# -*- coding: utf-8 -*-\nA,B=map(int,input().split)\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")', '# -*- coding: utf-8 -*-\nA,B=map(int,input().split())\nif A <= 8 and B <= 8:\n print(Yay!)\nelse:\n print(:()', '# -*- coding: utf-8 -*-\nA,B =map(int,input().split())\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s160481417', 's198842116', 's568842664', 's317367003']
[2940.0, 3064.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[104, 108, 106, 111]
p03323
u929585607
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()), int(input())\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']
['Runtime Error', 'Accepted']
['s102805982', 's058404164']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 95]
p03323
u930480241
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())\n\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')\n"]
['Runtime Error', 'Accepted']
['s816637163', 's295469865']
[2940.0, 3316.0]
[18.0, 19.0]
[96, 96]
p03323
u931071094
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<9 and b<9:\n print("yay!")\nelse :\n print(":(")\n', '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<9 and b<9:\n print("Yay!")\nelse :\n print(":(")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s142023114', 's727897420', 's728890774']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[83, 81, 83]
p03323
u934246119
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(':(')\n", "a, b = map(int, input().split())\n\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')\n"]
['Runtime Error', 'Accepted']
['s664298722', 's159087295']
[3064.0, 2940.0]
[18.0, 18.0]
[97, 96]
p03323
u940102677
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']
['s461173120', 's185039899']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 86]
p03323
u944600619
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(N*(100**D))', "a,b = map(int,input().split())\nif (a <= 8) and (b <= 8):\n print('Yay!')\nelse:\n print(':(')"]
['Wrong Answer', 'Accepted']
['s760721749', 's018554477']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 96]
p03323
u946035637
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 = input()\nB = 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(":(")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s444097803', 's808705526', 's853693781', 's560626407']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[94, 82, 94, 92]
p03323
u947327691
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 priunt("Yay!")', 'a,b= map(int,input().split())\n\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")']
['Runtime Error', 'Accepted']
['s576743329', 's094786191']
[2940.0, 2940.0]
[18.0, 17.0]
[90, 89]
p03323
u948199835
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 if A-B <=1 or B-A <=1:\n\tprint("Yay!")\nelse:\n\tprint(":(")\n', 'A,B = map(int, input().split())\n\nif A%2==0 and B%2==0:\n\tprint("Yay!")\nelse:\n\tif A-B <=1 or B-A <=1:\n\t\tprint(":(")', 'A,B = map(int, input().split())\n\nif A<9 and B<9:\n\tprint("Yay!")\nelse:\n\tprint(":(")\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s043731823', 's475075968', 's897046083']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[93, 113, 83]
p03323
u948911484
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("Yay!")\nelse:\n print(":(")', 'a,b = map(int,input().split())\nif a > 8 or b > 8:\n print(":(")\nelse:\n print("Yay!")']
['Wrong Answer', 'Accepted']
['s290823484', 's494429263']
[9104.0, 9096.0]
[28.0, 28.0]
[89, 89]
p03323
u950708010
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(i) for i in input().split()] \nif a[0]<= 8 and a[1]<=8:\n print('Yes')\nelse:\n print(':(')", "a = [int(i) for i in input().split()] \nif a[0]<= 8 and a[1]<=8:\n print('Yay!')\nelse:\n print(':(')"]
['Wrong Answer', 'Accepted']
['s906161589', 's332349591']
[2940.0, 2940.0]
[17.0, 18.0]
[96, 97]
p03323
u951601135
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=list(map(int,input().split()))\nif(all(l)<=8):\n print('Yah!')\nelse:print(':(')", "l=list(map(int,input().split()))\nprint(l)\nif(all(l[x] <= 8 for x in range(len(l)) )):\n print('Yay!')\nelse:print(':(')", "a,b=map(int,input().split())\nprint('Yay!' if (a<9 and b<9) else ':(')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s773081156', 's809947388', 's223954408']
[2940.0, 2940.0, 3064.0]
[17.0, 18.0, 18.0]
[80, 118, 69]
p03323
u957872856
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 == 0 and b == 100:\n print(101)\nelif a == 1 and b == 100:\n print(10100)\nelif a == 2 and b == 100:\n print(1010000)\nelse:\n print((100**a)*b)\n', 'a,b = map(int,input().split())\nprint("Yay!" if a<=8 and b<=8 else ":(")']
['Wrong Answer', 'Accepted']
['s832959416', 's585512795']
[2940.0, 2940.0]
[17.0, 17.0]
[179, 71]
p03323
u960171798
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 <= 99:\n print((100**D) * N)\nelse:\n print((100**D) * 101)\n', 'D,N = map(int, input().split())\nif N <= 99:\n print(100**D * N)\nelse:\n print(100**D * 101)', 'A,B = map(int, input().split())\nif A <= 8 and B <= 8:\n print("Yay!")\nelse:\n print(":(")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s211152842', 's659653429', 's414828675']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[96, 91, 89]
p03323
u964460823
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+B<=8:\n print('Yay!')\nelif abs(A-B)<=(16-min([A,B])*2)/2:\n print('Yay!')\nelse:\n print(':(')\n", "A=int(input())\nB=int(input())\nif A+B<=8:\n print('Yay!')\nelif abs(A-B)<=(16-min([A,B]*2))/2:\n print('Yay!')\nelse:\n print(':(')\n", "A,B=map(int, input().split(' '))\nif A+B<=8:\n print('Yay!')\nelif abs(A-B)<=(16-min([A,B])*2)/2:\n print('Yay!')\nelse:\n print(':(')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s197440233', 's248735400', 's170709108']
[2940.0, 3316.0, 2940.0]
[17.0, 19.0, 17.0]
[135, 135, 138]
p03323
u966695411
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?
["#! /usr/bin/env python3\n\nA = int(input())\nB = int(input())\n\nif A <= 8 and B <= 8:\n print('Yay!')\nelse:\n print(':(')", "s=input();print(['Yay!',':('][len(s)>3or'9'in s])"]
['Runtime Error', 'Accepted']
['s329090974', 's800011849']
[2940.0, 2940.0]
[18.0, 17.0]
[121, 49]
p03323
u967835038
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>6 or b>6:\n print(':(')\nelse:\n print('Yay!')\n", "a,b=map(int,input().split())\nif a>8 or b>8:\n print(':(')\nelse:\n print('Yay!')\n"]
['Runtime Error', 'Accepted']
['s281499137', 's217618969']
[2940.0, 2940.0]
[17.0, 18.0]
[72, 84]
p03323
u969226579
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\nif d ==0 and n == 100:\n print(101)\nelif d == 1 and n == 100:\n print(10001)\nelif d ==2 and n == 100 :\n print(1000001)\nelse:\n base = 100**d\n print(base*n)\n', 'a, b = map(int, input().split())\n\nif a < 9 and b < 9:\n print("Yay!")\nelse:\n print(":(")']
['Wrong Answer', 'Accepted']
['s292448701', 's341039953']
[2940.0, 2940.0]
[17.0, 17.0]
[202, 93]
p03323
u971476953
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("yey!")', 'a,b = map(int,input().split())\nif a + b > 16 or 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', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s068312467', 's254498302', 's289556039', 's429540887']
[9104.0, 9064.0, 9136.0, 9048.0]
[28.0, 26.0, 26.0, 27.0]
[85, 86, 99, 85]
p03323
u977642052
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?
['def resolve():\n A, B = map(int, input().split(\' \'))\n\n if not (A <= 8 and B <= 8):\n print(\':(\')\n return\n\n if A < B:\n print(\'Yay!\')\n else:\n print(\':(\')\n\n\nif __name__ == "__main__":\n resolve()\n', "A, B = map(int, input().split(' '))\n\nif A % 2 == 0 and B % 2 == 0:\n print('Yay!')\nelse:\n print(':(')\n", "A, B = map(int, input().split(' '))\n\nif A <= 8 and A % 2 == 0 and B <= 8 and B % 2 == 0:\n print('Yay!')\nelse:\n print(':(')\n", "a, b, c = map(int, input().split(' '))\n\nif b - a == c - b:\n print('YES')\nelse:\n print('NO')\n", "#!/usr/bin/env python3\nimport sys\n\n\ndef solve(A: int, B: int):\n if A % 2 != 0 or B % 2 != 0:\n if A > 8 or B > 8:\n print(':(')\n return\n\n print('Yay!')\n return\n\n\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n A = int(next(tokens)) # type: int\n B = int(next(tokens)) # type: int\n solve(A, B)\n\n\nif __name__ == '__main__':\n main()\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s245015754', 's694490568', 's814205905', 's979140701', 's631838764']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[20.0, 17.0, 17.0, 18.0, 17.0]
[233, 107, 129, 98, 496]
p03323
u977982384
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\nif n != 100:\n\tprint(100**d*n)\nelse:\n print(100**d*(n+1))', "a,b=map(int,input().split())\n\nif a > 8 or b > 8:\n print(':(')\nelse:\n print('Yay!')"]
['Wrong Answer', 'Accepted']
['s065713606', 's589729616']
[9076.0, 9060.0]
[28.0, 27.0]
[89, 84]
p03323
u980492406
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!')\n"]
['Wrong Answer', 'Accepted']
['s808706565', 's402275033']
[2940.0, 2940.0]
[17.0, 17.0]
[90, 92]
p03323
u982594421
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 b < a:\n a, b = b, a\nif (16 - b - 2 <= a):\n print('Yay!')\nelse:\n print(':(')\n", "a, b = map(int, input().split())\nif b < a:\n a, b = b, a\nif if b <= 8 or 16 - b - 2 <= a:\n print('Yay!')\nelse:\n print(':(')", "a, b = map(int, input().split())\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')\n "]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s113758091', 's463367956', 's216668450']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[115, 125, 93]
p03323
u983967747
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 N=n%100\n if d != 0:\n return (100**d)*n\n elif d == 100:\n return (100*d)*n\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()", 'a,b=map(int,input().split(" "))\nif(a>8 or b > 8):\n print(":(")\nelse:\n print("Yay!")']
['Wrong Answer', 'Accepted']
['s004145651', 's604345144']
[3064.0, 2940.0]
[17.0, 17.0]
[574, 89]
p03323
u985827933
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 ":(")', 'import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nA,B=map(int,input().split())\nprint("Yay!" if a <= 8 and b <= 8 else ":(")', 'A,B=map(int,input().split())\nprint("Yay!" if A<9 and B<9 else ":(")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s565424974', 's575386949', 's868750412']
[2940.0, 2940.0, 3316.0]
[17.0, 17.0, 19.0]
[73, 189, 67]
p03323
u988402778
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,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(":(")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s047755635', 's339512584', 's770396414']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0]
[95, 100, 101]
p03323
u989326345
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) 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', 'Accepted']
['s889907731', 's599152393']
[2940.0, 2940.0]
[17.0, 18.0]
[88, 89]
p03323
u991269553
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())\n\nkaku_a = 360/16 * a\nkaku_b = 360/16 * b\n\nif kaku_a < 180 and kaku_b < 180:\n print('Yey!')\nelse:\n print(':(')", "a,b = map(int,input().split())\n\nif a < 8 and b < 8:\n print('Yey!')\nelse:\n print(':(')", "a,b = map(int,input().split())\n\nif a <= 8 and b <= 8:\n print('Yey!')\nelse:\n print(':(')", "a,b = map(int,input().split())\nkaku_a = 360/16 * a\nkaku_b = 360/16 * b\nif kaku_a <= 180 and kaku_b <= 180:\n print('Yey!')\nelse:\n print(':(')", "a,b = map(int,input().split())\n\nif a <= 8 and b <= 8:\n print('Yey!')\nelse:\n print(':(')", "a,b = map(int,input().split())\n\nif a <= 8 and b <= 8:\n print('Yay!')\nelse:\n print(':(')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s411285201', 's600172477', 's738835078', 's753108699', 's931165901', 's944758625', 's237068610']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0, 18.0, 18.0]
[94, 146, 91, 93, 146, 93, 93]
p03323
u992181519
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 || b > 8):\n\tprint ":("\nelse:\n\tprint "Yay!"', 'a, b = map(int, input().split())\nif(a > 8 or b > 8):\n\tprint(":(")\nelse:\n\tprint("Yay!")']
['Runtime Error', 'Accepted']
['s975246268', 's203678396']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 86]
p03323
u994064513
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?
["def LI():\n\treturn [ int(s) for s in input().split() ]\n \na,b = LI()\n\nprint('Yay') if a <= 8 and b <= 8 else print(':(')", "def LI():\n\treturn [ int(s) for s in input().split() ]\n \na,b = LI()\n \nprint('Yay!') if a <= 8 and b <= 8 else print(':(')"]
['Wrong Answer', 'Accepted']
['s759919073', 's377665816']
[2940.0, 2940.0]
[18.0, 18.0]
[119, 121]
p03323
u999750647
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 0 < a < 9 and 0 < b < 9:\n print('YaY!')\nelse:\n print(':(') ", "a,b = map(int,input().split())\nif a > 8 or b > 8:\n print(':(')\nelse:\n print('Yay!') "]
['Wrong Answer', 'Accepted']
['s435303616', 's651669280']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 90]
p03325
u000123984
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['l = input()\nli = list(map(int, input().split()))\nm = 0\nfor i in l:\n n = li[i]\n while not n % 2:\n m += 1\n n /= 2\nelse:\n print(m)', 'l = input()\nli = list(map(int, input().split()))\nm = 0\nfor i in range(l):\n n = li[i]\n while not n % 2:\n m += 1\n n /= 2\nelse:\n print(m)', 'li = list(map(int, input().split()))\nm = 0\nfor i in range(len(li)):\n n = li[i]\n while not n % 2:\n m += 1\n n /= 2\nelse:\n print(m)', 'l = int(input())\nli = list(map(int, input().split()))\nm = 0\nfor i in range(l):\n n = li[i]\n while not n % 2:\n m += 1\n n /= 2\nelse:\n print(m)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s680677157', 's700918893', 's710430385', 's953029123']
[4148.0, 4148.0, 3060.0, 4148.0]
[20.0, 20.0, 17.0, 136.0]
[136, 143, 137, 148]
p03325
u016901717
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n=int(input())\nA=list(map(int,input().split()))\ncnt=0\nif any(A%2==0):\n cnt+=1\nprint(cnt)\n\n\n\n', 'n=int(input())\nA=list(map(int,input().split()))\ncnt=0\nfor a in A:\n while a%2 == 0:\n cnt += 1\n a = a//2\nprint(cnt) \n\n']
['Runtime Error', 'Accepted']
['s338984340', 's083454929']
[4148.0, 4148.0]
[20.0, 87.0]
[95, 136]
p03325
u019578976
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['import math\nN = int(input())\nA = list(map(int, input().split(" ")))\n\n\nB = [math.log2(i) for i in A]\n\ntmp = 0\nfor i in range(N):\n if B[i] % 1 == 0:\n tmp += B[i]\nprint(tmp)', 'import math\nN = int(input())\nA = list(map(int, input().split(" ")))\n\ncnt = 0\nfor i in range(N):\n while A[i] >= 2 and A[i] % 2 == 0:\n cnt += 1\n A[i] //= 2\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s617546991', 's625780081']
[4148.0, 4148.0]
[24.0, 126.0]
[180, 181]
p03325
u019584841
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\nl = [int(x) for x in input().split()]\ns = 0\nfor i in range(n):\n while l[i]%2==1:\n l[i] = l[i]//2\n s += 1\nprint(s)', 'n = int(input())\nl = [int(x) for x in input().split()]\ns = 0\nfor i in range(n):\n while l[i]%2==0:\n l[i] = l[i]//2\n s += 1\nprint(s)\n']
['Wrong Answer', 'Accepted']
['s868152203', 's388675335']
[4148.0, 4148.0]
[25.0, 109.0]
[137, 138]
p03325
u020390084
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\nsuuretu = [int(x) for x in input().split()]\nanswer = 0\n \nfor i in suuretu:\n answer += calculate(i)\n \ndef calculate(i):\n a = 0\n while i % 2 == 0:\n i = i / 2\n a += 1\n return a\n\nprint(answer)', 'suuretu = [int(x) for x in input().split()]\nanswer = 0\n\nfor i in suuretu:\n answer += calculate(i)\n\ndef calculate(i):\n a = 0\n while i % 2 == 0:\n i = i / 2\n a += 1\n\n return a\n\n\nprint(answer)', 'suuretu = [int(x) for x in input().split()]\nanswer = 0\n\nfor i in suuretu:\n answer += calculate(i)\n\n\ndef calculate(int):\n a = 0\n while int % 2 == 0:\n int = int / 2\n a += 1\n \n return a \n\nprint(answer)', 'suuretu = [int(x) for x in input().split()]\nn = len(suuretu)\nanswer = 0\n\nfor i in suuretu:\n calculate(i)\n\ndef calculate(int):\n while int%2 == 0:\n int = int / 2\n answer += 1\n\nprint (answer)', 'n = int(input())\nsuuretu = [int(x) for x in input().split()]\nanswer = 0\n \nfor i in suuretu:\n answer += calculate(i)\n \ndef calculate(i):\n a = 0\n while i % 2 == 0:\n i = i / 2\n a += 1\n return a\n\nprint(answer)', 'n = int(input())\nsuuretu = [int(x) for x in input().split()]\nanswer = 0\n\nfor i in suuretu:\n answer += calculate(i)\n\ndef calculate(i):\n a = 0\n while i % 2 == 0:\n i = i / 2\n a += 1\n\n return a\n\n\nprint(answer)', '#!/usr/bin/env python3\nimport sys\n\n\ndef solve(N: int, a: "List[int]"):\n answer = 0\n for i in range(N):\n while a[i]%2 == 0:\n answer += 1\n a[i] //= 2\n \n print(answer)\n return\n\n\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n a = [int(next(tokens)) for _ in range(N)] # type: "List[int]"\n solve(N, a)\n\nif __name__ == \'__main__\':\n main()\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s238195192', 's519382079', 's644383642', 's680067633', 's689402785', 's968533447', 's395855875']
[4148.0, 3060.0, 3060.0, 3060.0, 4148.0, 4148.0, 4212.0]
[20.0, 18.0, 17.0, 18.0, 20.0, 20.0, 77.0]
[231, 214, 227, 208, 231, 231, 544]
p03325
u036340997
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\na = list(map(int, input().split()))\n\ns = 0\nfor i in range(n):\n while a[i] > 0:\n a[i] //= 2\n s +- 1\nprint(s)', 'n = int(input())\na = list(map(int, input().split()))\n\ns = 0\nfor i in range(n):\n while a[i] % 2 == 0:\n a[i] //= 2\n s += 1\nprint(s)\n']
['Wrong Answer', 'Accepted']
['s754953081', 's451079621']
[4148.0, 4148.0]
[90.0, 99.0]
[131, 137]
p03325
u042377269
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\nA = input().split()\nprint(A)\n\ncount = 0\nfor i in range(len(A)):\n while(int(A[i]) % 2 == 0):\n count += 1\n A[i] = int(A[i])/2\nprint(count)\n', 'n = int(input())\nA = input().split()\n\ncount = 0\nfor i in range(len(A)):\n while(int(A[i]) % 2 == 0):\n count += 1\n A[i] = int(A[i])/2\nprint(count)\n']
['Wrong Answer', 'Accepted']
['s937099615', 's603701448']
[4212.0, 4012.0]
[176.0, 175.0]
[171, 162]
p03325
u060392346
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\na = list(map(int, input().split()))\n\nr = 0\nfor aa in a:\n j = 0\n while aa // (2 ** j) == 0:\n j += 1\n r += j\nprint(r)', 'n = int(input())\na = list(map(int, input().split()))\n\nr = 0\nfor aa in a:\n j = 0\n while aa // (2 ** j) == 0:\n j += 1\n r += j-1\nprint(r)', 'n = int(input())\na = list(map(int, input().split()))\n\nr = 0\nfor aa in a:\n j = 0\n while aa % (2 ** j) == 0:\n j += 1\n r += j-1\nprint(r)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s423104677', 's619833431', 's294910824']
[4148.0, 4148.0, 4148.0]
[23.0, 24.0, 144.0]
[138, 140, 139]
p03325
u077337864
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
["N = int(input().strip())\n \nA = map(int, input().strip().split())\n \nc = 0\nif all([a // 2 == 1 for a in A]):\n print(0)\nelse:\n binA = [bin(a) for a in A]\n for a in binA:\n if a[-1] == '1':\n continue\n for b, i in zip(a[2:], reversed(range(len(a) - 2))):\n c += int(b) * i\n print(c)", "N = int(input().strip())\n\nA = map(int, input().strip().split())\n\nif all([a // 2 == 1 for a in A]):\n print(0)\nelse:\n A = [bin(a) for a in A]\n for a in A:\n if a[-1] == '1':\n continue\n for b, i in zip(a[2:], reversed(range(len(a) - 2))):\n c += int(b) * i\n print(c)", "N = int(input().strip())\n\nA = map(int, input().strip().split())\n\nif all([a // 2 == 1 for a in A]):\n print(0)\nelse:\n A = [bin(a) for a in A]\n for a in A:\n if a[-1] == '1':\n continue\n for b, i in zip(a[2:], reversed(range(len(a) - 2))):\n c += int(b) * i\n print(c)", "N = int(input().strip())\n \nA = list(map(int, input().strip().split()))\n \nc = 0\nif not all([a // 2 == 1 for a in A]):\n binA = [bin(a) for a in A]\n for a in binA:\n c += len(a) - a.rindex('1') - 1\nprint(c)\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s157610372', 's229457438', 's500449728', 's573412577']
[3828.0, 3828.0, 3828.0, 4404.0]
[20.0, 23.0, 21.0, 28.0]
[295, 281, 281, 208]
p03325
u078814967
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N=input()\nli = list(map(int,input().split()))\ncnt =0\nfor i in li:\n print(i, cnt)\n while i % 2 == 0:\n i = i / 2\n cnt += 1\nprint(cnt)', 'N=input()\nli = list(map(int,input().split()))\n\nfor i in li:\n cnt =0\n while i % 2 == 0:\n i= i / 2\n cnt += 1\nprint(cnt)', 'N=input()\nli = list(map(int,input().split()))\ncnt =0\nfor i in li:\n while i % 2 == 0:\n i = i / 2\n cnt += 1\nprint(cnt)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s811803562', 's837426213', 's521163080']
[4228.0, 4148.0, 4148.0]
[126.0, 117.0, 116.0]
[152, 137, 134]
p03325
u089032001
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\nA = list(map(int, input().split()))\n\nans = 0\nfor a in A:\n tmp = format(a, "b")\n ans += len(tmp) - tmp.rfind("1") + 1\nprint(ans)', 'n = int(input())\nA = list(map(int, input().split()))\nprint(sum(len(format(a, "b")) - format(a, "b").rfind("1")-1 for a in A))']
['Wrong Answer', 'Accepted']
['s964290804', 's207755924']
[4148.0, 4148.0]
[27.0, 30.0]
[146, 125]
p03325
u090406054
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n=int(input())\na=list(map(int,input().split()))\ncnt=0\nfor i in range(n):\n while a[i]%2=0:\n a[i]=a[i]/2\n cnt+=1\n \nprint(cnt)\n ', 'n=int(input())\na=list(map(int,input().split()))\ncnt=0\nfor i in range(n):\n while a[i]%2==0:\n a[i]=a[i]/2\n cnt+=1\n \nprint(cnt)\n \n\n']
['Runtime Error', 'Accepted']
['s958753749', 's585858616']
[8924.0, 10064.0]
[24.0, 98.0]
[136, 139]
p03325
u093500767
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\na_list = list(map(int, input().split()))\ndef count_2(num):\n count = 0\n while num%2 == 0:\n num /= 2\n pritn(num)\n count += 1\n return count\nans = 0\nfor i in range(n):\n ans += count_2(a_list[i])\nprint(ans)', 'n = int(input())\na_list = list(map(int, input().split()))\ndef count_2(num):\n count = 0\n while num%2 == 0:\n num /= 2\n count += 1\n return count\nans = 0\nfor i in range(n):\n ans += count_2(a_list[i])\nprint(ans)']
['Runtime Error', 'Accepted']
['s344852474', 's798420890']
[4148.0, 4148.0]
[20.0, 99.0]
[251, 232]
p03325
u106297876
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N = int(input())\nA = list(map(int, input().split()))\n\ns = 1\nans = 0\nfor a in A:\t\n\twhile a % 2 == 0:\n\t\ta = a // 2\n\t\tans += 1\n\tprint(ans)', 'N = int(input())\nA = list(map(int, input().split()))\n\ns = 1\nans = 0\nfor a in A:\t\n\twhile a % 2 == 0:\n\t\ta = a // 2\n\t\tans += 1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s118840963', 's348787149']
[4156.0, 4148.0]
[84.0, 85.0]
[135, 134]
p03325
u106778233
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n=int(input())\na=list(map(int,input().split()))\ncnt=10**9\nfor i in range(n):\n k=0\n while (a-1):\n if a%2==0:\n a=a//2\n k+=1\n else:break\n cnt=min(cnt,k) \nprint(cnt)\n', 'n=int(input())\na=list(map(int,input().split()))\ncnt=0\nfor i in range(n):\n while a-1:\n if a%2==0:\n a=a//2\n cnt+=1\n else:break\n \nprint(cnt)', 'n=int(input())\na=list(map(int,input().split()))\ncnt=10**9\nfor i in range(n):\n k=0\n while (a[i]-1):\n if a[i]%2==0:\n a[i]=a[i]//2\n k+=1\n else:break\n cnt=min(cnt,k) \nprint(cnt)\n', 'n=int(input())\na=list(map(int,input().split()))\ncnt=0\nfor i in range(n):\n k=0\n while 1:\n if a[i]%2==0:\n a[i]=a[i]//2\n k+=1\n else:break\n cnt+=k \nprint(cnt)\n']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s303778163', 's763859759', 's938308424', 's650927733']
[4140.0, 4148.0, 4148.0, 4148.0]
[20.0, 20.0, 132.0, 108.0]
[184, 159, 196, 177]
p03325
u107269063
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['import math\nn = int(input())\na = list(map(int,input().split()))\ng_c = sum([1 for i in a if i%2==0]) \nans = 0\nfor i in a:\n if i%2==0:\n while(i%2==0):\n i = i//2\n ans += 1\nprint(c)', 'import math\nn = int(input())\na = list(map(int,input().split()))\n\nans = 0\nfor i in a:\n if i%2==0:\n while(i%2==0):\n i = i//2\n ans += 1\nprint(ans)']
['Runtime Error', 'Accepted']
['s528753455', 's568535988']
[4148.0, 4276.0]
[79.0, 85.0]
[191, 157]
p03325
u123745130
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['l=list(map(int,input().split()))\ndd=[] \nfor i in l: \n\tif i % 2==0: \n\t\tdd.append(i) \ncnt_lst=[] \nfor i in dd: \n\tcnt1=0 \n\twhile(i % 2==0): \n\t\ti//= 2 \n\t\tcnt1+=1 \n\t\tif i %2==1: \n\t\t\tcnt=cnt1 \n\t\t\tcnt_lst.append(cnt) \n\t\t\tbreak \nprint(sum(cnt_lst)) \n', 'l=list(map(int,input().split()) \ndd=[] \nfor i in l: \n\tif i % 2==0: \n\t\tdd.append(i) \ncnt_lst=[] \nfor i in dd: \n\tcnt1=0 \n\twhile(i % 2==0): \n\t\ti//= 2 \n\t\tcnt1+=1 \n\t\tif i %2==1: \n\t\t\tcnt=cnt1 \n\t\t\tcnt_lst.append(cnt) \n\t\t\tbreak \nprint(sum(cnt_lst)) ', 'n=int(input())\nl=list(map(int,input().split()))\ndd=[] \nfor i in l: \n\tif i % 2==0:\n\t\tdd.append(i) \ncnt_lst=[] \nfor i in dd: \n\tcnt1=0 \n\twhile(i % 2==0): \n\t\ti//= 2 \n\t\tcnt1+=1 \n\t\tif i %2==1: \n\t\t\tcnt=cnt1 \n\t\t\tcnt_lst.append(cnt) \n\t\t\tbreak \nprint(sum(cnt_lst)) \n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s341031054', 's443399163', 's564991995']
[3060.0, 2940.0, 4148.0]
[17.0, 17.0, 103.0]
[385, 384, 399]
p03325
u125337618
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\nl = list(map(int, input().split()))\n\nfor i in range(n):\n while l[i] % 2 == 0:\n count += 1\n l[i] = l[i]/2\n\nprint(count)', 'n = int(input())\nl = list(map(int, input().split()))\ncount = 0\nfor i in range(n):\n while l[i] % 2 == 0:\n count += 1\n l[i] = l[i]/2\n\nprint(count)\n']
['Runtime Error', 'Accepted']
['s025206049', 's389996069']
[4148.0, 4148.0]
[19.0, 138.0]
[142, 152]
p03325
u126823513
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['int_n = int(input())\n\ninput_array = list(map(int, input().split()))\n\ncounter = 0\n\nwhile True:\n templist = list(filter(lambda x: x % 2 == 0, input_array))\n if len(templist) != 0:\n max_even = max(filter(lambda x: x % 2 == 0, input_array))\n even_index = input_array.index(max_even)\n\n input_array = list(map(lambda x: x[1] if x[0] != even_index else x[1] / 2, enumerate(input_array)))\n print(input_array)\n\n counter += 1\n\n else:\n break\n\nprint(counter)\n\n\n\n', 'int_n = int(input())\nli_a = list(map(int, input().split()))\n\nanswer = 0\nfor a in li_a:\n wk = a\n while wk % 2 == 0:\n wk = wk // 2\n answer += 1\nprint(answer)\n']
['Wrong Answer', 'Accepted']
['s155900836', 's094081823']
[44036.0, 9944.0]
[2105.0, 71.0]
[501, 176]
p03325
u148832904
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N = int(input())\na = np.array(input().split()).astype(int)\n\nsum = 0\nfor i in range(len(a)):\n sum += a[i]%2\nprint(sum)\n', 'N = int(input())\na = input().split()\n\nsum = 0\nfor a_int in a:\n a_int = int(a_int)\n count = 0\n flag = 0\n while flag == 0:\n if a_int % 2 == 0:\n a_int = a_int / 2\n count += 1\n else:\n flag = 1\n break\n sum += count\nprint(sum)\n']
['Runtime Error', 'Accepted']
['s281839345', 's815974902']
[2940.0, 3828.0]
[17.0, 130.0]
[121, 294]
p03325
u162660367
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N=int(input().strip())\nA=list(map(int,input().split()))\nnns=[2**i for i in range(31)]\ndef func(n,x):\n return n%nns[x]==0\ndef binsearch_int(func, min_x, max_x):\n \n if func(max_x):\n return max_x\n if not func(min_x):\n return None\n left,right=min_x,max_x\n while left+1<right:\n mid=(left+right)//2\n if func(mid):\n left=mid\n else:\n right=mid\n return left\nsum(binsearch_int(lambda x: func(i,x),0,int(math.log2(i))+1) for i in A)', 'import math\nN=int(input().strip())\nA=list(map(int,input().split()))\nnns=[2**i for i in range(31)]\ndef func(n,x):\n return n%nns[x]==0\ndef binsearch_int(func, min_x, max_x):\n \n if func(max_x):\n return max_x\n if not func(min_x):\n return None\n left,right=min_x,max_x\n while left+1<right:\n mid=(left+right)//2\n if func(mid):\n left=mid\n else:\n right=mid\n return left\nsum(binsearch_int(lambda x: func(i,x),0,int(math.log2(i))+1) for i in A)', 'import math\nN=int(input().strip())\nA=list(map(int,input().split()))\nnns=[2**i for i in range(31)]\ndef func(n,x):\n return n%nns[x]==0\ndef binsearch_int(func, min_x, max_x):\n \n if func(max_x):\n return max_x\n if not func(min_x):\n return None\n left,right=min_x,max_x\n while left+1<right:\n mid=(left+right)//2\n if func(mid):\n left=mid\n else:\n right=mid\n return left\nprint(sum(binsearch_int(lambda x: func(i,x),0,int(math.log2(i))+1) for i in A))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s267603561', 's563978233', 's452598177']
[4148.0, 4148.0, 4148.0]
[20.0, 48.0, 55.0]
[553, 565, 572]
p03325
u165699613
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N = input()\nnumber = input()\n\na = number.split()\nn_list=[]\ncount=0\n\n\n\nfor num in a:\n num = int(num)\n if num % 2 == 0:\n n_list.append(num)\n\n\nif n_list != []:\n maxnum = max(n_list)\n maxnum = maxnum/2\n for num2 in n_list:\n for i in range(maxnum):\n if num2 % 2**(i+1) == 0:\n count+=1\n\n\nprint(count)', 'from math import log2\n\nN = input()\nnumber = input()\n\na = number.split()\nn_list=[]\ncount=0\n\n\n\nfor num in a:\n num = int(num)\n if num % 2 == 0:\n n_list.append(num)\n\n\nif n_list != []:\n maxnum = max(n_list)\n maxnum = log2(maxnum)\n for num2 in n_list:\n for i in range(maxnum):\n if num2 % 2**(i+1) == 0:\n count+=1\n\n\nprint(count)', 'N = input()\nnumber = input()\n\na = number.split()\nn_list=[]\ncount=0\n\n\n\nfor num in a:\n num = int(num)\n if num % 2 == 0:\n n_list.append(num)\n\nif n_list != []:\n maxnum = max(n_list)\n for num2 in n_list:\n for i in range(len(n_list)):\n if num2 % (i+1)*2 == 0:\n count+=1\n\n\nprint(count)', 'from math import log2\n\nN = input()\nnumber = input()\n\na = number.split()\nn_list=[]\ncount=0\n\n\n\nfor num in a:\n num = int(num)\n if num % 2 == 0:\n n_list.append(num)\n\n\nif n_list != []:\n maxnum = max(n_list)\n maxnum = log2(maxnum)\n maxnum = int(maxnum)\n for num2 in n_list:\n for i in range(maxnum):\n if num2 % 2**(i+1) == 0:\n count+=1\n\n\nprint(count)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s815630477', 's895819345', 's962331349', 's734561873']
[4208.0, 4208.0, 4208.0, 4208.0]
[22.0, 23.0, 2104.0, 153.0]
[349, 376, 330, 401]
p03325
u175590965
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\na = list(map(int,input().split()))\nans = 0\nfor i in a:\n while(i % 2 ==0):\n i // = 2\n ans += 1\nprint(ans)', 'n = int(input())\na = list(map(int,input().split()))\nans = 0\nfor i in a:\n while not i %2:\n i//= 2\n ans += 1\nprint(ans)']
['Runtime Error', 'Accepted']
['s022751312', 's192113466']
[2940.0, 4148.0]
[17.0, 76.0]
[138, 134]
p03325
u186838327
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\nl = list(map(int, input().split()))\n\nans = 0\nflag = 1\ni = 1\nwhile flag:\n y = 2**i\n m = list(map(lambda x: x%y, l))\n print(m)\n if 0 in m:\n ans += m.count(0)\n i += 1\n else:\n flag = 0\nprint(ans)', 'n =int(input())\nA =list(map(int, input().split()))\nans = 0\nfor i in range(n):\n while A[i]%2 == 0:\n ans += 1\n A[i] //= 2\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s525626232', 's991270208']
[5776.0, 4148.0]
[78.0, 98.0]
[222, 148]
p03325
u203377003
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N = int(input())\nA = list(map(int, input().split()))\n\nA = sorted(A)\nA = [i for i in A if i % 2 == 0]\n\na = 0\ncnt = 0\n\n\nwhile True:\n A = [i / 2 for i in A]\n a += 1\n print(A)\n cnt += a*len([i for i in A if i % 2 == 1])\n\n if len([i for i in A if i > 1]) == 0:\n break\n A = [i for i in A if i % 2 == 0]\nprint(cnt)\n', 'N = int(input())\nA = list(map(int, input().split()))\n\nA = sorted(A)\nA = [i for i in A if i % 2 == 0]\n\na = 0\ncnt = 0\n\n\nwhile True:\n A = [i / 2 for i in A]\n a += 1\n cnt += a*len([i for i in A if i % 2 == 1])\n\n if len([i for i in A if i > 1]) == 0:\n break\n A = [i for i in A if i % 2 == 0]\nprint(cnt)\n']
['Wrong Answer', 'Accepted']
['s715940871', 's644673467']
[6368.0, 4148.0]
[211.0, 153.0]
[333, 320]
p03325
u208497224
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\na_list = list(map(int, input().split()))\ncount = 0\nprint(a_list)\nfor a in a_list:\n while True:\n if a % 2 == 0:\n a = a//2\n count += 1\n else:\n break\nprint(count)', 'n = int(input())\na_list = list(map(int, input().split()))\ncount = 0\nfor a in a_list:\n while True:\n if a % 2 == 0:\n a = a//2\n count += 1\n else:\n break\nprint(count)']
['Wrong Answer', 'Accepted']
['s115119881', 's659988711']
[4148.0, 4148.0]
[88.0, 77.0]
[226, 212]
p03325
u211277872
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['num = int(input())\nlis = map(int,input().split())\n\nans = 0\nfor number in lis:\n while number%2 == 0:\n number /= 2\n ans += 1', 'num = int(input())\nlis = map(int,input().split())\n\nans = 0\nfor number in lis:\n while number%2 == 0:\n number /= 2\n ans += 1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s661083494', 's154686822']
[3828.0, 3828.0]
[115.0, 114.0]
[139, 150]
p03325
u246953964
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N = int(input())\nnums = list(map(int, input().split()))\n\n\ndef renew(arr):\n res = []\n changed = False\n for i in arr:\n if not i & 1 and not changed:\n res.append(int(i / 2))\n changed = True\n else:\n res.append(i * 3)\n if changed:\n return res\n else:\n return []\n\n\ncount = 0\ncs = renew(nums)\nprint(cs)\nwhile len(cs) > 0:\n count += 1\n cs = renew(cs)\n\n\nprint(count)', 'N = int(input())\nnums = list(map(int, input().split()))\n\n\ncount = 0\nfor i in nums:\n w = i\n while not w & 1:\n w = int(w / 2)\n count += 1\n\nprint(count)']
['Runtime Error', 'Accepted']
['s344109685', 's849170048']
[9136.0, 4148.0]
[2104.0, 104.0]
[438, 169]
p03325
u256281774
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['from collections import deque\nfrom collections import namedtuple\n\nN = int(input())\nA = [int(i) for i in input().split()]\nProg = namedtuple("Prog","p,c")\nd = deque([(deque(A),0)])\nans = 0\nwhile(len(d)>0):\n tmp = d.pop()\n tmp2 = deque()\n for i in gen(tmp[0]):\n tmp2.appendleft(i.p)\n tmp2.pop()\n if len(tmp2) < 1:\n if ans < tmp[1]:\n ans = tmp[1]\n else:\n for i in tmp2:\n d.appendleft((i,tmp[1]+1))\nprint(ans)', 'N = int(input())\nA = [int(i) for i in input().split()]\n\nd = deque(A)\nc = 0\nwhile(len(d)>0):\n tmp = d.pop()\n if tmp%2==0:\n c+=1\n d.append(tmp//2)\nprint(c)', 'from collections import deque\nN = int(input())\nA = [int(i) for i in input().split()]\n\nd = deque(A)\nc = 0\nwhile(len(d)>0):\n tmp = d.pop()\n if tmp%2==0:\n c+=1\n d.append(tmp//2)\nprint(c)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s263137023', 's548671241', 's766320322']
[4660.0, 4148.0, 4532.0]
[70.0, 20.0, 163.0]
[465, 173, 203]
p03325
u259954318
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N = int(input())\ninp2 = input()\na = inp2.split()\ncount = 0\nfor i in range(int(N)):\n\tb = int(a[i])\n\tflag = True\n\twhile flag:\n\t\tc = b/2\n\t\tif c.isinstance(c,int):\n\t\t\tcount+=1\n\t\telse:\n\t\t\tflag = False\n\nprint(count) ', 'N = int(input())\ninp2 = int(input())\na = inp2.split()\ncount = 0\nfor i in range(int(N)):\n\tb = int(a[i])\n\tflag = True\n\twhile flag:\n\t\tc = b/2\n\t\tif c.isinstance(c,int):\n\t\t\tcount+=1\n\t\telse:\n\t\t\tflag = False\n\nprint(count) ', 'N = int(input())\ninp2 = input()\na = inp2.split()\ncount = 0\nfor i in range(int(N)):\n\tb = int(a[i])\n\tflag = True\n\tc = b\n\twhile flag:\n\t\tc = c/2\n\t\tif c.is_integer():\n\t\t\tcount+=1\n\t\telse:\n\t\t\tflag = False\n\nprint(count) ']
['Runtime Error', 'Runtime Error', 'Accepted']
['s000938740', 's351510383', 's763367037']
[3956.0, 3316.0, 3828.0]
[21.0, 19.0, 118.0]
[210, 215, 212]
p03325
u297109012
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['def solve(N, As):\n def f(n):\n c = 0\n while n % 2 == 0:\n c += 1\n n //= 2\n return c\n return sum([f(a) for a in As])\n\n\nif __name__ == "__main__":\n N = int(input())\n As = list(map(int, input().split(" ")))\n print(solve(N))\n', 'def solve(N, As):\n def f(n):\n c = 0\n while n % 2 == 0:\n c += 1\n n //= 2\n return c\n return sum([f(a) for a in As])\n\n\nif __name__ == "__main__":\n N = int(input())\n As = list(map(int, input().split(" ")))\n print(solve(N, As))\n']
['Runtime Error', 'Accepted']
['s432502738', 's037744188']
[4148.0, 4148.0]
[21.0, 60.0]
[277, 281]
p03325
u306070611
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['N = input()\nnums = list(map(int, input().split()))\ncnt = 0\nfor i in range(0,n-1):\n taisyouN = nums[i]\n while taisyouN %2 == 0:\n taisyouN = taisyouN/2\n cnt = cnt+1\nprint(cnt)', 'N = input()\nnums = list(map(int, input().split()))\ncnt = 0\ncntlst = []\nfor i in range (0,N-1):\n taisyouN = nums[i]\n while taisyouN %2 == 0:\n taisyouN = taisyouN/2\n cnt = cnt+1\nprint(cnt)', 'N = int(input())\nnums = list(map(int, input().split()))\ncnt = 0\ncntlst = []\nfor i in range(0,N):\n taisyouN = nums[i]\n while taisyouN %2 == 0:\n taisyouN = taisyouN/2\n cnt = cnt+1\n cntlst.append(cnt)\n cnt = 0\nprint(sum(cntlst))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s431927070', 's542712324', 's006121161']
[4148.0, 4148.0, 4148.0]
[20.0, 20.0, 122.0]
[193, 206, 251]
p03325
u306142032
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\na = list(map(int, input().split()))\nb = []\ncnt = 0\n\nfor x in a:\n if x % 2 == 0:\n b.append(x)\nprint(b)\nfor j in range(len(b)):\n while(b[j] % 2 == 0):\n cnt += 1\n b[j] /= 2\n\nprint(cnt)\n', 'n = int(input())\na = list(map(int, input().split()))\nb = []\ncnt = 0\n\nfor x in a:\n if x % 2 == 0:\n b.append(x)\n\nfor j in range(len(b)):\n while(b[j] % 2 == 0):\n cnt += 1\n b[j] /= 2\n\nprint(cnt)\n']
['Wrong Answer', 'Accepted']
['s074239735', 's169767043']
[4148.0, 4148.0]
[143.0, 133.0]
[226, 218]
p03325
u314089899
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['#100c\ndef check_number_of_devide_by_2(n):\n\n count = 0\n while n%2==0:\n count += 1\n n = n/2\n \n return count\n\nN = int(input())', '#100c\ndef check_number_of_devide_by_2(n):\n\n count = 0\n while n%2==0:\n count += 1\n n = n/2\n \n return count\n\nN = int(input())\n\nlist_a = [check_number_of_devide_by_2(i) for i in list(map(int, input().split()))]\n\n\nprint(sum(list_a))']
['Wrong Answer', 'Accepted']
['s081626025', 's302832638']
[2940.0, 4148.0]
[18.0, 101.0]
[268, 438]
p03325
u325660636
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['# ABC100 C "*3 or /2"\n\nimport numpy\nN = int(input())\na = numpy.array(list(map(int, input().split())))\n# a.sort(reversed = False)\na.sort()\na = a[::-1]\n\nprint(a)\ncount = 1\n\nif all(elem % 2 !=0 for elem in a) == True:\n ans = 0\nelse:\n while True:\n if all(elem % 2 !=0 for elem in a) == True:\n ans = count -1\n break\n else:\n for ind in range(N):\n if a[ind] % 2 ==0:\n i = ind\n break\n a[i] = a[i]/2\n # print(i,a[i])\n a[:i] = a[:i]*3\n a[i+1:] = a[i+1:]*3\n #print(count, a)\n a.sort()\n a = a[::-1]\n count += 1\n \nprint(ans)', 'import numpy\nN = int(input())\na = numpy.array(list(map(int, input().split())))\ncount = 0\n\nfor i in range(N):\n if a[i] % 2 == 0:\n x = a[i]\n while True:\n if x %2 != 0:\n break\n else:\n x = x/2\n count+=1\nprint(count)']
['Wrong Answer', 'Accepted']
['s957763409', 's745561017']
[27856.0, 27940.0]
[2206.0, 334.0]
[711, 295]
p03325
u329865314
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = map(int,input().split())\nlis = list(map(int,input().split()))\nans = 0\ndef f(x):\n if x%2:\n return 0\n else:\n return f(x//2)+1\nfor i in range(n):\n ans += f(lis[i])\nprint(ans)', 'n = map(int,input().split())\nlis = list(map(int,input().split()))\nans = 0\ndef f(x):\n if x%2:\n return(0)\n else:\n return(f(x//2)+1)\nfor i in range(n):\n ans += f(lis[i])\nprint(ans)', 'n = int(input())\nlis = list(map(int,input().split()))\nans = 0\ndef f(x):\n if x%2:\n return(0)\n else:\n return(f(x//2)+1)\nfor i in range(n):\n ans += f(lis[i])\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s679772601', 's711688331', 's539943399']
[4148.0, 4148.0, 4148.0]
[20.0, 20.0, 73.0]
[177, 179, 167]
p03325
u331381193
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\nx = [int(x) for x in input().split()]\n\ncnt=0\n\nfor i in range(n):\n\tif x[i]%2==0:\n\t\tcnt+=1\n\t\ti+=-1\n\nprint(cnt)', 'n = int(input())\nx = [int(x) for x in input().split()]\n\ncnt=0\ni=1\n\nwhile i<n+1:\n\tif x[i-1]%2==0:\n\t\tx[i-1]=x[i-1]/2\n\t\tcnt+=1\n\t\ti+=-1\n\ti+=1\n\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s131235112', 's386756988']
[4148.0, 4148.0]
[23.0, 245.0]
[125, 149]
p03325
u357529599
2,000
1,024,000
As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}. Snuke, an employee, would like to play with this sequence. Specifically, he would like to repeat the following operation as many times as possible: For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3". Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer. At most how many operations can be performed?
['n = int(input())\na = list(map(int, input().split()))\n\n\ncount = 0\ni=0\nwhile(i <= len(a)):\n if a[i] % 2 == 0:\n count += 1\n a[i] = int(a[i] // 2)\n continue\n else:\n i += 1\n\nprint(count)', 'count = 0\ni=0\nwhile(i < len(a)):\n if a[i] % 2 == 0:\n count += 1\n a[i] = int(a[i] // 2)\n continue\n else:\n i += 1\n\nprint(count) ', 'n = int(input())\na = map(int, input().split())\n\n\ncount = 0\n\n\n\nwhile(True):\n even_count = 0\n even_index = 0\n for i in range(len(i)):\n if a[i] % 2 == 0:\n even_index = i\n even_count += 1\n\n if even_count >= 2:\n count += 1\n a[even_index] = int(a[even_index] / 2)\n else:\n break\n\nprint(count)', 'n = int(input())\na = list(map(int, input().split()))\n\n\ncount = 0\ni = 0\nwhile(i < len(a)):\n print(i)\n if a[i] % 2 == 0:\n count += 1\n a[i] = int(a[i] // 2)\n continue\n else:\n i += 1\n\nprint(count)', ' N = int(input())\n a_li = list(map(int,input().split()))\n \n count = 0\n for i in a_li:\n while i % 2 == 0:\n cnt += 1\n i //= 2\n if i % 2 != 0:\n break\n \n print(count)', 'N = int(input())\na_li = list(map(int,input().split()))\n \ncnt = 0\nfor i in a_li:\n while i % 2 == 0:\n cnt += 1\n i //= 2\n if i % 2 != 0:\n break\n \nprint(cnt)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s082941178', 's095274586', 's430526999', 's563792785', 's942149990', 's830437248']
[4140.0, 2940.0, 3892.0, 5560.0, 2940.0, 4148.0]
[183.0, 17.0, 18.0, 396.0, 17.0, 103.0]
[215, 167, 350, 229, 240, 203]