Files
kattis/reversebinary.py

2 lines
41 B
Python

print(int(f"{int(input()):b}"[::-1], 2))