結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,300 KB
testcase_01 AC 135 ms
57,620 KB
testcase_02 AC 132 ms
57,388 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 559 ms
62,064 KB
testcase_10 AC 901 ms
72,412 KB
testcase_11 AC 913 ms
72,368 KB
testcase_12 AC 924 ms
72,360 KB
testcase_13 AC 905 ms
72,352 KB
testcase_14 AC 934 ms
72,432 KB
testcase_15 AC 954 ms
72,388 KB
testcase_16 AC 1,017 ms
72,492 KB
testcase_17 AC 136 ms
57,680 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