- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 The kth great number(优先队列)
The kth great number Xiao Ming and Xiao Bao are playing a simple Numbers game. In a round Xiao Ming can choose to write down a number, or ask Xiao Bao what the kth great number is. Because the n
2017-07-30 14:27:52 391
原创 Misha and Changing Handles(字符串修改)
**Misha and Changing Handles** Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any number of times. But each new handle mu
2017-07-30 14:24:59 476
原创 ACM 格式化输出,杨辉三角
格式化输出还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形:1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 Input输入数据包含多个测试实例,每个测试实例的输入只包含一个正整数n(1Output对应于每一个输入,请输出相应层数的杨辉三角,每一层的整数之间用一个空格隔开,每一个杨辉三
2017-07-30 12:04:04 733
原创 STL 成员函数
stack:先进后出 FILO{ 构造析构: stack c 创建一个空的stack stack c2(c) 复制stack 数据增减: c.top() 返回栈顶数据 c.push(x) 在栈顶增加elem数据 c.pop() 弹出栈顶数据 其他操作: c.empty()
2017-07-26 22:53:32 444
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人