这个题很奇怪,看来不用考虑ABC这种三个数连乘的?出栈的时候除了')',遇到C也要出栈啊; #include <iostream> #include <vector> #include <stack> using namespace std; int mul[20][2]; int sum = 0; void eval(stack<pair<int, int>>& st) { auto [a, b] = st.top(); st.pop(); auto [c, d] = st.top(); st.pop(); // cd矩阵在...