poj 3669 Meteor Shower
queue<point> que;
point s, cur, next;
s.x = 0;
s.y = 0;
s.step = 0;
que.push(s);
// 这个地方也是比较关键的,我这个地方把-1和0输出返了,结果一直wa
// 起始位置的值为-1的时候就是在安全的位置,所以并不需要移动
// 如果起始位置的值为0,那么这个人还没有开始移动就已经被炸死了,所以输出-1
if(-1 == map[0][0]) return 0; // 安全
if(0 == map[0][
原创
2015-12-02 17:15:04 ·
514 阅读 ·
0 评论