Multiplication of Large Numbers (3)
Time limit1sMemory limit512 MB
Multiply two non-negative integers of up to one million digits each and print the exact product.
- Level
Medium7 of 10
- Topics
- Math, String, Implementation, Divide and conquer
- Solved
- No attempts yet
Problem
Given two integers A and B, write a program that prints their product.
Input
The first line contains the integers A and B. Both are integers greater than or equal to 0, and any integer other than 0 does not start with 0 and has no unnecessary leading zeros. Also, the length of each number does not exceed 1,000,000 digits.
Output
Print the product of the two numbers.