摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=4740 #include #include #define M 1005int n;int Dx,Dy,Ds,Gx,Gy,Gs;int Df[M][M],Gf[M][M];const int move[4][2] = {{0,1},{1,0},{0,-1},{-1,0}};int judEdge(int x, int y){ if(x = n || y = n) return 0; return 1;}void Dturn(){ Ds = (Ds + 1) % 4;}void Gtu... 阅读全文