`
soboer
  • 浏览: 1309959 次
文章分类
社区版块
存档分类
最新评论

POJ 2389 Bull Math 高精度(大数)乘法 模板

 
阅读更多

http://poj.org/problem?id=2389

Bull Math
Time Limit:1000MS Memory Limit:65536K



Description

Bulls are so much better at math than the cows. They can multiply huge integers together and get perfectly precise answers ... or so they say. Farmer John wonders if their answers are correct. Help him check the bulls' answers. Read in two positive integers (no more than 40 digits each) and compute their product. Output it as a normal number (with no extra leading zeros).

FJ asks that you do this yourself; don't use a special library function for the multiplication.

Input

* Lines 1..2: Each line contains a single decimal number.

Output

* Line 1: The exact product of the two input lines

Sample Input

11111111111111
1111111111

Sample Output

12345679011110987654321

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics