随笔分类 -  栈与队列

摘要:~题目链接~http://acm.sdut.edu.cn/sdutoj/showproblem.php?pid=2087&cid=1182输入1160 10结果10.00就是用 对列模拟#include#include#include#includeusing namespace std;int main(){ int T; scanf("%d",&T); while(T--){ //模拟窗口 queueQ; queueP; int n,x,y,q=0,p=0,time=0;//q、p分别记录队列Q、P中最后一位的离开时... 阅读全文
posted @ 2013-08-02 16:49 Locke_Q 阅读(422) 评论(0) 推荐(0)
摘要:refresh的停车场~题目要求~输入2 6Add 18353364208Add 18353365550Add 18353365558Add 18353365559DelOut结果1835336555818353364208#include#include#include#include#include#include#include using namespace std;int main(){ int n,m,k; string str, tel; while(~scanf("%d%d",&n,&m)) { k=0; bool flag=... 阅读全文
posted @ 2013-08-02 16:43 Locke_Q 阅读(260) 评论(0) 推荐(0)