摘要: 这个题求连续下降距离第一个想法肯定是DFS接着想一下可能会出现向下深搜的过程中搜到已经搜过的点所以再记忆化以下#include using namespace std;typedef long long ll;c... 阅读全文
posted @ 2018-07-17 18:15 张浦 阅读(79) 评论(0) 推荐(0) 编辑
摘要: C. Three Parts of the Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inpu... 阅读全文
posted @ 2018-07-17 10:55 张浦 阅读(117) 评论(0) 推荐(0) 编辑
摘要: B. Polycarp's Practicetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputout... 阅读全文
posted @ 2018-07-17 10:50 张浦 阅读(72) 评论(0) 推荐(0) 编辑
摘要: A. Adjacent Replacementstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputou... 阅读全文
posted @ 2018-07-17 10:46 张浦 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 迷宫类是经典dfs地图数组标记障碍物存在数组表姐已经是否走过边dfs边回溯枚举所有符合题意的组合#include using namespace std;const int MAXN = 6;int N, M, ... 阅读全文
posted @ 2018-07-17 10:40 张浦 阅读(67) 评论(0) 推荐(0) 编辑