1381. a*b
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
Give two positive integers a and b, please help us calculate a*b.
Input
The first line of the input is a positive integer T. T is the number of test cases followed.
Each test case contain two integer a,b (0<=a<=10^100, 0<=b<=10,000) given in one line.
Output
The output of each test case should consist of one line, contain the result of a*b.
Sample Input
12 7
Sample Output
14
Problem Source
Algorithm Course Examination 2006
高精度加法思想:
本文介绍了使用高精度加法思想实现整数乘法的方法,包括处理大整数相乘时的进位问题和字符串操作。

196

被折叠的 条评论
为什么被折叠?



