愚人节的礼物

栈的应用,将左括号加入栈中遇到右括号就弹出直到遇到B 四月一日快到了,Vayko想了个愚人的好办法——送礼物。嘿嘿,不要想的太好,这礼物可没那么简单,Vayko为了愚人,准备了一堆盒子,其中有一个盒子里面装了礼物。盒子里面可以再放零个或者多个盒子。假设放礼物的盒子里不再放其他盒子。  ...

2017-09-02 14:12:20

阅读数:119

评论数:0

Train Problem I

栈的模拟 Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by t...

2017-09-02 14:07:07

阅读数:123

评论数:0

愚人节的礼物

其实就是求在'B'之前不能配对的左括号个数 四月一日快到了,Vayko想了个愚人的好办法——送礼物。嘿嘿,不要想的太好,这礼物可没那么简单,Vayko为了愚人,准备了一堆盒子,其中有一个盒子里面装了礼物。盒子里面可以再放零个或者多个盒子。假设放礼物的盒子里不再放其他盒子。  用()...

2017-08-28 19:59:45

阅读数:215

评论数:0

ACboy needs your help again!

队列和栈的模拟(不过我用c++ stl中的queue stack过了~) Problem Description ACboy was kidnapped!!  he miss his mother very much and is very scare now.You can't image...

2017-08-28 16:55:45

阅读数:133

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭