STL
少女情怀总是诗mmm
人生目标——成为一个富有的老姑娘
展开
-
STL的应用
HDU-Let the Balloon Rise Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the cont...原创 2019-04-04 17:54:20 · 262 阅读 · 0 评论 -
stack的应用
四月一日快到了,Vayko想了个愚人的好办法——送礼物。嘿嘿,不要想的太好,这礼物可没那么简单,Vayko为了愚人,准备了一堆盒子,其中有一个盒子里面装了礼物。盒子里面可以再放零个或者多个盒子。假设放礼物的盒子里不再放其他盒子。 用()表示一个盒子,B表示礼物,Vayko想让你帮她算出愚人指数,即最少需要拆多少个盒子才能拿到礼物。 Input 本题目包含多组测试,请处理到文件结束。 每组测试包...原创 2019-04-04 19:40:14 · 134 阅读 · 0 评论 -
UVA 10935 Throwing cards away I (queue)
Given is an ordered deck ofncards numbered 1tonwith card 1 at the top and cardnat thebottom. The following operation is performed aslong as there are at least two cards in the deck:Throw away the top ...原创 2019-04-04 19:45:55 · 197 阅读 · 0 评论 -
CodeForces 2A - Winner(map的应用)
The winner of the card game popular in Berland "Berlogging" is determined according to the following rules. If at the end of the game there is only one player with the maximum number of points, he is ...原创 2019-04-10 20:34:59 · 216 阅读 · 0 评论 -
UVA 10815 Andy's First Dictionary(set+sstream)
Andy, 8, has a dream - he wants to produce hisvery own dictionary. This is not an easy task forhim, as the number of words that he knows is,well, not quite enough. Instead of thinking up allthe words ...原创 2019-04-10 20:39:25 · 118 阅读 · 0 评论 -
ZOJ-1061-Web Navigation (栈的应用)
Standard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these features is to use two stacks to keep track of the pages that can be re...原创 2019-04-10 20:47:58 · 151 阅读 · 0 评论