栈和队列
文章平均质量分 82
路兔兔123
博客已搬迁到http://www.cnblogs.com/cniwoq/ 今后不会再访问csdn
展开
-
南阳oj 题目2—括号配对问题
括号配对问题时间限制:3000 ms | 内存限制:65535 KB难度:3描述现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0输出每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No样例输入3[(])(])([[]()])样例输出NoNoYes原创 2016-02-12 18:05:48 · 521 阅读 · 0 评论 -
hdu - 5945 Fxx and game 【dp + 单调队列】
Fxx and gameTime Limit: 3000/1500 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 413 Accepted Submission(s): 100Problem DescriptionYoung theoreti原创 2016-10-30 12:39:17 · 401 阅读 · 0 评论 -
poj 2823 - Sliding Window【单调队列模板】
Sliding WindowTime Limit: 12000MS Memory Limit: 65536KTotal Submissions: 55797 Accepted: 16048Case Time Limit: 5000MSDescriptionAn array of size n ≤ 106原创 2016-10-30 09:54:38 · 249 阅读 · 0 评论 -
HDU Problem 4857 逃生【拓扑排序+优先队列】
逃生Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4265 Accepted Submission(s): 1185Problem Description糟糕的事情发生啦,现在大家都忙着逃命。但是逃命原创 2016-08-05 19:58:32 · 279 阅读 · 0 评论 -
HDU Problem 4006 The kth great number 【队列】
The kth great numberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 10020 Accepted Submission(s): 3997Problem DescriptionXiao原创 2016-07-28 09:11:35 · 236 阅读 · 0 评论 -
HDU Problem 简单计算器【栈】
简单计算器Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18056 Accepted Submission(s): 6353Problem Description读入一个只包含 +, -, *, /原创 2016-07-28 09:02:19 · 2140 阅读 · 0 评论 -
HDU Problem 1896
StonesTime Limit: 5000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2063 Accepted Submission(s): 1359Problem DescriptionBecause of the wrong原创 2016-07-26 23:03:24 · 181 阅读 · 0 评论 -
HDU Problem 1873 看病要排队 【优先队列】
看病要排队Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8146 Accepted Submission(s): 3387Problem Description看病要排队这个是地球人都知道的常识。不过原创 2016-07-26 22:52:28 · 340 阅读 · 0 评论 -
Codeforces 612C Replace To Make Regular Bracket Sequence【栈】
Replace To Make Regular Bracket Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given strin原创 2016-07-26 22:45:53 · 276 阅读 · 0 评论 -
POJ Problem 1363 Rails 【栈】
RailsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 31441 Accepted: 12222DescriptionThere is a famous railway station in PopPush City. Country there is原创 2016-07-26 22:32:23 · 307 阅读 · 0 评论 -
virtual oj ACboy needs your help again!
ACboy needs your help again! Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionACboy was kidnapped!! he miss his mother very m原创 2016-02-12 20:22:43 · 337 阅读 · 0 评论 -
HDU - problem 1387 Team Queue【队列】
Team QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1999 Accepted Submission(s): 688Problem DescriptionQueues and Prior原创 2016-11-14 22:09:53 · 289 阅读 · 0 评论