답안 #572154

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
572154 2022-06-03T19:25:54 Z bugmenot111 Rack (eJOI19_rack) PyPy 3
40 / 100
151 ms 102400 KB
n, k = map(int, input().split())

m = 1<<(n-1)

a = [0]

while m > 0:
    a += [x+m for x in a]
    m //= 2

print(a[k-1]+1)
# 결과 실행 시간 메모리 Grader output
1 Correct 33 ms 18224 KB Output is correct
2 Correct 34 ms 18172 KB Output is correct
3 Correct 37 ms 18160 KB Output is correct
4 Correct 33 ms 18164 KB Output is correct
5 Correct 38 ms 18232 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 33 ms 18224 KB Output is correct
2 Correct 34 ms 18172 KB Output is correct
3 Correct 37 ms 18160 KB Output is correct
4 Correct 33 ms 18164 KB Output is correct
5 Correct 38 ms 18232 KB Output is correct
6 Correct 37 ms 18672 KB Output is correct
7 Correct 50 ms 18848 KB Output is correct
8 Correct 46 ms 19928 KB Output is correct
9 Correct 38 ms 24580 KB Output is correct
10 Correct 52 ms 35896 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 33 ms 18224 KB Output is correct
2 Correct 34 ms 18172 KB Output is correct
3 Correct 37 ms 18160 KB Output is correct
4 Correct 33 ms 18164 KB Output is correct
5 Correct 38 ms 18232 KB Output is correct
6 Correct 37 ms 18672 KB Output is correct
7 Correct 50 ms 18848 KB Output is correct
8 Correct 46 ms 19928 KB Output is correct
9 Correct 38 ms 24580 KB Output is correct
10 Correct 52 ms 35896 KB Output is correct
11 Runtime error 151 ms 102400 KB Execution killed with signal 9
12 Halted 0 ms 0 KB -