11 2013 档案

摘要:#include#include#includeusing namespace std;int a[10][10];int state_time[10][10];int f[4][2]={0,1,0,-1,1,0,-1,0};struct state{ int x,y; int time... 阅读全文
posted @ 2013-11-28 19:11 天羽屠龙舞 阅读(155) 评论(0) 推荐(0)
摘要://多个起点,要最短得目标,不妨倒过来从目标出发,去找最近的点更新!!!!!!递归时思路要清楚#include#includeusing namespace std;int a[202][202]; int ax,ay;int f[4][2]={0,1,1,0,-1,0,0,-1};int mmin... 阅读全文
posted @ 2013-11-11 16:10 天羽屠龙舞 阅读(144) 评论(0) 推荐(0)
摘要:#include#includeusing namespace std;int a[105][105]; int d[8][2]={0,1,0,-1,1,0,-1,0,-1,-1,-1,1,1,-1,1,1}; //八个方向!方向向量。void dfs(int x,int y){... 阅读全文
posted @ 2013-11-03 16:06 天羽屠龙舞 阅读(112) 评论(0) 推荐(0)