結果

問題 No.3387 23578 Sequence
コンテスト
ユーザー Kude
提出日時 2025-11-28 21:21:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 53,904 KB
最終ジャッジ日時 2025-11-28 21:21:26
合計ジャッジ時間 2,537 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n = int(input())
a = list(map(int, input().split()))
s = a[0] + a[n-1]
ans = all(x + y == s for x, y in zip(a, reversed(a)))
print('Yes' if ans else 'No')
0