CCF CSP元素选择器
CCF CSP元素选择器
结果
解析
利用bfs,这道题细节问题一方面是标签大小写不敏感,另一方面是祖先的祖先仍然是该元素的祖先
#include <bits/stdc++.h>
using namespace std;
const int maxn=101;
vector<int> v[maxn];
map<int,int> mp;
vector<string> vs;
bool isvisited[maxn];
int n;
struct node{
原创
2020-12-09 17:34:31 ·
167 阅读 ·
0 评论