上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 点击查看代码 #include <iostream> using namespace std; // 题目说明 N, M <= 100,所以数组开稍微大一点防越界 const int MAXN = 105; int N, M; char field[MAXN][MAXN]; // 存地图 // 定义 阅读全文
posted @ 2026-01-04 17:01 AnoSky 阅读(12) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; int n; int a[35][35]; int dx[4]={0,0,1,-1}; int dy[4]={1,-1,0,0}; void 阅读全文
posted @ 2025-12-12 16:40 AnoSky 阅读(11) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1005; int n,m; char g[N][N]; //联通块对应的id int cid[N][N]; //连通块对应的大小 int csize[N*N]; //连通 阅读全文
posted @ 2025-12-12 16:35 AnoSky 阅读(13) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,sum; int pascal[13][13]; int res[13]; bool used[13]; void dfs(int dep,int csum) { //当前和大于sum 阅读全文
posted @ 2025-12-10 16:44 AnoSky 阅读(5) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,m; int a[25]; long long ans; bool prime(int x) { if(x==1||x!=2&&x%2==0) return false; for(in 阅读全文
posted @ 2025-12-09 00:51 AnoSky 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; string in,post; void preorder(int inl,int inr,int postl,int postr) { if(inl>inr||postl>postr) retu 阅读全文
posted @ 2025-12-09 00:27 AnoSky 阅读(7) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e5+10; LL a[N]; LL n,m; bool check(LL mid) { LL t=0,cnt=1; for( 阅读全文
posted @ 2025-12-08 17:35 AnoSky 阅读(12) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e6+10; int n; LL a[N],s[N]; int main() { cin>>n; LL sum=0; for( 阅读全文
posted @ 2025-12-08 16:41 AnoSky 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e5+10; int n,k; LL a[N],b[N],s[N]; bool check(LL x) { //预处理前缀和数 阅读全文
posted @ 2025-12-08 10:30 AnoSky 阅读(8) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=110; const char null='*'; vector<char> str(N,'*'); int n; //使用erase函数 int main() { cin 阅读全文
posted @ 2025-12-08 09:15 AnoSky 阅读(7) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页