摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=5e5+10; int tr[N][2],pass_cnt[N],end_cnt[N],idx; int m,n; void insert(const vector<int 阅读全文
posted @ 2026-03-02 22:57 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=5e5+10; int tr[N][26],tag[N],idx; int n,m; void insert(const string& s) { int p=0; for 阅读全文
posted @ 2026-03-02 21:42 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=3e6+10; int t; int tr[N][62],idx,cnt[N]; int get_id(char c) { if(c>='a'&&c<='z') retur 阅读全文
posted @ 2026-03-02 21:12 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int t; void solve() { long long a,b,c,k; cin>>a>>b>>c>>k; while(k--){ if(a==b&&b==c){ break; } lon 阅读全文
posted @ 2026-03-02 20:08 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int n; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n; int a; int ans=0; while(n--){ cin> 阅读全文
posted @ 2026-03-02 19:40 AnoSky 阅读(3) 评论(0) 推荐(0)