nubiyu 发表于 2011-4-20 23:38

求解a*b问题

Description
Calculate a*bInput
Input has several cases.
Each case contains two lines.
First line gives a, and second line gives b.
Note that a,b are both smaller than 10^5000.
there is a blank line between cases.

No more than 50 cases would be given.Output
For each case, output a line with the answer of a*b.Sample Input 1112100007756710000000000000000001000000000000000000
Sample Output 1327756700001000000000000000000000000000000000000
Hint
Use optimized high precision integer.
Use scanf to avoid TLE.

PS:会的请回复,谢谢!

nubiyu 发表于 2011-4-20 23:40

Description

Calculate a*b

Input

Input has several cases.
Each case contains two lines.
First line gives a, and second line gives b.
Note that a,b are both smaller than 10^5000.
there is a blank line between cases.

No more than 50 cases would be given.

Output

For each case, output a line with the answer of a*b.

Sample Input


11
12

10000
77567

1000000000000000000
1000000000000000000



Sample Output


132
775670000
1000000000000000000000000000000000000
页: [1]
查看完整版本: 求解a*b问题