| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71547 | 展博 | 二进制数问题 | Python3 | Compile Error | 0 MS | 0 KB | 355 | 2024-04-25 19:45:00 |
aAa=0 bBb=0 for i in range(1,1001): aA=0 bB=0 if s==0: return 0 else: a='' while s!=0: n=s%2 if n==1: aA+=1 else: bB+=1 s=s//2 a=str(n)+a return a s=int(input()) res=dec_bin(s) print(res)
File "Main.py", line 7
return 0
^
SyntaxError: 'return' outside function