随笔分类 - 搜索
摘要:题目链接 本题主要思路是搜索 刚开始想写bfs,写着写着就写假了写成了dfs dfs会TLE成80分 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; cons
阅读全文
摘要:题目链接 这道题刚开始打的暴力,64分。 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int N = 30; int n, a[N][N],
阅读全文

浙公网安备 33010602011771号