随笔分类 - 数据结构 STL 栈
UVA 11995 STL 使用
摘要:There is a bag-like data structure, supporting two operations: Throw an element x into the bag. Take out an element from the bag. Given a sequence of
阅读全文
HDU 2646 栈的应用 STL
摘要:ExpressionTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 202Accepted Submission(s): 61 Problem D...
阅读全文
bzoj 1012 维护一个单调数列
摘要:Description现在请求你维护一个数列,要求提供以下两种操作: 1、 查询操作。语法:Q L 功能:查询当前数列中末尾L个数中的最大的数,并输出这个数的值。限制:L不超过当前数列的长度。 2、 插入操作。语法:A n 功能:将n加上t,其中t是最近一次查询操作的答案(如果还未执行过查询操作,则...
阅读全文