摘要: 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;... 阅读全文
posted @ 2011-11-16 23:30 xxx1 阅读(179) 评论(0) 推荐(0) 编辑