A Times B

View as PDF

Submit solution

Points: 15 (partial)
Time limit: 2.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
C, C++, Lisp, Rust

Given two numbers, A and B, can you calculate A \times B?

Input Specification

The first line of input will have integer A (1 \leq A \leq 10^{10^5}).

The first line of input will have integer B (1 \leq B \leq 10^{10^5}).

Output Specification

Output the product of A \times B.

Subtasks

Subtask 1 [10%]

A \leq 10^5

B \leq 10^5

Subtask 2 [20%]

A \leq 10^{1000}

B \leq 10^{1000}

Subtask 2 [70%]

No additional constraints.

Sample Input 1
100
890
Sample Output 1
89000
Sample Input 2
69248
1002040259
Sample Output 2
69389283855232

Comments

There are no comments at the moment.