#include <iostream> #include <vector> #include <string> using namespace std; vector<int> toCoordinate(string s) { int n = s.size(); if (n < 2 || n > 3) return {0,0}; char c = s[0]; if (!(c == 'A' || c == 'D' || c == 'W' || c == 'S')) return {0,0}; ...