给定一个只含小写字母的字符串,执行以下两步操作:
b。"ac"(ac 可能嵌套:移除一对 ac 后,新相邻的字符可能又形成 ac,需继续移除)。输出最终处理后的字符串。
一行字符串 s(1≤∣s∣≤105),只含小写字母。
输出处理后的字符串。若结果为空,输出空行。
输入
js
输出
js
输入
cpgaaiczahcrtbxambcbc
输出
cpgaaiczahcrtxamcc
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.