From 276cd4f62c6504917bcdd36ec21021b435de5d7a Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Tue, 26 Apr 2016 21:12:25 +0800 Subject: [PATCH] Create 1078.cpp --- HDOJ/1078.cpp | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 HDOJ/1078.cpp diff --git a/HDOJ/1078.cpp b/HDOJ/1078.cpp new file mode 100644 index 0000000..113de59 --- /dev/null +++ b/HDOJ/1078.cpp @@ -0,0 +1,57 @@ +#include +#include +#include +#include +using namespace std; +#define MAXN 101 +int map[MAXN][MAXN]; +int dp[MAXN][MAXN]; +int N; +int K; +int dfs(int y,int x) +{ + if(dp[y][x]!=0) return dp[y][x]; + dp[y][x]=map[y][x]; + for(int i=1;i<=K;i++) + { + if(x+i=0&&map[y][x]=0&&map[y][x]