結果
| 問題 | No.3531 Erase Pair |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-04 23:29:22 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 2,456 ms |
| コンパイル使用メモリ | 334,072 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-04 23:29:33 |
| 合計ジャッジ時間 | 5,840 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 50 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int zero=0;
for(int i=0;i<n;i++){
int t;
cin>>t;
zero+=(t==0);
}
if(zero>1||(zero==1&&n%2==0)){
cout<<"No"<<endl;
}else{
cout<<"Yes"<<endl;
}
}
return 0;
}