結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ldsybldsyb
提出日時 2017-04-13 12:18:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 818 ms / 3,000 ms
コード長 284 bytes
コンパイル時間 2,018 ms
コンパイル使用メモリ 70,712 KB
実行使用メモリ 64,608 KB
最終ジャッジ日時 2023-08-26 17:03:39
合計ジャッジ時間 10,828 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,796 KB
testcase_01 AC 114 ms
55,800 KB
testcase_02 AC 114 ms
55,620 KB
testcase_03 AC 114 ms
55,812 KB
testcase_04 AC 116 ms
55,748 KB
testcase_05 AC 124 ms
55,772 KB
testcase_06 AC 179 ms
55,784 KB
testcase_07 AC 266 ms
59,708 KB
testcase_08 AC 455 ms
60,176 KB
testcase_09 AC 558 ms
60,528 KB
testcase_10 AC 818 ms
64,236 KB
testcase_11 AC 782 ms
64,608 KB
testcase_12 AC 749 ms
64,228 KB
testcase_13 AC 756 ms
64,032 KB
testcase_14 AC 780 ms
64,388 KB
testcase_15 AC 802 ms
64,468 KB
testcase_16 AC 795 ms
64,328 KB
testcase_17 AC 115 ms
56,124 KB
testcase_18 AC 113 ms
55,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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