結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー QED0302QED0302
提出日時 2018-05-09 15:35:12
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 332 bytes
コンパイル時間 4,309 ms
コンパイル使用メモリ 73,040 KB
実行使用メモリ 70,660 KB
最終ジャッジ日時 2023-09-10 11:21:32
合計ジャッジ時間 14,418 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,040 KB
testcase_01 AC 121 ms
57,908 KB
testcase_02 AC 121 ms
55,920 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 556 ms
61,136 KB
testcase_10 AC 790 ms
64,604 KB
testcase_11 AC 825 ms
65,084 KB
testcase_12 AC 844 ms
65,192 KB
testcase_13 AC 846 ms
70,660 KB
testcase_14 AC 854 ms
64,820 KB
testcase_15 AC 825 ms
64,168 KB
testcase_16 AC 812 ms
65,012 KB
testcase_17 AC 122 ms
55,808 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class space{
	public static void main(String[] args){
		int 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++){
			int addnum = sc.nextInt();
			 totalnum += addnum; 
		}
		System.out.print(totalnum);
	}
}
0