上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; const int N=1e5+10; int tr[N*31][2],idx; int d[N]; vector<PII> adj[N]; 阅读全文
posted @ 2026-03-03 23:50 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <bits/stdc++.h> using namespace std; const int INF = 1e8; int main() { ios::sync_with_stdio(0); cin.tie(0); string s[2]; // 【核心修正】题目没有 阅读全文
posted @ 2026-03-03 22:02 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; using ll = long long; int n,m; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n>>m; vector< 阅读全文
posted @ 2026-03-03 20:32 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #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)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=3010,M=10010; int h[N],e[M],ne[M],idx; double w[M]; int n,m; double dist[N]; int cnt[N 阅读全文
posted @ 2026-02-24 22:45 AnoSky 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e4+10,M=5e4+10; int dist[N],cnt[N],st[N]; int h[N],ne[M],e[M],w[M],idx; int n,m; void 阅读全文
posted @ 2026-02-24 21:40 AnoSky 阅读(2) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页