建议其他厂向美团学习// 1 模拟栈#include <iostream>#include <vector>#include <stack>using namespace std;bool check(vector<int> &in, vector<int> &out, int n){ stack<int> st; int pos = 0; for (int i = 0; i < n; ++i) { st.push(in[i]); while (!s...