![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈
代码随想录
代码随想录网站:https://programmercarl.com
展开
-
poj 3250 Bad Hair Day 栈的简单运用
#includeusing namespace std;#includetypedef long long ll;ll a[100000];int main(){ stacks; int n; while(cin>>n) { for(原创 2011-10-05 15:14:43 · 910 阅读 · 0 评论 -
poj 1363 Rails 栈应用基础题
题意是有一个升序1,2,3,4,5,6,7,.....的火车,进站之后能不能以输入的顺序输出!!!就这题我看了半天才看明白题意!!愁死我了 #includeusing namespace std;#includeint a[1005];int num[10原创 2011-10-05 11:50:49 · 1275 阅读 · 0 评论 -
hdu Train Problem I 栈的基本应用
这道题和poj的1363题很相近!!!!不解释了,基础栈的应用#include#includeusing namespace std;char a[15],b[15],sign[15];int main(){ int n; stack q; while(cin>>n) { scanf("%s%s",a,b); memset(sign,0,sizeo原创 2011-11-15 19:42:50 · 589 阅读 · 0 评论