結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,868 KB
testcase_01 AC 124 ms
55,780 KB
testcase_02 AC 124 ms
56,044 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 526 ms
60,524 KB
testcase_10 AC 796 ms
65,132 KB
testcase_11 AC 773 ms
65,212 KB
testcase_12 AC 788 ms
64,540 KB
testcase_13 AC 803 ms
64,880 KB
testcase_14 AC 888 ms
67,260 KB
testcase_15 AC 790 ms
65,384 KB
testcase_16 AC 819 ms
65,664 KB
testcase_17 AC 121 ms
55,564 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

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.nextInt();
			 totalnum += addnum; 
		}
		System.out.print(totalnum);
	}
}
0