Submission #5883468


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 ABC081B - Shift only
User nanas
Language Python3 (3.4.3)
Score 200
Code Size 269 Byte
Status
Exec Time 19 ms
Memory 3060 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt
All 200 / 200 sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
1.txt 17 ms 2940 KB
2.txt 17 ms 2940 KB
3.txt 18 ms 3060 KB
4.txt 18 ms 3060 KB
5.txt 19 ms 3060 KB
6.txt 19 ms 3060 KB
7.txt 17 ms 2940 KB
sample1.txt 17 ms 2940 KB
sample2.txt 17 ms 2940 KB
sample3.txt 17 ms 2940 KB