摘要: 两题基本相同都是关于转弯不能超过某个数,所以有些点可能重复走,所以要设time[][]数组来记录上次走过的时间!!!!记得初始化queue!!!HDU1175View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 #include<queue> 5 #include<algorithm> 6 using namespace std; 7 const int dx[]={0,0,1,-1}; 8 const int dy[]={1,-1,0,0} 阅读全文
posted @ 2013-02-15 14:57 xxx0624 阅读(903) 评论(0) 推荐(0) 编辑