摘要: 最小的n个和Time Limit: 1000 MSMemory Limit: 32768 KTotal Submit: 129(37 users)Total Accepted: 35(29 users)Rating: Special Judge: NoDescription给定A、B两个数列,各包含... 阅读全文
posted @ 2015-04-13 20:10 柳下_MBX 阅读(285) 评论(0) 推荐(0) 编辑
摘要: STL中,有很多的排序函数模板供我们调用,省去我们自己编写一些排序过程的麻烦。本文是一篇关于STL中堆排序的一个介绍。 本文涉及的几个函数如下:make_heap(), push_heap(), pop_heap(), is_heap(), sort_heap()。其中make_heap()用于构建... 阅读全文
posted @ 2015-04-13 19:34 柳下_MBX 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 苹果Time Limit: 1000 MSMemory Limit: 32768 KTotal Submit: 39(24 users)Total Accepted: 29(22 users)Rating: Special Judge: NoDescription圆桌旁围坐n个人,按顺序将他们编号为... 阅读全文
posted @ 2015-04-13 16:20 柳下_MBX 阅读(286) 评论(0) 推荐(0) 编辑