結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー kano_town
提出日時 2014-12-08 23:32:56
言語 Java
(openjdk 23)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 3,123 ms
コンパイル使用メモリ 74,804 KB
実行使用メモリ 42,108 KB
最終ジャッジ日時 2024-07-22 16:27:37
合計ジャッジ時間 7,271 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Scanner;

public class Yukicoder81 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		BigDecimal res = new BigDecimal(BigInteger.ZERO);
		for (int i = 0; i < n; i++) res = res.add(new BigDecimal(sc.next()));
		System.out.printf("%.10f",res);
	}
}
0