Algorithm
[BOJ] 백준 29203 자릿수 Python
척척석사아님
2023. 10. 27. 11:18
import sys
input = sys.stdin.readline
import math
a,b = map(int,input().split())
N = b * (math.log10(a))
N = int(N) + 1
print(N)
상용로그 함수를 사용하여 자릿수를 계산하는 간단한 문제입니다.
추가로 궁금하신 점이 있다면 말씀해 주세요.