不懂正则表达式,按照状态机的思想分析每个字串,贴一下我又臭又长的代码 #include<bits/stdc++.h> using namespace std; int main () { string str; while(cin>>str) { vector<int> fenhao; fenhao.push_back(-1); int temp=-1; int flag=0; map<char,int> move; move.insert(make_pair('A',0)); move.insert(make_pair('S',0)); mov...