上一页 1 ··· 11 12 13 14 15
摘要: 两个队列 一个队列放优先级,一个队列放优先级里的数,顺便用的了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 阅读(177) 评论(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 阅读(209) 评论(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 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Rails There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, fund 阅读全文
posted @ 2017-07-20 11:27 小小超plus 阅读(178) 评论(0) 推荐(0) 编辑
摘要: C - 简单计算器 C - 简单计算器 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。 Ou 阅读全文
posted @ 2017-07-20 11:19 小小超plus 阅读(293) 评论(0) 推荐(0) 编辑
摘要: A - A + B Problem II I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe first line 阅读全文
posted @ 2017-07-20 11:12 小小超plus 阅读(479) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15