結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー kano_townkano_town
提出日時 2014-12-08 23:31:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 3,417 ms
コンパイル使用メモリ 73,200 KB
実行使用メモリ 58,536 KB
最終ジャッジ日時 2023-09-02 11:50:09
合計ジャッジ時間 8,830 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 150 ms
55,916 KB
testcase_04 WA -
testcase_05 AC 130 ms
55,944 KB
testcase_06 AC 133 ms
56,112 KB
testcase_07 AC 134 ms
55,952 KB
testcase_08 AC 137 ms
55,952 KB
testcase_09 AC 137 ms
56,080 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

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.println(res);
	}
}
0