From 307c7181362bef62ebb922c732eeab8afca9eb8d Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Thu, 21 Apr 2016 18:38:06 +0800 Subject: [PATCH] Create 1501_dp.cpp --- HDOJ/1501_dp.cpp | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 HDOJ/1501_dp.cpp diff --git a/HDOJ/1501_dp.cpp b/HDOJ/1501_dp.cpp new file mode 100644 index 0000000..e08bab4 --- /dev/null +++ b/HDOJ/1501_dp.cpp @@ -0,0 +1,59 @@ +#include +#include +#include +using namespace std; + +char a[300]; +char b[300]; +char c[700]; + +int lena,lenb,lenc; +bool dfs(int pos_in_a,int pos_in_b,int pos_in_c) +{ + if(pos_in_a==lena&&pos_in_b==lenb) + { + return true; + } + if(pos_in_a