結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
55,576 KB
testcase_01 AC 101 ms
55,800 KB
testcase_02 AC 102 ms
55,664 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 422 ms
60,556 KB
testcase_10 AC 648 ms
66,508 KB
testcase_11 AC 687 ms
58,976 KB
testcase_12 AC 675 ms
58,896 KB
testcase_13 AC 721 ms
59,236 KB
testcase_14 AC 684 ms
60,168 KB
testcase_15 AC 656 ms
52,440 KB
testcase_16 AC 681 ms
58,756 KB
testcase_17 AC 101 ms
41,168 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