結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ウップス600ウップス600
提出日時 2022-01-04 21:20:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,134 ms / 2,000 ms
コード長 324 bytes
コンパイル時間 2,344 ms
コンパイル使用メモリ 73,952 KB
実行使用メモリ 58,080 KB
最終ジャッジ日時 2024-04-22 18:19:17
合計ジャッジ時間 13,802 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
41,296 KB
testcase_01 AC 142 ms
41,424 KB
testcase_02 AC 145 ms
41,516 KB
testcase_03 AC 137 ms
41,588 KB
testcase_04 AC 149 ms
41,456 KB
testcase_05 AC 156 ms
41,632 KB
testcase_06 AC 195 ms
42,356 KB
testcase_07 AC 301 ms
46,460 KB
testcase_08 AC 606 ms
47,888 KB
testcase_09 AC 652 ms
47,956 KB
testcase_10 AC 1,061 ms
57,580 KB
testcase_11 AC 1,004 ms
57,724 KB
testcase_12 AC 1,030 ms
57,908 KB
testcase_13 AC 1,013 ms
57,904 KB
testcase_14 AC 1,045 ms
58,080 KB
testcase_15 AC 1,074 ms
57,868 KB
testcase_16 AC 1,134 ms
57,652 KB
testcase_17 AC 145 ms
41,480 KB
testcase_18 AC 148 ms
41,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java. util. *;

public class Main{
	public static void main (String[] args){
		Scanner scanner = new Scanner (System. in);
		
		int count = scanner. nextInt();
		long number;
		long all = 0;
		for (int j = 0; j < count; j ++){
			number = scanner. nextLong();
			all += number;
		}
		System. out. println (all);
	}
}
0