結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー KahoMatsumotoKahoMatsumoto
提出日時 2017-05-23 18:57:45
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 285 bytes
コンパイル時間 6,123 ms
コンパイル使用メモリ 74,012 KB
実行使用メモリ 72,476 KB
最終ジャッジ日時 2023-10-19 15:37:56
合計ジャッジ時間 13,840 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
57,632 KB
testcase_01 AC 131 ms
55,416 KB
testcase_02 AC 132 ms
57,648 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 553 ms
62,172 KB
testcase_10 AC 885 ms
71,940 KB
testcase_11 AC 911 ms
72,404 KB
testcase_12 AC 939 ms
72,300 KB
testcase_13 AC 938 ms
71,520 KB
testcase_14 AC 961 ms
72,476 KB
testcase_15 AC 962 ms
72,360 KB
testcase_16 AC 994 ms
70,456 KB
testcase_17 AC 143 ms
57,268 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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