随笔分类 - STL
摘要:Alice and Bob HDU - 4268 Alice and Bob's game never ends. Today, they introduce a new game. In this game, both of them have N different rectangular ca
阅读全文
摘要:人见人爱A-B HDU - 2034 参加过上个月月赛的同学一定还记得其中的一个最简单的题目,就是{A}+{B},那个题目求的是两个集合的并集,今天我们这个A-B求的是两个集合的差,就是做集合的减法运算。(当然,大家都知道集合的定义,就是同一个集合中不会有两个相同的元素,这里还是提醒大家一下) 呵呵
阅读全文
摘要:Windows Message Queue Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something h
阅读全文
摘要:Gunner Long long ago, there is a gunner whose name is Jack. He likes to go hunting very much. One day he go to the grove. There are nn birds and nn tr
阅读全文
摘要:水果 夏天来了~~好开心啊,呵呵,好多好多水果~~ Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了. Input第一行正整数N(0<N<=10)表示有N组测试数据. 每组测试数据的第一行是一个
阅读全文
摘要:Let the Balloon Rise HDU - 1004 Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 stack S[3]; 5 int ans; 6 void move(int x,int y){ 7 int temp=S[x].top(); 8 S[x].pop(); 9 S[y].push(temp); 10 cout ">n; 25 ...
阅读全文
摘要:priority_queue本质是一个堆。 1. 头文件是#include<queue> 2. 关于priority_queue中元素的比较 模板申明带3个参数:priority_queue<Type, Container, Functional>,其中Type 为数据类型,Container为保存
阅读全文

浙公网安备 33010602011771号