栈与队列
文章平均质量分 69
一个愤怒的神
菜鸟一枚
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU-1020
Given a stringcontaining only 'A' - 'Z', we could encode it using the following method: 1. Each sub-string containing k same characters should be encoded to"kX" where "X" is the only character in原创 2017-06-01 17:47:08 · 347 阅读 · 0 评论 -
HDU-1702
ACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark theroom he was put into is, so poor :(. As a smart ACMer, you want to get ACboy out of the monste原创 2017-06-01 18:20:35 · 614 阅读 · 0 评论 -
HDU-1022
As the new term comes, the Ignatius Train Station is verybusy nowadays. A lot of student want to get back to school by train(because thetrains in the Ignatius Train Station is the fastest all over the原创 2017-06-01 18:50:30 · 488 阅读 · 0 评论 -
POJ-1363
There is a famous railway station in PopPush City. Country thereis incredibly hilly. The station was built in last century. Unfortunately,funds were extremely limited that time. It was possible to est原创 2017-06-01 17:21:33 · 406 阅读 · 1 评论 -
HDU-1237
读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。 Output 对每个测试用例输出1行,即该表达式的值,精确到小数点后2位。 Sample Input 1 + 2 4 +原创 2017-06-01 22:44:37 · 626 阅读 · 0 评论 -
HDU-1870
四月一日快到了,Vayko想了个愚人的好办法——送礼物。嘿嘿,不要想的太好,这礼物可没那么简单,Vayko为了愚人,准备了一堆盒子,其中有一个盒子里面装了礼物。盒子里面可以再放零个或者多个盒子。假设放礼物的盒子里不再放其他盒子。 用()表示一个盒子,B表示礼物,Vayko想让你帮她算出愚人指数,即最少需要拆多少个盒子才能拿到礼物。 Input 本题目包含多组测试,请处理到文件结束。原创 2017-06-01 23:01:50 · 387 阅读 · 0 评论 -
POJ-3750小孩报数问题
有N个小孩围成一圈,给他们从1开始依次编号,现指定从第W个开始报数,报到第S个时,该小孩出列,然后从下一个小孩开始报数,仍是报到S个出列,如此重复下去,直到所有的小孩都出列(总人数不足S个时将循环报数),求小孩出列的顺序。 Input 第一行输入小孩的人数N(N 接下来每行输入一个小孩的名字(人名不超过15个字符) 最后一行输入W,S (W Output 按人名输出小孩按顺序出列的原创 2017-06-01 23:10:50 · 500 阅读 · 0 评论
分享