백준 알고리즘 22193번 : Multiply

Zoo Da·2021년 7월 16일
0

백준 알고리즘

목록 보기
112/337
post-thumbnail

링크

(https://www.acmicpc.net/problem/22193)

문제

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.

예제 입력 및 출력

풀이 코드(Python)

n,m = map(int,input().split())
a = int(input())
b = int(input())
print(a*b)
profile
메모장 겸 블로그

0개의 댓글