結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー kano_townkano_town
提出日時 2014-12-08 23:32:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 147 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 3,664 ms
コンパイル使用メモリ 73,008 KB
実行使用メモリ 53,672 KB
最終ジャッジ日時 2023-09-29 22:27:34
合計ジャッジ時間 8,924 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
53,672 KB
testcase_01 AC 132 ms
39,552 KB
testcase_02 AC 137 ms
39,700 KB
testcase_03 AC 134 ms
40,196 KB
testcase_04 AC 141 ms
39,728 KB
testcase_05 AC 137 ms
39,728 KB
testcase_06 AC 143 ms
39,796 KB
testcase_07 AC 142 ms
39,932 KB
testcase_08 AC 140 ms
40,184 KB
testcase_09 AC 147 ms
39,936 KB
testcase_10 AC 131 ms
40,024 KB
testcase_11 AC 140 ms
39,428 KB
testcase_12 AC 142 ms
39,612 KB
testcase_13 AC 136 ms
39,952 KB
testcase_14 AC 130 ms
39,904 KB
testcase_15 AC 143 ms
40,264 KB
testcase_16 AC 133 ms
39,824 KB
testcase_17 AC 133 ms
39,576 KB
testcase_18 AC 140 ms
40,100 KB
testcase_19 AC 134 ms
40,644 KB
testcase_20 AC 132 ms
39,572 KB
testcase_21 AC 131 ms
39,396 KB
testcase_22 AC 135 ms
40,136 KB
testcase_23 AC 142 ms
39,740 KB
testcase_24 AC 137 ms
39,632 KB
testcase_25 AC 128 ms
39,768 KB
testcase_26 AC 133 ms
40,120 KB
testcase_27 AC 132 ms
39,860 KB
testcase_28 AC 134 ms
39,556 KB
testcase_29 AC 137 ms
40,112 KB
権限があれば一括ダウンロードができます

ソースコード

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