結果
問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2019-09-26 01:53:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 762 ms |
コンパイル使用メモリ | 71,488 KB |
最終ジャッジ日時 | 2025-01-07 19:09:40 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 9 WA * 6 |
ソースコード
#include <iostream> #include <numeric> #include <vector> using namespace std; int main() { int i; cin >> i; vector<int> num(i); for (int x = 0; x < i; x++) { cin >> num[x]; } int k; k = accumulate(num.begin(), num.end(), 0); cout << k; return 0; }