网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  Java实现 洛谷 P1601 A+B Problem(高精)

Java实现 洛谷 P1601 A+B Problem(高精)

分类: IT文章 • 2024-07-05 12:54:07

import java.util.*;
import java.math.*;
public class Main
{
	public static void main(String args[]) 
	{
		Scanner cin=new Scanner(System.in);
		BigInteger sum=BigInteger.valueOf(0);
		while(cin.hasNext())
		{
			BigInteger a=cin.nextBigInteger();
			if(a.equals(BigInteger.ZERO))
			{
				break;
			}
			sum=sum.add(a);
		}
		System.out.println(sum);
	}
}

相关推荐

  • 题解-洛谷P1303 A*B Problem(高精)
  • Java实现 洛谷 P1601 A+B Problem(高精)
  • Java实现 洛谷 P1601 A+B Problem(高精)
  • Java实现 洛谷 P1601 A+B Problem(高精)
  • Java实现 洛谷 P1601 A+B Problem(高精)
  • 【洛谷】P1601 A+B Problem 高精(高精度加法模板) 加法高精度模板
  • P1601 A+B Problem(高精)
  • 【洛谷p1601】A+B Problem(高精)
  • 题解 P1601 【A+B Problem(高精)】 P1601 A+B Problem(高精)
  • 洛谷1601 A+B Problem(高精) 解题报告 洛谷1601 A+B Problem(高精)
  • POJ 1837 Balance (DP) Balance
  • mysql数据库的基本操作(连接查询、外键、合并结果集、子查询、视图、备份还原)
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号