A Times B
View as PDF
Submit solution
Points:
20 (partial)
Time limit:
1.0s
Memory limit:
256M
Author:
Problem type
Allowed languages
Assembly, Brain****, C, C++, Pascal, Rust
For a while now, has been thinking about fast multiplication. He found the problem on SPOJ, MUL, and solved it without too much trouble. Then he found VFMUL on the same site, but the same code for MUL didn't pass as the SPOJ servers were really slow. Frustrated and desperate to show off demonstrate his fast multiplication code, has created a problem that really tests the accuracy and speed of your fast multiplication code.
Input Specification
The first line of input will have .
The second line of input will have .
Both and
will be non-negative integers strictly less than
.
Output Specification
Output the product .
Sample Input
123456123456123456123456123456123456
987987876876765765654654543543432432321321
Sample Output
121973153300851295215956247283945278187966162014464020099359068031370037005376
Comments