시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 | 128 MB | 5887 | 3640 | 3437 | 66.764% |
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.
번호 | 배점 | 제한 |
---|---|---|
1 | 20 | N, M ≤ 4 |
2 | 20 | N, M ≤ 9 |
3 | 30 | N, M ≤ 5 000 |
4 | 30 | No additional constraints |
3 4 123 4567
561741
3 1 100 0
0