結果
| 問題 | No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用) |
| ユーザー |
水野嶺
|
| 提出日時 | 2020-05-14 13:49:37 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 664 ms / 3,000 ms |
| + 710µs | |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 1,432 ms |
| コンパイル使用メモリ | 83,748 KB |
| 実行使用メモリ | 57,084 KB |
| 最終ジャッジ日時 | 2026-08-27 18:28:39 |
| 合計ジャッジ時間 | 8,767 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 15 |
ソースコード
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Goukei2
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
long sum = 0;
long m;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=1;i<=n;i++){
m = sc.nextLong();
sum += m;
}
System.out.println(sum);
}
}
水野嶺