結果
| 問題 | No.2343 (l+r)/2 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-01-02 20:39:07 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 95,952 KB |
| 実行使用メモリ | 88,448 KB |
| 最終ジャッジ日時 | 2026-09-05 07:50:46 |
| 合計ジャッジ時間 | 3,368 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 8 |
ソースコード
for _ in range(int(input())):
n = int(input())
A = input()
if len(set(A.split())) == 1:
print("No")
elif n >= 7 or n % 2 == 0:
print("Yes")
elif "0 0" in A or "1 1" in A:
print("Yes")
else:
print("No")