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());
}
}
题目1119:Integer Inquiry
最新推荐文章于 2022-04-06 21:50:44 发布