#include <iostream> #include <sstream> #include <vector> #include <string> using namespace std; struct Point { int x, y; }; // bool isValidCoord(char dir, int num) { // // 检查方向是否合法 // if (dir != 'A' && dir != 'W' && dir != 'S' && dir != '...