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
posted @ 2015-12-08 09:04
posted @ 2015-12-04 09:05
posted @ 2015-12-03 17:14
posted @ 2015-12-03 16:26
posted @ 2015-12-01 18:10