摘要: dfs深度优先搜索 https://www.luogu.com.cn/problem/P8662 ` include<bits/stdc++.h> using namespace std; int n; const int N=1010; char a[N][N]; int sum,ans,cnt; 阅读全文
posted @ 2024-02-04 18:00 CXfang10 阅读(24) 评论(0) 推荐(0)
摘要: ` include<bits/stdc++.h> using namespace std; int n; map<int,int>mp; int main(){ cin >> n; vectorv(n); for(int i=0;i<n;i++){ cin >> v[i]; mp[v[i]]++; 阅读全文
posted @ 2024-02-04 17:15 CXfang10 阅读(54) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P1914 ` include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; char str[100]; cin >> str; int len 阅读全文
posted @ 2024-01-31 11:17 CXfang10 阅读(37) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P8662 ` include<bits/stdc++.h> using namespace std; int n; const int N=1010; char a[N][N]; int sum,ans,cnt; int d[4][ 阅读全文
posted @ 2024-01-29 17:20 CXfang10 阅读(19) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P1765?contestId=155201 ` include<bits/stdc++.h> using namespace std; string s[10][4] = { {}, {}, {"a", "b", "c"}, {"d 阅读全文
posted @ 2024-01-26 17:52 CXfang10 阅读(18) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P1048?contestId=154692 ` include<bits/stdc++.h> using namespace std; int v[105]; int value[105]; int dp[105][1005]; i 阅读全文
posted @ 2024-01-26 17:46 CXfang10 阅读(24) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/B3691?contestId=154692 ` include<bits/stdc++.h> using namespace std; int n, m; int a[500005], b[500005], c[5000005], 阅读全文
posted @ 2024-01-26 17:39 CXfang10 阅读(16) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P8507?contestId=154692 ` include<bits/stdc++.h> using namespace std; double a,b; int main() { scanf("%lf%lf",&a,&b); 阅读全文
posted @ 2024-01-26 17:35 CXfang10 阅读(33) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P8506?contestId=154692 ` include<bits/stdc++.h> using namespace std; int main(){ int n; int count=0; cin >> n; getcha 阅读全文
posted @ 2024-01-26 17:32 CXfang10 阅读(17) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P8647?contestId=154515 ` include<bits/stdc++.h> define x first define y second using namespace std; typedef pair<int, 阅读全文
posted @ 2024-01-26 17:16 CXfang10 阅读(14) 评论(0) 推荐(0)