思路明确,注意代码规范 #include <bits/stdc++.h> using namespace std; void zbyd(int& j, int& k, char c, int m) { if (c == 'A') j -= m; if (c == 'S') k -= m; if (c == 'W') k += m; if (c == 'D') j += m; } int main () { string str; cin >> str; vector<char> rec; vector<int> n...