摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=5e6,M=1e3+10; int son[N][26]; char str[21]; //这个bitset变量实际上就是集合的一种变形,实现了一个二维数组,映射起来有点麻 阅读全文
posted @ 2025-11-30 14:13
AnoSky
阅读(6)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=100010; int son[N][26],idx; int n,cnt[N]; char str[N]; string op; void insert(char *st 阅读全文
posted @ 2025-11-30 11:06
AnoSky
阅读(10)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; bool check(int k,int n,const vector<vector<int> >& pos) { //枚举所有可以作为障碍区的起始位置 for(int r=0;r<=n-k;r+ 阅读全文
posted @ 2025-11-30 00:36
AnoSky
阅读(5)
评论(0)
推荐(0)

浙公网安备 33010602011771号