結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー kusa_no_nekusa_no_ne
提出日時 2017-11-15 23:59:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 914 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 4,644 ms
コンパイル使用メモリ 71,520 KB
実行使用メモリ 70,652 KB
最終ジャッジ日時 2023-08-16 14:31:00
合計ジャッジ時間 11,635 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,492 KB
testcase_01 AC 125 ms
53,684 KB
testcase_02 AC 125 ms
56,056 KB
testcase_03 AC 124 ms
55,936 KB
testcase_04 AC 124 ms
55,688 KB
testcase_05 AC 133 ms
55,832 KB
testcase_06 AC 190 ms
56,308 KB
testcase_07 AC 272 ms
59,852 KB
testcase_08 AC 473 ms
61,048 KB
testcase_09 AC 530 ms
61,120 KB
testcase_10 AC 771 ms
65,732 KB
testcase_11 AC 744 ms
64,936 KB
testcase_12 AC 838 ms
64,716 KB
testcase_13 AC 914 ms
70,652 KB
testcase_14 AC 860 ms
64,772 KB
testcase_15 AC 845 ms
65,440 KB
testcase_16 AC 851 ms
64,624 KB
testcase_17 AC 122 ms
55,868 KB
testcase_18 AC 121 ms
55,652 KB
権限があれば一括ダウンロードができます

ソースコード

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.nextLong();
        }
        System.out.println(b);
    }
}

0