반응형
문제
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)
반응형
'Develop > 알고리즘' 카테고리의 다른 글
[백준/Python] Silver III #3273 두 수의 합 (0) | 2023.08.19 |
---|---|
[백준/Python] Silver III #1431 시리얼 번호 (0) | 2023.08.19 |
[백준/Python] Bronze V #27434 팩토리얼 3 (0) | 2023.08.19 |
[백준/Python] Silver IV #18258 큐 2 (0) | 2023.08.18 |
[백준/Python] Silver IV #9372 상근이의 여행 (0) | 2023.08.18 |
Comment