首页 > TAG信息列表 > 3083

3083-表达式树

    #include <bits/stdc++.h> std::string s, a, b; int k; void solve(char flag) { if (isalpha(flag)) return; char c = s[s.size() - ++k]; solve(c); b = c + b; solve(c); a = c + a; } signed main() { std::cin >> s;