본문 바로가기
Develop/알고리즘

[백준/Python] Bronze V #22193 Multiply

by favorcat 2023. 8. 19.
반응형
 

22193번: Multiply

Write a program that computes a product of two non-negative integers A and B. The integers are represented in decimal notation and have N and M digits, respectively.

www.acmicpc.net

문제

Write a program that computes a product of two non-negative integers A and B. The integers are represented in decimal notation and have N and M digits, respectively.

입력

The first line contains the lengths N and M, separated by a space. A is given on the second and B on the third line. The numbers will not have leading zeros.

출력

Output the product of A and B without leading zeros.

풀이

n,m = map(int,input().split())
a = int(input())
b = int(input())
print(a*b)
반응형

Comment