A Knight's Journey Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 28630 Accepted: 9794 Description Background The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey a…
题意:在矩阵数组中搜索两点是否可达 解法:DFS #include<iostream> #include<memory.h> using namespace std; struct position{ int x; int y; position(int xx,int yy){ x = xx; y = yy; } position(){} }; ][]; int canReach; position dest; //destination int row,col; ][]={{,}…