题目用优先队列优化普通的广搜就可以过了。#include#include#includeusing namespace std;#includestruct pq{ int x,y,val; friend bool operator b.val; }};priority_queu... Read More
posted @ 2014-10-08 22:23 laiba2004 Views(196) Comments(0) Diggs(0) Edit
题目又一道可以称之为dp的题目,虽然看了别人的代码,但是我的代码写的还是很挫,,,,,,//看了题解做的简单的记忆化dp#include#include#includeusing namespace std;int mp[110][110],dp[110][110];int xx[]={1,-1,0... Read More
posted @ 2014-10-08 22:19 laiba2004 Views(235) Comments(0) Diggs(0) Edit