XJTU_Python/test/5/5.py

10 lines
125 B
Python

def b(x):
s = ""
while (x):
s += str(x % 2)
x //= 2
return s[::-1]
a = int(input())
print(b(a))