Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106191 | 丁俊杰 | 十进制转二进制 | Python3 | Wrong Answer | 38 MS | 3768 KB | 154 | 2025-01-15 16:43:24 |
def ten_to_two(n): res="" while n!=0: res+=str(n%2) n=n//2 return res[::-1] n=int(input()) print(ten_to_two(n))
------Input------
0
------Answer-----
0
------Your output-----