摘要:
两个队列 一个队列放优先级,一个队列放优先级里的数,顺便用的了map 确定数在哪个优先级里 1 #include <iostream> 2 using namespace std; 3 #include<string.h> 4 #include<stdio.h> 5 #include<queue> 阅读全文
posted @ 2017-08-02 10:20
小小超plus
阅读(185)
评论(0)
推荐(0)
摘要:
栈的基本题型 前括号1进栈,后括号1出栈,有后括号那么他的前面必然是前括号。 1 #include <iostream> 2 3 using namespace std; 4 #include<stack> 5 #include<stdio.h> 6 #include<math.h> 7 #incl 阅读全文
posted @ 2017-08-02 10:11
小小超plus
阅读(235)
评论(0)
推荐(0)
摘要:
This is a small but ancient game. You are supposed to write down the numbers 1, 2, 3, ... , 2n - 1, 2n consecutively in clockwise order on the ground 阅读全文
posted @ 2017-08-02 10:06
小小超plus
阅读(224)
评论(0)
推荐(0)

浙公网安备 33010602011771号