結果
| 問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
| ユーザー |
|
| 提出日時 | 2017-09-09 19:11:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 347 bytes |
| コンパイル時間 | 3,409 ms |
| コンパイル使用メモリ | 74,372 KB |
| 実行使用メモリ | 58,532 KB |
| 最終ジャッジ日時 | 2024-12-25 17:29:32 |
| 合計ジャッジ時間 | 5,560 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}