結果
| 問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
| ユーザー |
|
| 提出日時 | 2017-09-09 16:58:13 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 2,631 ms |
| コンパイル使用メモリ | 74,016 KB |
| 実行使用メモリ | 58,224 KB |
| 最終ジャッジ日時 | 2024-11-07 09:48:31 |
| 合計ジャッジ時間 | 12,918 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 RE * 1 |
| other | AC * 9 RE * 6 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int sum = 0;
for(int i=1;i<=N;i++){
int A = sc.nextInt();
sum += A;
}
System.out.println(sum);
}
}