![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈&队列
文章平均质量分 72
Never_Say-Never
这个作者很懒,什么都没留下…
展开
-
hdoj1702ACboy needs your help again!
Problem DescriptionACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(.As a smart ACMer, you want to get ACb原创 2016-07-25 21:03:43 · 218 阅读 · 0 评论 -
hdojRescue (BFS)
Problem DescriptionAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M Angel's friends want to save Angel. Their task is: approach Angel. W原创 2016-07-29 19:35:34 · 352 阅读 · 0 评论 -
hdoj1702ACboy needs your help again!(栈和队列)
Problem DescriptionACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(.As a smart ACMer, you want to get ACb原创 2016-07-19 09:52:08 · 217 阅读 · 0 评论 -
Code forces 612C
DescriptionYou are given string s consists of opening and closing brackets of four kinds , {}, [], (). There are two types of brackets: opening and closing. You can replace any bracket by anothe原创 2016-07-26 09:02:36 · 336 阅读 · 0 评论 -
hdoj4006The kth great number
Problem DescriptionXiao Ming and Xiao Bao are playing a simple Numbers game. In a round Xiao Ming can choose to write down a number, or ask Xiao Bao what the kth great number is. Because the number原创 2016-07-26 08:34:33 · 232 阅读 · 0 评论 -
hdoj1237简单计算器
Description读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。 Output对每个测试用例输出1行,即原创 2016-07-26 08:27:29 · 244 阅读 · 0 评论 -
Bingo和木棍(找不到出处)(优先队列)
Description我们的小伙伴Bingo真的很调皮,他在上课的路上看到树上有个鸟窝,他就想去把他捅下来,但是鸟窝很高他够不到,于是他就到处找木棍,想把这些木棍接在一起,然后去捅鸟窝。他一共找了N跟木棍 (1 ≤ N ≤ 20,000),每根木棍的长度为 Li (1 ≤ Li ≤ 50,000) 。现在他要把这N根木棍连接在一起,每次连接只能把两根木棍连在一起,而且每连接一次都需要花费一原创 2016-07-26 08:18:53 · 510 阅读 · 0 评论 -
hdoj1896Stones
Problem DescriptionBecause of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some原创 2016-07-26 08:07:31 · 309 阅读 · 0 评论 -
hdoj1873看病要排队(优先队列)
Problem Description看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为10的优先权最高,级别为1的优先权最低。医生在看病时,则会在他的队伍里面选择一个优先权最高的人进原创 2016-07-25 23:45:06 · 278 阅读 · 0 评论 -
poj1363Rails(栈)
DescriptionThere is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It wa原创 2016-07-25 23:39:32 · 230 阅读 · 0 评论 -
POJ2251Dungeon Master(3D bfs)
DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one un原创 2016-07-29 19:41:56 · 364 阅读 · 0 评论