https://www.acmicpc.net/problem/2588
(세 자리 수) × (세 자리 수)는 다음과 같은 과정을 통하여 이루어진다.
정답
a = int(input())
b = input()
c = a * int(b[2])
d = a * int(b[1])
e = a * int(b[0])
result = a * int(b)
print(c,d,e,result, sep='\n') # sep='\n'로 줄바꿈
'코딩테스트 > Lv1' 카테고리의 다른 글
[Python] 백준 온라인 저지 1712번 (0) | 2022.04.12 |
---|---|
[Python] 백준 온라인 저지 14681번 (0) | 2022.04.12 |
[Python] 백준 온라인 저지 2753번 (0) | 2022.04.11 |
[Python] 백준 온라인 저지 1330번 (0) | 2022.04.11 |
[Python] 백준 온라인 저지 9498번 (0) | 2022.04.11 |