結果
問題 |
No.2343 (l+r)/2
|
ユーザー |
![]() |
提出日時 | 2023-06-09 21:43:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 372 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 12,760 KB |
最終ジャッジ日時 | 2025-01-02 02:38:39 |
合計ジャッジ時間 | 3,712 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 7 WA * 7 |
ソースコード
for _ in range(int(input())): n = int(input()) a = list(map(int,input().split())) ans = "Yes" if a[0]!=a[-1] else "No" b = [i for i in range(n) if a[i]!=a[0]] for i in range(len(b)-1): if b[i]+1==b[i+1]: ans = "Yes" print(ans)