結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
55,404 KB
testcase_01 AC 101 ms
55,816 KB
testcase_02 AC 100 ms
55,632 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 423 ms
60,456 KB
testcase_10 AC 646 ms
52,004 KB
testcase_11 AC 653 ms
59,112 KB
testcase_12 AC 630 ms
59,324 KB
testcase_13 AC 657 ms
52,944 KB
testcase_14 AC 701 ms
59,076 KB
testcase_15 AC 672 ms
59,592 KB
testcase_16 AC 667 ms
60,496 KB
testcase_17 AC 100 ms
39,408 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