https://www.acmicpc.net/problem/11005
0~35 수를 문자열 num으로 선언한 뒤 사용하여 진법 변환
소스 코드
n, b = map(int, input().split()) num = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' answer = '' while n != 0: answer += num[n % b] n = n // b print(answer[::-1])