心如止水
Je n'ai pas le temps
posts - 400,comments - 130,trackbacks - 0
<2011年5月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

留言簿(15)

随笔分类(415)

随笔档案(400)

搜索

  •  

最新随笔

最新评论

评论排行榜

高精度乘法。
以下是我的代码:
import java.util.Scanner;
import java.math.BigInteger;

public class Main
{
    
public static void main(String[] args) 
    {
        Scanner cin
=new Scanner(System.in);

        
while(cin.hasNext())
        {
            BigInteger a
=cin.nextBigInteger(),b=cin.nextBigInteger();
            System.out.println(a.multiply(b));
        }
    }
}
posted on 2011-05-19 18:34 lee1r 阅读(308) 评论(0)  编辑 收藏 引用 所属分类: 题目分类:基础/模拟

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理