結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー HaleakalaHaleakala
提出日時 2018-02-18 15:14:57
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 451 bytes
コンパイル時間 3,275 ms
コンパイル使用メモリ 71,912 KB
実行使用メモリ 98,980 KB
最終ジャッジ日時 2023-09-06 18:21:33
合計ジャッジ時間 10,146 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,580 KB
testcase_01 AC 115 ms
55,700 KB
testcase_02 AC 115 ms
56,076 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 355 ms
66,460 KB
testcase_10 AC 521 ms
88,580 KB
testcase_11 AC 519 ms
88,736 KB
testcase_12 AC 533 ms
88,892 KB
testcase_13 AC 518 ms
97,832 KB
testcase_14 AC 501 ms
97,980 KB
testcase_15 AC 504 ms
98,980 KB
testcase_16 AC 513 ms
97,552 KB
testcase_17 AC 115 ms
55,920 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No480 {
	public static void main(String str[]) {
        Scanner sc = new Scanner(System.in);

        String s1 = sc.nextLine();
        String s2 = sc.nextLine();

        String[] split = s2.split(" ");
        int sum = 0;
        for(int i=0; i<Integer.valueOf(s1); i++) {
        	sum += Integer.valueOf(split[i]);
        }

        // 標準出力に書き出す。
        System.out.println(sum);
	}
}
0