Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71512 胡海峰老师 二进制转十进制 Python3 Wrong Answer 36 MS 3744 KB 107 2024-04-25 10:06:06

Tests(0/20):


Code:

s = input() res = 1 s = s[::-1] p = 2 while s.pop(): if s =='1': res *= p p = p*2


Run Info:

------Input------
111001111110000111111010111100
------Answer-----
972586684
------Your output-----