結果

問題 No.3286 Make a Happy Connection
ユーザー tkykwtnb
提出日時 2025-10-03 21:21:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 120 bytes
コンパイル時間 3,670 ms
コンパイル使用メモリ 82,520 KB
実行使用メモリ 53,556 KB
最終ジャッジ日時 2025-10-03 21:21:18
合計ジャッジ時間 2,873 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
for i in range(N-2):
    if A[i]==A[i+2]:exit(print("Yes"))
print("No")
0