摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=50010; int n; int pos[N]; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n; mem 阅读全文
posted @ 2026-02-07 22:38 AnoSky 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=5e6+10; int n,p; int b[N]; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n>>p; 阅读全文
posted @ 2026-02-07 21:21 AnoSky 阅读(7) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1010; int n,m; int d[N][N]; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n>>m 阅读全文
posted @ 2026-02-07 20:38 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e3+10; int n,m,c; int s[N][N]; int ax,ay; int main() { ios::sync_with_stdio(0),cin.ti 阅读全文
posted @ 2026-02-07 20:20 AnoSky 阅读(3) 评论(0) 推荐(0)