728x90
반응형
단순 수학 문제이다.
for _ in range(int(input())):
s = input()
s = s[s.index('1'):]
print(int(s, 2))
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 11367번 Report Card Time(python) (0) | 2021.03.25 |
---|---|
백준 알고리즘 11319번 Count Me In(python) (0) | 2021.03.25 |
백준 알고리즘 17173번 배수들의 합(python) (0) | 2021.03.25 |
백준 알고리즘 4999번 아!(python) (0) | 2021.03.25 |
백준 알고리즘 15947번 아기 석환 뚜루루 뚜루(python) (0) | 2021.03.25 |