結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー MatumoMatumo
提出日時 2018-07-13 02:06:16
言語 Java19
(openjdk 21)
結果
AC  
実行時間 854 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 2,017 ms
コンパイル使用メモリ 71,656 KB
実行使用メモリ 66,176 KB
最終ジャッジ日時 2023-07-27 21:44:49
合計ジャッジ時間 12,040 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,876 KB
testcase_01 AC 125 ms
55,492 KB
testcase_02 AC 126 ms
55,560 KB
testcase_03 AC 120 ms
55,740 KB
testcase_04 AC 121 ms
55,784 KB
testcase_05 AC 133 ms
55,760 KB
testcase_06 AC 182 ms
56,124 KB
testcase_07 AC 297 ms
61,912 KB
testcase_08 AC 489 ms
62,252 KB
testcase_09 AC 548 ms
61,160 KB
testcase_10 AC 854 ms
64,720 KB
testcase_11 AC 840 ms
65,084 KB
testcase_12 AC 825 ms
64,416 KB
testcase_13 AC 803 ms
66,008 KB
testcase_14 AC 812 ms
66,176 KB
testcase_15 AC 814 ms
64,964 KB
testcase_16 AC 819 ms
64,448 KB
testcase_17 AC 118 ms
55,876 KB
testcase_18 AC 121 ms
55,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);

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