반응형
https://www.acmicpc.net/problem/2588
# @Author YoungMinKim
# baekjoon
a=int(input())
b=int(input())
b=list(str(b))
result=0
num=0
for i in range(len(b)-1,-1,-1):
print(a*int(b[i]))
result += (10**(num))*(a*int(b[i]))
num+=1
print(result)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 2675 (0) | 2020.08.25 |
---|---|
baekjoon - python - 2609 (0) | 2020.08.25 |
baekjoon - python - 2577 (0) | 2020.08.25 |
baekjoon - python - 2562 (0) | 2020.08.25 |
baekjoon - python - 2558 (0) | 2020.08.25 |
댓글