Shirlies
宁静专注认真的程序媛~
摘要: 搞了点搜索,IDA*那个启发函数太难找了,先放一放,来搞DP,至于DP的题目是根据http://www.cppblog.com/doer-xee/archive/2009/12/05/102629.html这个地方的内容来的,很全面……这一题还比较好搞……处理当前点,看当前点可达哪一些点……代码如下: 1 #include <cstdio> 2 #include <cstring> 3 4 const int mod = 10000; 5 int map[105][105]; 6 int dp[105][105]; 7 8 int main() 9 {10 int n, 阅读全文
posted @ 2012-08-14 19:42 Shirlies 阅读(267) 评论(0) 推荐(0) 编辑