上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=2e5+10; LL a[N]; LL c; int n; int main() { ios::sync_with_stdio( 阅读全文
posted @ 2026-01-25 23:15 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e6+10; int n,m,q; int a[N]; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n>> 阅读全文
posted @ 2026-01-25 22:15 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e3+10,M=2e4+10; typedef pair<int,int> PII; int n,p,k; int h[N],ne[M],w[M],idx,e[M]; i 阅读全文
posted @ 2026-01-25 21:33 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,int> PII; const int N=1e4+10,M=1e5+10; int h[N],ne[M],idx,e[ 阅读全文
posted @ 2026-01-25 20:50 AnoSky 阅读(5) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=10010,M=100010,K=15; int h[N],ne[M],e[M],idx,w[M]; int dist[N][K]; int st[N][K]; int n 阅读全文
posted @ 2026-01-22 22:57 AnoSky 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2010,M=200010; int n,m; typedef pair<double,int> PDI; int h[N],ne[M],e[M],idx; double 阅读全文
posted @ 2026-01-22 21:55 AnoSky 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; const int N=1e6+10,M=4e6+10; int h[N],idx,e[M],ne[M]; int n,m; int cnt[ 阅读全文
posted @ 2026-01-22 17:04 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; const int N=1005,M=100005; struct Graph{ int h[N],e[M],ne[M],idx,w[M]; 阅读全文
posted @ 2026-01-22 11:44 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; const int N=1005,M=100005; int h1[N],e1[M],idx1,ne1[M],w1[M]; int h2[N] 阅读全文
posted @ 2026-01-22 10:58 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int MAXN = 205; const int INF = 1e9; // 定义一个足够大的数代表无穷大 int n, m; int t[MAXN]; //存每个村庄的修复时间 i 阅读全文
posted @ 2026-01-18 23:56 AnoSky 阅读(6) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页