#include <iostream> #include <string> using namespace std; /** * @brief 分析位移指令,并更新指令到剩余指令 * @return 返回<方向, 距离> */ pair<char, int> getMove(string *s) { char di...