結果
| 問題 | No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用) |
| ユーザー |
|
| 提出日時 | 2017-09-09 19:11:20 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 1,337 ms |
| コンパイル使用メモリ | 85,212 KB |
| 実行使用メモリ | 47,708 KB |
| 最終ジャッジ日時 | 2026-10-07 21:29:13 |
| 合計ジャッジ時間 | 4,322 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 15 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int N = sc.nextInt();
long sum =0;
long [] score = new long[N]; //long型のn個の配列を作成
for(int i=1 ; i<=N ; i++){
score [N] = sc.nextLong();
sum += score[N];
}
System.out.println(sum);
}
}