题意:在矩阵数组中搜索两点是否可达 解法: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; ][]={{,}…
I Curse Myself Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2266 Accepted Submission(s): 544 Problem Description There is a connected undirected graph with weights on its edges. It is gu…