結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2019-02-13 14:32:25 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 3,580 ms |
コンパイル使用メモリ | 74,468 KB |
実行使用メモリ | 61,928 KB |
最終ジャッジ日時 | 2024-09-13 09:58:19 |
合計ジャッジ時間 | 8,243 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 15 |
ソースコード
import java.util.Scanner; public class kuhaku { public static void main(String[] args) { int N = new Scanner(System.in).nextInt(); long sum = 0; for(int i =0; i < N; i ++) { int a = new Scanner(System.in).nextInt(); sum += a; } System.out.println(sum); } }