Submission #1462508


Source Code Expand

Copy
n = int(input())
pow2 = [2 ** item for item in range(10)]
for item in pow2[::-1]:
    if(item <= n):
        print(item)
        break

Submission Info

Submission Time
Task B - Break Number
User antonych
Language Python3 (3.4.3)
Score 200
Code Size 141 Byte
Status
Exec Time 17 ms
Memory 3064 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example0, example1, example2, example3
All 200 / 200 example0, example1, example2, example3, handmade0, handmade1, handmade2, rand0, rand1, rand2, rand3, rand4, rand5, rand6, rand7, rand8, rand9
Case Name Status Exec Time Memory
example0 17 ms 2940 KB
example1 17 ms 3064 KB
example2 17 ms 2940 KB
example3 17 ms 2940 KB
handmade0 17 ms 2940 KB
handmade1 17 ms 2940 KB
handmade2 17 ms 2940 KB
rand0 17 ms 2940 KB
rand1 17 ms 2940 KB
rand2 17 ms 2940 KB
rand3 17 ms 2940 KB
rand4 17 ms 2940 KB
rand5 17 ms 2940 KB
rand6 17 ms 2940 KB
rand7 17 ms 2940 KB
rand8 17 ms 2940 KB
rand9 17 ms 2940 KB