Run ID:71528

提交时间:2024-04-25 19:04:08

n = int(input()) if n==0: print(0) else: s = '' while n: #非0为True 0为False s = str(n%2) + s n = n//2 print(s)