摘要:
stack应用#include <iostream>
#include <cmath>
#include <stack>
#define max 3005
using namespace std;
int t[max];
stack<int> a; void clear()
{ while (!a.empty()) a.pop();
} int main()
{ int n; while (cin >> n) { int sub, tmp, flag = 1; for (int i = 1;... 阅读全文