首页 > 其他 > 详细

POJ 1503 Integer Inquiry 大数 难度:0

时间:2015-07-12 01:43:49      阅读:250      评论:0      收藏:0      [点我收藏+]

题目链接:http://poj.org/problem?id=1503

 

技术分享
 1 import java.io.*;
 2 import java.math.BigInteger;
 3 import java.util.Scanner;
 4  
 5 public class Main {
 6     public static void main(String []args) throws IOException{
 7         Scanner scanner=new Scanner(System.in);
 8         BigInteger a=BigInteger.ZERO;
 9         BigInteger A=BigInteger.ZERO;
10         do{
11             a=scanner.nextBigInteger();
12             A=A.add(a);}
13         while(!a.equals(BigInteger.ZERO));
14         System.out.println(A);
15     }
16 }
View Code

 

POJ 1503 Integer Inquiry 大数 难度:0

原文:http://www.cnblogs.com/xuesu/p/4639757.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!