結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー kusa_no_nekusa_no_ne
提出日時 2017-11-15 23:57:55
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 295 bytes
コンパイル時間 3,261 ms
コンパイル使用メモリ 72,164 KB
実行使用メモリ 66,528 KB
最終ジャッジ日時 2023-08-16 14:29:50
合計ジャッジ時間 11,615 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,576 KB
testcase_01 AC 122 ms
55,880 KB
testcase_02 AC 120 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 527 ms
60,404 KB
testcase_10 AC 824 ms
64,880 KB
testcase_11 AC 821 ms
65,204 KB
testcase_12 AC 808 ms
66,528 KB
testcase_13 AC 794 ms
65,600 KB
testcase_14 AC 788 ms
65,512 KB
testcase_15 AC 827 ms
65,228 KB
testcase_16 AC 855 ms
64,800 KB
testcase_17 AC 123 ms
55,924 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

        int a = sc.nextInt();
        long b = 0;
        for(int i=0;i<a;i++){
            b+=sc.nextInt();
        }
        System.out.println(b);
    }
}
0