#include <bits/stdc++.h> #include <string> #include <unordered_set> #include <utility> using namespace std; using ll = long long; deque<pair<int, int>> snake; unordered_set<string> paths; int dx[] = {0, 0, 0, -1, 1}; // 占位 上 下 左 右 int dy[] = {0, 1, -1, 0, 0}...