結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-09-09 16:58:13
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 269 bytes
コンパイル時間 2,325 ms
コンパイル使用メモリ 80,000 KB
実行使用メモリ 57,936 KB
最終ジャッジ日時 2024-04-25 00:23:58
合計ジャッジ時間 10,261 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
40,616 KB
testcase_01 AC 112 ms
40,952 KB
testcase_02 AC 104 ms
40,212 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 571 ms
48,024 KB
testcase_10 AC 808 ms
57,632 KB
testcase_11 AC 828 ms
57,560 KB
testcase_12 AC 722 ms
57,644 KB
testcase_13 AC 782 ms
57,816 KB
testcase_14 AC 845 ms
57,696 KB
testcase_15 AC 849 ms
57,936 KB
testcase_16 AC 811 ms
57,860 KB
testcase_17 AC 100 ms
40,316 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();
		int sum = 0;
		for(int i=1;i<=N;i++){
		    int A = sc.nextInt();
		    sum += A;
		}
	System.out.println(sum);
	}
}
0