标题:[求助] 10的1000000方怎么弄?
取消只看楼主
karon1988
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2007-4-5
 问题点数:0 回复次数:1 
[求助] 10的1000000方怎么弄?
题目:
Problem description

We are not alone.

In the year 3000, scientists have eventually found another planet which has intelligent being living on. Let's say, Planet X. And we call the intelligent being there ‘XMen'. To learn advanced technology from Planet X, we want to exchange information with XMen. Unfortunately, XMen use a very strange data format when sending message, which is called m-encoding (m is for multiplication). Scientists on earth have successfully found out the algorithm of m-encoding, defining as following:

For each data package from XMen, there are two non-negative integer numbers, A and B. And the actual data XMen want to send is the product of A and B (A * B).

So, in this problem, you are to implement a decoder for data packages from XMen.

Input
There are multiple test cases. Input data starts with an integer N, indicating the number of test cases.

Each test case occupies just one line, and contains two non-negative integers A and B (0 <= A, B <= 101000000), separated by just one space.

Output
For each test case, output the actual data XMen want to send, one in a line.

Sample Input
3
1 1
100 123
12345678901234567890 54321
Sample Output
1
12300
670629623593962962352690

那个10 的1000000次方太大了点吧....怎么办?
搜索更多相关主题的帖子: Planet Let XMen Tahoma 
2007-11-01 17:49
karon1988
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2007-4-5
得分:0 
主要就是想知道那个那么大的数怎么表示呢?
2007-11-01 18:09



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-182615-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.417201 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved