题目1119:Integer Inquiry
来源:互联网 发布:windows 3.1 编辑:程序博客网 时间:2024/05/03 15:16
import java.util.Scanner;import java.io.IOException;import java.io.FileReader;import java.io.BufferedReader;import java.math.BigInteger;class Main{private final static boolean DEBUG = false;public static void main(String[] args) throws IOException{Scanner cin;BigInteger ans, num;if (DEBUG) {cin = new Scanner(new BufferedReader(new FileReader("d:\\OJ\\uva_in.txt")));} else {cin = new Scanner(System.in);}ans = BigInteger.ZERO;while (cin.hasNext()) {num = cin.nextBigInteger();if (num.compareTo(BigInteger.ZERO) == 0) break;ans = ans.add(num);}System.out.println(ans.toString());}}
0 0
- 题目1119:Integer Inquiry
- 题目1119:Integer Inquiry
- 九度OJ 题目1119:Integer Inquiry
- 九度 oj 题目1119:Integer Inquiry
- 递归_高精度运算_题目1119:Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- Integer Inquiry
- 哈希表
- 06-java.util.ConcurrentModificationException
- EXCEL在.NET操作下的错误System.InvalidCastException: QueryInterface for interface Excel._Application failed.
- Hibernate 级联查询: More than one row with the given identifier was found 报错
- 黑马程序员——类加载器&代理
- 题目1119:Integer Inquiry
- hdu 1556 Color the ball&&hdu 4883 TIANKENG’s restaurant
- 动态改变字体大小
- ZOJ-1539
- Linux驱动子系统之输入子系统(6)-gpio-keys
- 一个简单的使用SDL播放YUV文件的示例
- 这几年的经历感想
- 照片格式相关概念
- 消灭Bug!十款免费移动应用测试框架推荐