Run ID:71535

提交时间:2024-04-25 19:12:51

m = int(input()) def decimal_binary(n): #integer 整数 if n==0: return 0 #整数 else: s = '' while n: #非0为True 0为False s = str(n%2) + s n = n//2 return s #字符串 res = decimal_binary(m) print(res)