結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー nogisunnogisun
提出日時 2020-03-19 06:31:25
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 371 bytes
コンパイル時間 3,371 ms
コンパイル使用メモリ 72,672 KB
実行使用メモリ 69,084 KB
最終ジャッジ日時 2023-08-20 20:40:23
合計ジャッジ時間 9,780 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
55,560 KB
testcase_01 AC 102 ms
55,752 KB
testcase_02 AC 102 ms
55,764 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 461 ms
60,556 KB
testcase_10 AC 664 ms
66,656 KB
testcase_11 AC 661 ms
67,004 KB
testcase_12 AC 674 ms
66,520 KB
testcase_13 AC 687 ms
66,260 KB
testcase_14 AC 643 ms
69,084 KB
testcase_15 AC 689 ms
68,536 KB
testcase_16 AC 670 ms
68,640 KB
testcase_17 AC 104 ms
56,036 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No9008{
    public static void main(String[] args){
        long sum=0;
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        long arry[] = new long[a];
        for (int i=0; i < a; i++){
            arry[i] = sc.nextInt();
            sum += arry[i];
        }
        System.out.println(sum);
    }
}
0