Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags more
Archives
Today
Total
관리 메뉴

쓰고싶은거 써요

백준 파이썬 2745 진법 변환 본문

백준 python 기록

백준 파이썬 2745 진법 변환

우히힝 2021. 10. 31. 18:15

링크 : https://www.acmicpc.net/problem/2745

 

2745번: 진법 변환

B진법 수 N이 주어진다. 이 수를 10진법으로 바꿔 출력하는 프로그램을 작성하시오. 10진법을 넘어가는 진법은 숫자로 표시할 수 없는 자리가 있다. 이런 경우에는 다음과 같이 알파벳 대문자를 

www.acmicpc.net

 

10진법으로 바꿀려면 int를 사용하면 됨.

a, b = map(str,input().split())

print(int(a,int(b)))
Comments