我以后不 有意识的写bug了。 把原来的代码 把重复的代码 用函数去表示后, 我华为的第三题就出来了。 立贴,以后别偷懒。。 #include<iostream> #include<string> #include<stack> #include<unordered_map> #include<vector> using namespace std; int doSometing(string str); void single(stack<int>& st_num, stac...