結果

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

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
for i in range(N):
    if A[i]+A[N-i-1]==A[0]+A[N-1]:
        pass
    else:
        print("No")
        exit()
print("Yes")
0