| Task: | Tutkat |
| Sender: | bullcoin |
| Submission time: | 2019-05-25 14:05:14 +0300 |
| Language: | Python3 |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | RUNTIME ERROR | 0 |
| #2 | RUNTIME ERROR | 0 |
| #3 | RUNTIME ERROR | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | RUNTIME ERROR | 0.05 s | 1 | details |
| #2 | RUNTIME ERROR | 0.05 s | 1 | details |
| #3 | RUNTIME ERROR | 0.04 s | 1 | details |
| #4 | RUNTIME ERROR | 0.05 s | 1 | details |
| #5 | RUNTIME ERROR | 0.06 s | 1 | details |
| #6 | RUNTIME ERROR | 0.05 s | 1 | details |
| #7 | RUNTIME ERROR | 0.05 s | 1 | details |
| #8 | RUNTIME ERROR | 0.05 s | 1 | details |
| #9 | RUNTIME ERROR | 0.05 s | 1 | details |
| #10 | RUNTIME ERROR | 0.05 s | 1 | details |
| #11 | RUNTIME ERROR | 0.05 s | 2 | details |
| #12 | RUNTIME ERROR | 0.04 s | 2 | details |
| #13 | RUNTIME ERROR | 0.05 s | 2 | details |
| #14 | RUNTIME ERROR | 0.05 s | 2 | details |
| #15 | RUNTIME ERROR | 0.05 s | 2 | details |
| #16 | RUNTIME ERROR | 0.04 s | 2 | details |
| #17 | RUNTIME ERROR | 0.05 s | 2 | details |
| #18 | RUNTIME ERROR | 0.04 s | 2 | details |
| #19 | RUNTIME ERROR | 0.05 s | 2 | details |
| #20 | RUNTIME ERROR | 0.04 s | 2 | details |
| #21 | RUNTIME ERROR | 0.05 s | 3 | details |
| #22 | RUNTIME ERROR | 0.05 s | 3 | details |
| #23 | RUNTIME ERROR | 0.05 s | 3 | details |
| #24 | RUNTIME ERROR | 0.05 s | 3 | details |
| #25 | RUNTIME ERROR | 0.05 s | 3 | details |
| #26 | RUNTIME ERROR | 0.06 s | 3 | details |
| #27 | RUNTIME ERROR | 0.04 s | 3 | details |
| #28 | RUNTIME ERROR | 0.05 s | 3 | details |
| #29 | RUNTIME ERROR | 0.04 s | 3 | details |
| #30 | RUNTIME ERROR | 0.06 s | 3 | details |
Code
n, k = map(lambda x : int(x), input().split())
tmp = 1 << (n - 1)
if n == 1:
print(k - 1)
elif (k <= tmp // 2):
k -= 1
print('0', end = '')
for i in range(n - 3, -1, -1):
p = (k & (1 << i))
if p:
print('1', end = '')
else:
print('0', end = '')
print('0')
else:
print('1', end = '')
k = k - 1 - tmp // 2
for i in range(n - 3, -1, -1):
p = (k & (1 << i))
if p:
print('1', end = '')
else:
print('0', end = '')
print('1')
Test details
Test 1
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 1 4 0 |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 2
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 2 8 7 0 0 |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 3
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 10 3 -5 2 -5 -5 -5 8 -5 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 4
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 10 5 -10 5 1 5 1 5 2 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 5
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 10 6 -1 -9 -1 -10 -1 -6 -1 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 6
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 10 10 9 -3 -4 -6 -7 -9 -10 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 7
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 10 -4 6 -3 4 -6 10 -2 2 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 8
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 10 0 -5 3 -1 -8 7 -7 -4 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 9
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 10 -6 9 0 -2 4 -6 -3 -10 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 10
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 10 -8 6 -2 6 2 7 4 4 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 11
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1 -441 481 |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 12
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 2 839 909 -200 80 |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 13
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 -423 925 -472 925 -809 925 326 925 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 14
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 -762 -767 -762 200 -762 -334 -762 209 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 15
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 10 3 7 -2 -3 -4 -7 3 7 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 16
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 801 799 -260 -262 -67 -69 -554 -556 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 17
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 -272 -2 69 -2 751 -2 -52 -2 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 18
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 -489 -811 -643 -824 -277 174 444 765 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 19
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 489 835 -200 127 -381 726 77 -521 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 20
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 281 736 -124 -915 786 -855 114 989 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 21
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 1 -3456 -2745 |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 22
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 2 -251857 -954786 503100 816554 |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 23
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 330161 -746892 220170 -746892 -65044 -746892 806626 -746892 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 24
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 722581 -574844 722581 -466372 722581 664802 722581 -105614 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 25
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 10 -1 -2 -2 -4 -5 -10 3 6 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 26
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 -203540 -407080 485311 970622 111563 223126 -440181 -880362 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 27
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 68694 137388 36535 73070 72667 145334 -261754 -523508 ... |
| correct output |
|---|
| QAQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 28
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 282590 559482 857807 -597385 957181 139364 -710955 660838 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 29
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 -228024 -516020 -906860 278692 -460599 616754 194654 637343 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)Test 30
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 903962 491932 -444159 -408066 -444246 262614 678743 52561 ... |
| correct output |
|---|
| 10-4 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
n, k = map(lambda x : int(x), input().split())
ValueError: not enough values to unpack (expected 2, got 1)