1from secret import clue
2
3
4def lucky():
5 """Return the address of the coin piece."""
6 left_shift_result = clue(left_shift=5)
7 right_shift_result = clue(right_shift=5)
8 bw_and_result = clue(bw_and=8) #0b00001000
9 bw_or_result = clue(bw_or=239) #0b11101111
10
11 first_part = ((right_shift_result << 5) & 0xFF) & 224 #0b11100000
12 middle_part = (bw_and_result & 8) | (bw_or_result & 16)
13 last_part = (left_shift_result >> 5) & 7 #0b00000111
14
15 return first_part | middle_part | last_part
16
17
18#Весели празници! :)
.
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK