只能过86.67%,不知道问题出在哪了。 #include <bits/stdc++.h> using namespace std; #define rep(i,a,n) for(register int i=a;i<=n;++i) struct p{ int x,y,s; p(){} p(int x,int y,int s):x(x),y(y),s(s){} }; // 数据数组。 string a[52]; // 标记数组。 bool b[52][52]; // 起点和终点。 p st,ed; // 前4个是上下左右,后4个是斜着的方向。 int ...