# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
572154 |
2022-06-03T19:25:54 Z |
bugmenot111 |
Rack (eJOI19_rack) |
PyPy 3 |
|
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)
# |
Verdict |
Execution time |
Memory |
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 |
# |
Verdict |
Execution time |
Memory |
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 |
# |
Verdict |
Execution time |
Memory |
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 |
- |