https://www.acmicpc.net/problem/2588

 

2588번: 곱셈

첫째 줄부터 넷째 줄까지 차례대로 (3), (4), (5), (6)에 들어갈 값을 출력한다.

www.acmicpc.net


a= int(input())
b= int(input())

#(3)
print((b%10)*a)
#(4)
print(((b//10)%10)*a)
#(5)
print((b//100)*a)
#(6)
print((b%10)*a+10*(((b//10)%10)*a)+100*((b//100)*a))

'알고리즘 문제 > PYTHON' 카테고리의 다른 글

[백준] 3046번: R2(PYTHON)  (0) 2021.07.07
[백준] 2257번: Hello World(python)  (0) 2021.07.02
[백준] 2558번: A+B -2 (python)  (0) 2021.07.02
[백준] 2438번: 별 찍기 -1 (python)  (0) 2021.07.02
[백준] 1008번: A/B (python)  (0) 2021.07.01

+ Recent posts