結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー springspring
提出日時 2019-06-12 11:24:02
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 310 bytes
コンパイル時間 2,158 ms
コンパイル使用メモリ 74,400 KB
実行使用メモリ 58,156 KB
最終ジャッジ日時 2024-04-17 23:47:40
合計ジャッジ時間 11,252 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
41,100 KB
testcase_01 AC 126 ms
41,460 KB
testcase_02 AC 126 ms
40,264 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 609 ms
48,248 KB
testcase_10 AC 920 ms
57,672 KB
testcase_11 AC 886 ms
57,668 KB
testcase_12 AC 871 ms
57,920 KB
testcase_13 AC 884 ms
58,156 KB
testcase_14 AC 827 ms
57,780 KB
testcase_15 AC 926 ms
57,784 KB
testcase_16 AC 990 ms
57,432 KB
testcase_17 AC 125 ms
41,420 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 count = sc.nextInt();
		int result = 0;
		for(int i=0;i<count;i++){
			int input = sc.nextInt();
			result += input;
		}
		System.out.println(result);
	}//mainmethod

} //class
0