![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈
文章平均质量分 73
无敌大饺子
这个作者很懒,什么都没留下…
展开
-
UVA 551
栈的应用 括号匹配#include #include #include #include #include using namespace std;char buf[3100];int tb[6000];bool isCloseBracket(char ch){ return ch==')'||ch==']'||ch=='}'||ch=='>';}void ini原创 2013-03-11 20:43:57 · 802 阅读 · 0 评论 -
ZOJ 1246 Instant Complexity(栈应用)
计算程序时间复杂度的有可能出现 loop 0的情况所以给每一个块带一个coe系数,块中如果内嵌块,则把外面的块的coe系数传递过去.#include #include #include #include #include using namespace std;#define pb push_backconst int maxn=11;bool poly[maxn];原创 2013-04-23 10:09:15 · 575 阅读 · 0 评论