感受思路 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int mod = 1e9 + 7; struct node{ int dfn; int val; }f[2][205][205][5]; int dx[] = {-1, 1, 0, 0, 0}; int dy[] = {0, 0, -1, 1, 0}; int n, m, t, x1, yy, d, x2, y2; int my_abs(int x){ return x < 0 ? -x :...