From 1a9026bc582f2b08d5e95ecad92a8c4ef80822a1 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Thu, 21 Apr 2016 18:38:36 +0800 Subject: [PATCH] Create 1501_CSDN_dp.cpp --- HDOJ/1501_CSDN_dp.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 HDOJ/1501_CSDN_dp.cpp diff --git a/HDOJ/1501_CSDN_dp.cpp b/HDOJ/1501_CSDN_dp.cpp new file mode 100644 index 0000000..c41f7c0 --- /dev/null +++ b/HDOJ/1501_CSDN_dp.cpp @@ -0,0 +1,42 @@ +#include +#include +//#define LOCAL +using namespace std; + +const int MAXN=205; + +char a[MAXN],b[MAXN],all[2*MAXN-5]; +int lenA,lenB,lenAll; + +bool DFS(int posA,int posB,int posAll) { + if(posA==lenA&&posB==lenB) + return true; + if(posA