結果
問題 |
No.2343 (l+r)/2
|
ユーザー |
![]() |
提出日時 | 2024-08-15 09:47:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 12,976 KB |
最終ジャッジ日時 | 2024-08-15 09:47:10 |
合計ジャッジ時間 | 3,552 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 8 |
ソースコード
T=int(input()) for t in range(T): N=int(input()) A=list(map(int,input().split())) if A[0]: for i in range(N): A[i]^=1 if A[-1]: ans="Yes" else: if any(A[i] and A[i+1] for i in range(N-1)) or N>=9: ans="Yes" else: ans="No" print(ans)