2015年12月8日

POJ1363

摘要: 思路:1~N个数每来一个数就入栈,若栈顶元素与 给出序列中l所指向的元素相等则出栈直到栈为空或不相等为止,如最后栈为空则Yes不为空则No#include"cstdio"#include"cstring"using namespace std;const int MAXN=1005;int a[MA... 阅读全文

posted @ 2015-12-08 09:04 vCoders 阅读(360) 评论(0) 推荐(0)

导航