結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー morip26morip26
提出日時 2017-06-02 13:09:01
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 281 bytes
コンパイル時間 2,962 ms
コンパイル使用メモリ 73,948 KB
実行使用メモリ 72,564 KB
最終ジャッジ日時 2023-10-21 20:44:49
合計ジャッジ時間 11,409 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
57,276 KB
testcase_01 AC 124 ms
57,376 KB
testcase_02 AC 124 ms
57,304 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 531 ms
62,292 KB
testcase_10 AC 807 ms
72,360 KB
testcase_11 AC 778 ms
72,336 KB
testcase_12 AC 787 ms
72,236 KB
testcase_13 AC 800 ms
72,564 KB
testcase_14 AC 823 ms
72,356 KB
testcase_15 AC 808 ms
71,792 KB
testcase_16 AC 863 ms
72,224 KB
testcase_17 AC 121 ms
57,004 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Nsum {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		long a = sc.nextInt();
		long x = 0;
		for (long i = 1 ; i <= a ; i++){
			x += sc.nextInt();
		}
		System.out.println(x);

	}
}


0