結果
| 問題 | No.3387 23578 Sequence |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-02-09 02:16:50 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 415 bytes |
| 記録 | |
| コンパイル時間 | 323 ms |
| コンパイル使用メモリ | 82,428 KB |
| 実行使用メモリ | 53,808 KB |
| 最終ジャッジ日時 | 2026-02-09 02:16:53 |
| 合計ジャッジ時間 | 2,577 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
# t = int(input())
# n = int(input())
# a = list(map(int,input().split()))
# a,b,c = map(int,input().split())
#By Tahir Huzaifa
n = int(input())
a = list(map(int,input().split()))
st = 0
end = n-1
s = a[st] + a[end]
# print(s)
st+=1
end-=1
f = True
while st<=end:
if s!= (a[st]+a[end]):
# print(s)
f=False
break
st+=1
end-=1
if f:
print("Yes")
else:
print("No")
vjudge1