結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー QED0302QED0302
提出日時 2018-05-09 15:53:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,073 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 3,284 ms
コンパイル使用メモリ 71,368 KB
実行使用メモリ 69,904 KB
最終ジャッジ日時 2023-09-10 11:24:11
合計ジャッジ時間 13,457 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,556 KB
testcase_01 AC 128 ms
55,776 KB
testcase_02 AC 128 ms
55,428 KB
testcase_03 AC 128 ms
55,624 KB
testcase_04 AC 129 ms
55,676 KB
testcase_05 AC 141 ms
55,940 KB
testcase_06 AC 196 ms
55,872 KB
testcase_07 AC 288 ms
59,752 KB
testcase_08 AC 498 ms
60,424 KB
testcase_09 AC 540 ms
60,796 KB
testcase_10 AC 878 ms
64,716 KB
testcase_11 AC 879 ms
69,904 KB
testcase_12 AC 852 ms
64,516 KB
testcase_13 AC 923 ms
64,712 KB
testcase_14 AC 854 ms
64,704 KB
testcase_15 AC 1,073 ms
64,648 KB
testcase_16 AC 910 ms
65,620 KB
testcase_17 AC 127 ms
55,516 KB
testcase_18 AC 128 ms
55,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class space{
	public static void main(String[] args){
		long totalnum=0;

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		Scanner sc2 = new Scanner(System.in);
		for(int i = 0;i < N;i++){
			long addnum = sc.nextLong();
			 totalnum += addnum; 
		}
		System.out.print(totalnum);
	}
}
0