結果
| 問題 | No.3387 23578 Sequence |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2025-11-29 01:38:53 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 396 bytes |
| コンパイル時間 | 3,105 ms |
| コンパイル使用メモリ | 281,052 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-11-29 01:38:58 |
| 合計ジャッジ時間 | 4,536 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
int n;
cin >> n;
vector<int> a(n);
rep(i, n) cin >> a[i];
set<int> st;
rep(i, n) st.insert(a[i] + a[n - 1 - i]);
cout << (st.size() == 1 ? "Yes" : "No") << '\n';
return 0;
}
a01sa01to