摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n; int pos[N]; int q[N],len; int main() { ios::sync_with_stdio(0),cin.tie( 阅读全文
posted @ 2026-03-10 11:20 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int a[N]; int q1[N]; int q2[N]; int main() { ios::sync_with_stdio(0),cin.tie(0 阅读全文
posted @ 2026-03-10 10:44 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=30; bool st[N][N]; long long f[N][N]; int n,m; int hx,hy; int dx[9]={0,-2,-1,1,2,2,1,- 阅读全文
posted @ 2026-03-10 10:10 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bit/stdc++.h> using namespace std; const int N = 15; int n, t[N], d[N], l[N]; bool st[N]; //状态定义 bool dfs(int u, int time) { //终止条件 if 阅读全文
posted @ 2026-03-10 00:17 AnoSky 阅读(3) 评论(0) 推荐(0)