結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー QED0302
提出日時 2018-05-09 15:35:12
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 332 bytes
コンパイル時間 3,223 ms
コンパイル使用メモリ 73,932 KB
実行使用メモリ 58,092 KB
最終ジャッジ日時 2024-06-28 02:44:30
合計ジャッジ時間 13,057 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 RE * 1
other AC * 9 RE * 6
権限があれば一括ダウンロードができます

ソースコード

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