結果
問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
|
提出日時 | 2020-07-08 15:55:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 1,660 ms |
コンパイル使用メモリ | 166,964 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 02:12:40 |
合計ジャッジ時間 | 3,020 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 9 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a[n]; int ans = 0; for (int i = 0; i < n; i++) cin >> a[i]; for (int j = 0; j < n; j++) ans += a[j]; cout << ans; }