結果
| 問題 | No.3622 Perfect Matching of Crab |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-11-24 11:47:00 |
| 言語 | C++23(gcc16) (gcc 16.2.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 475 bytes |
| 記録 | |
| コンパイル時間 | 3,067 ms |
| コンパイル使用メモリ | 352,336 KB |
| 実行使用メモリ | 9,928 KB |
| 最終ジャッジ日時 | 2026-11-24 11:47:08 |
| 合計ジャッジ時間 | 7,476 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 2 WA * 16 |
ソースコード
#include <bits/stdc++.h>
#define All(x) x.begin(),x.end()
#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
using namespace std;
using ll=long long;
void solve(){
int n;
cin>>n;
int x=0,y=0;
for(int i=1;i<=n*2;++i){
int u,v; char tp;
cin>>u>>v>>tp;
if(tp=='x') ++x;
else ++y;
}
cout<<((x==y)?"Yes":"No")<<'\n';
}
signed main(){
IOS
int T=1;
cin>>T;
while(T--){
solve();
}
}