Submission #5883783


Source Code Expand

Copy
n = int(input())
a = list(map(int, input().split()))
 
findOdd = False
cnt = 0
while findOdd == False:
    for k, v in enumerate(a):
        a[k] = v / 2
        if v % 2 != 0:
            findOdd = True
            print(cnt)
            break
    cnt += 1

Submission Info

Submission Time
Task ABC087B - Coins
User nanas
Language Python3 (3.4.3)
Score 0
Code Size 269 Byte
Status
Exec Time 2104 ms
Memory 3064 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample01.txt, sample02.txt, sample03.txt
All 0 / 200 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, sample01.txt, sample02.txt, sample03.txt
Case Name Status Exec Time Memory
01.txt 17 ms 3060 KB
02.txt 17 ms 2940 KB
03.txt 17 ms 2940 KB
04.txt 18 ms 2940 KB
05.txt 17 ms 2940 KB
06.txt 18 ms 2940 KB
07.txt 17 ms 2936 KB
08.txt 17 ms 3064 KB
09.txt
10.txt 17 ms 2940 KB
sample01.txt 18 ms 2940 KB
sample02.txt 17 ms 2940 KB
sample03.txt 17 ms 2940 KB