結果
| 問題 | No.1081 和の和 |
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2026-09-12 01:29:18 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 526 bytes |
| 記録 | |
| コンパイル時間 | 4,157 ms |
| コンパイル使用メモリ | 377,696 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-12 01:29:38 |
| 合計ジャッジ時間 | 5,435 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using namespace chrono;
#if __has_include(<atcoder/all>)
#include <atcoder/all>
using namespace atcoder;
#endif
int main() {
int64_t n;
cin >> n;
vector<int64_t> as(n);
for (auto &&a : as) {
cin >> a;
}
for (int64_t i = 0; i < n - 1; i++) {
vector<int64_t> bs;
for (int64_t j = 0; j + 1 < as.size(); j++) {
bs.push_back(as[j] + as[j + 1]);
}
as = bs;
}
cout << as[0] << endl;
return 0;
}
ldsyb