ACM栈
桑榆207
在最终的结果到来之前,任何肯定会赢之类的话都是虚无缥缈的。
展开
-
牛客 吐泡泡 模拟栈操作
https://ac.nowcoder.com/acm/contest/74/A?&headNav=www题目描述小鱼儿吐泡泡,嘟嘟嘟冒出来。小鱼儿会吐出两种泡泡:大泡泡"O",小泡泡"o"。两个相邻的小泡泡会融成一个大泡泡,两个相邻的大泡泡会爆掉。(是的你没看错,小气泡和大气泡不会产生任何变化的,原因我也不知道。)例如:ooOOoooO经过一段时间以后会变成oO。...原创 2018-11-28 13:02:19 · 348 阅读 · 0 评论 -
I Can Guess the Data Structure! C++STL
I Can Guess the Data Structure!There is a bag-like data structure, supporting two operations:1 xThrow an element x into the bag.2 yTake out an element y from the bag.Given a sequence of ...原创 2018-12-05 09:43:21 · 178 阅读 · 0 评论 -
HDU 1022 Train Problem I 模拟栈
题意:就是说给一个火车进站的序列,然后再给你一个火车出站的序列,而火车站最多能停n列火车,问是否能按所给的序列号让火车出站。注:并不是非要让所有进站的火车全部进来才能出站,只是如果火车站进了多列火车,后进来的必须先出,这就是栈:后进先出#include<iostream>#include<string>#include<vector>#inclu...原创 2018-12-03 21:57:28 · 108 阅读 · 0 评论 -
CF--Ultimate Army--模拟栈
I. Ultimate Armytime limit per test1.0 smemory limit per test256 MBinputstandard inputoutputstandard output3 days, that's how much time the king gave Daffy to find him the ultimat...原创 2019-08-20 20:12:06 · 171 阅读 · 0 评论