摘要: #include #include #include #include #include #include using namespace std; int nex[4][2]= { {0,1},{1,0},{0,-1},{-1,0} }; typedef struct { int x,y; } Point; int a[10][10],vis[10][10]; int pre[50];... 阅读全文
posted @ 2017-07-19 15:11 Twsc 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 在一个矩形方阵里面,一个人要从一个位置走向另一个位置,其中某些地方有火源,每过一分钟,火源就会点燃相邻的点,同时相邻的点也变成了火源。人不能通过有火的点。问一个人能够安全地走到边界去最短时间多少?Unfortunately, portions of the maze havecaught on fi 阅读全文
posted @ 2017-07-19 15:09 Twsc 阅读(219) 评论(0) 推荐(0) 编辑