結果
| 問題 | No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用) |
| ユーザー |
|
| 提出日時 | 2018-07-13 00:48:39 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 278 bytes |
| 記録 | |
| コンパイル時間 | 409 ms |
| コンパイル使用メモリ | 69,996 KB |
| 実行使用メモリ | 7,424 KB |
| 最終ジャッジ日時 | 2026-04-20 13:18:17 |
| 合計ジャッジ時間 | 2,406 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 9 WA * 6 |
ソースコード
#include <iostream>
using namespace std;
const int MAX_N = 500000;
int N;
long int A[MAX_N];
int main(){
cin >> N;
for (int i=0; i<N; i++){
cin >> A[i];
}
int ans = 0;
for (int i=0; i<N; i++){
ans += A[i];
}
cout << ans << endl;
}