| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71535 | 胡海峰老师 | 十进制转二进制 | Python3 | Accepted | 38 MS | 3772 KB | 294 | 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)