摘要: 根据标题可知 这道题一定是一道枚举题 这道题考虑使用dfs,处理特殊处理第一层,每次加答案时选最优值。 给出代码: 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,m; char mat[20][110]; int dfs(int 阅读全文
posted @ 2024-07-12 23:09 e4ns 阅读(16) 评论(0) 推荐(0)