工大后院

 找回密码
 加入后院

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
查看: 1958|回复: 1

求解a*b问题

[复制链接]
发表于 2011-4-20 23:38 | 显示全部楼层 |阅读模式

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:会的请回复,谢谢!
 楼主| 发表于 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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入后院

本版积分规则

QQ|Archiver|手机版|小黑屋|广告业务Q|工大后院 ( 粤ICP备10013660号 )

GMT+8, 2024-5-6 10:50

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表