摘要: Problem DescriptionThere's a queue obeying the first in first out rule. Each time you can either push a number into the queue (+i), or pop a number out from the queue (-i). After a series of operation, you get a sequence (e.g. +1 -1 +2 +4 -2 -4). We call this sequence a queue sequence.Now you ar 阅读全文
posted @ 2013-10-05 18:27 Oyking 阅读(277) 评论(0) 推荐(0)