結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー TwinkleStar74
提出日時 2017-09-09 18:41:26
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 314 bytes
コンパイル時間 3,827 ms
コンパイル使用メモリ 74,192 KB
実行使用メモリ 48,116 KB
最終ジャッジ日時 2024-12-25 17:29:25
合計ジャッジ時間 7,118 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc1= new Scanner(System.in);
		int N = sc1.nextInt();
		int sum =0;
		for(int i=1 ; i<=N ; i++){
			Scanner sc2 = new Scanner(System.in);
			int An = sc2.nextInt();
			sum += An;
			}
		System.out.println(sum);
		}
}
0