結果
| 問題 |
No.2343 (l+r)/2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-09 22:30:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 260 bytes |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 82,772 KB |
| 実行使用メモリ | 85,540 KB |
| 最終ジャッジ日時 | 2025-01-02 03:49:56 |
| 合計ジャッジ時間 | 2,693 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 4 WA * 10 |
ソースコード
T = int(input())
for _ in range(T):
N = int(input())
A = list(map(int, input().split()))
if sum(A) % 2 == 1:
print("Yes")
else:
if 0 in A and 1 in A and N % 2 == 0:
print("Yes")
else:
print("No")