728x90
반응형
solved.ac Bronze lV 시작
int 함수를 통해 8진수를 10진수로 바꾼 후에 bin 함수를 사용해 2진수로 바꿔주면 된다.
print(bin(int(input(), 8))[2:])
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 2480번 주사위 세개(python) (0) | 2021.02.04 |
---|---|
백준 알고리즘 2420번 사파리월드(python) (0) | 2021.02.04 |
백준 알고리즘 20492번 세금(python) (0) | 2021.02.04 |
백준 알고리즘 18301번 Rats(python) (0) | 2021.02.04 |
백준 알고리즘 20254번 Site Score(python) (0) | 2021.02.04 |