結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー LeonardoneLeonardone
提出日時 2016-09-27 17:40:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 889 ms / 2,000 ms
コード長 366 bytes
コンパイル時間 2,874 ms
コンパイル使用メモリ 74,080 KB
実行使用メモリ 69,256 KB
最終ジャッジ日時 2024-05-01 05:44:14
合計ジャッジ時間 11,839 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
53,196 KB
testcase_01 AC 112 ms
54,156 KB
testcase_02 AC 101 ms
52,716 KB
testcase_03 AC 121 ms
53,884 KB
testcase_04 AC 124 ms
54,112 KB
testcase_05 AC 131 ms
54,324 KB
testcase_06 AC 179 ms
54,520 KB
testcase_07 AC 264 ms
58,788 KB
testcase_08 AC 465 ms
59,204 KB
testcase_09 AC 577 ms
59,500 KB
testcase_10 AC 762 ms
68,800 KB
testcase_11 AC 808 ms
69,256 KB
testcase_12 AC 797 ms
68,768 KB
testcase_13 AC 817 ms
69,096 KB
testcase_14 AC 812 ms
69,244 KB
testcase_15 AC 852 ms
69,180 KB
testcase_16 AC 889 ms
69,232 KB
testcase_17 AC 114 ms
54,240 KB
testcase_18 AC 102 ms
52,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.lang.*;
import java.util.*;

public class Solve
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        
        int n = in.nextInt();
        long sum = 0L;
        
        for (int i = 0; i < n; i++)
        {
            sum += in.nextLong();
        }
        
        System.out.println(sum);
    }
}
0