728x90
반응형

단순 수학 문제이다.

for _ in range(int(input())):
    s = input()
    s = s[s.index('1'):]
    print(int(s, 2))
728x90
반응형

+ Recent posts