随笔分类 -  搜索

摘要:题目链接 本题主要思路是搜索 刚开始想写bfs,写着写着就写假了写成了dfs dfs会TLE成80分 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; cons 阅读全文
posted @ 2020-10-13 19:05 Lvlb2333 阅读(85) 评论(0) 推荐(0)
摘要:题目链接 这道题刚开始打的暴力,64分。 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int N = 30; int n, a[N][N], 阅读全文
posted @ 2020-10-12 20:50 Lvlb2333 阅读(58) 评论(0) 推荐(0)