![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
foj
Shirley_RL
Stay hungry Stay foolish
展开
-
foj 1411
一开始想到退栈,没想到是有点纠结,后来一想应该可以标记所有被匹配的括号,然后查找最大被标记的连续区域。 empty()空为真 。。。。。 #include #include #include #include using namespace std; struct st{ int id; char c; }st,st1; stack s; cha原创 2013-09-17 15:45:09 · 707 阅读 · 0 评论 -
foj_1532
又是栈的问题 #include #include #include #include using namespace std; char s1[18],s2[18]; int step[34]; char s[34]; int n; void dfs(int top,int m,int p1,int k){ int i; while(1) { if(原创 2013-09-22 14:18:41 · 595 阅读 · 0 评论