摘要:
题意看了老半天,就是说给一个序列[1, n],看是否是(1, 2, 3, ... n),入栈以后出栈时可以得到的序列。My Code:View Code #include <iostream>#include <cstdio>using namespace std;const int N = 100007;int st1[N], st2[N];int main() { //freopen("data.in", "r", stdin); int i, top1, top2, n; while(cin >> n) { fo 阅读全文
posted @ 2011-12-03 19:31
AC_Von
阅读(349)
评论(0)
推荐(0)

浙公网安备 33010602011771号