1、叠箱子问题 #include <iostream> #include <vector> #include <stack> using namespace std; int countNum(string input) { //用栈解决,0代表箱子左边缘'[' stack<int> stk; int length = input.length(); int i = 0; while (i < length) { char cur = input[i]; //左边缘入栈0 if (cur ==...