結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-09-09 17:00:14
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 271 bytes
コンパイル時間 2,267 ms
コンパイル使用メモリ 73,508 KB
実行使用メモリ 58,056 KB
最終ジャッジ日時 2024-04-25 00:24:28
合計ジャッジ時間 12,849 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,584 KB
testcase_01 AC 142 ms
41,252 KB
testcase_02 AC 136 ms
41,116 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 680 ms
47,336 KB
testcase_10 AC 972 ms
57,536 KB
testcase_11 AC 1,069 ms
57,640 KB
testcase_12 AC 1,091 ms
57,480 KB
testcase_13 AC 1,059 ms
57,416 KB
testcase_14 AC 996 ms
57,640 KB
testcase_15 AC 1,138 ms
57,944 KB
testcase_16 AC 1,096 ms
58,056 KB
testcase_17 AC 136 ms
41,244 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long sum = 0;
		for(int i=1;i<=N;i++){
		    long A = sc.nextInt();
		    sum += A;
		}
	System.out.println(sum);
	}
}
0