본문 바로가기
알고리즘

[Python] 백준 1550번: 16진수

by 내 코딩 2023. 2. 23.
반응형

코드

print(int(input(), 16))

설명

int()에 있는 내장함수를 쓰면 자동으로 10진수로 변환해준다.

댓글