結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー dogwood0424dogwood0424
提出日時 2017-11-27 20:32:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 816 ms / 3,000 ms
コード長 266 bytes
コンパイル時間 5,539 ms
コンパイル使用メモリ 77,660 KB
実行使用メモリ 66,088 KB
最終ジャッジ日時 2023-08-26 18:08:10
合計ジャッジ時間 11,637 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
55,760 KB
testcase_01 AC 115 ms
55,808 KB
testcase_02 AC 116 ms
55,612 KB
testcase_03 AC 119 ms
56,312 KB
testcase_04 AC 118 ms
55,896 KB
testcase_05 AC 130 ms
55,632 KB
testcase_06 AC 175 ms
56,124 KB
testcase_07 AC 263 ms
59,932 KB
testcase_08 AC 452 ms
60,608 KB
testcase_09 AC 550 ms
60,624 KB
testcase_10 AC 753 ms
64,116 KB
testcase_11 AC 760 ms
64,940 KB
testcase_12 AC 765 ms
65,048 KB
testcase_13 AC 736 ms
64,044 KB
testcase_14 AC 763 ms
64,468 KB
testcase_15 AC 754 ms
64,328 KB
testcase_16 AC 816 ms
66,088 KB
testcase_17 AC 114 ms
55,948 KB
testcase_18 AC 116 ms
55,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No9009 {
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		long sum = 0;

		for(int i=0; i<n;i++) {


			sum += sc.nextLong();
		}

		System.out.println(sum);


	}


}
0