摘要: 因为sort只支持对可随机访问的容器进行排序,是不支持队列和栈的;所以这里介绍优先队列 优先队列功能:对数据自动排序 1、默认排序,从大到小 2、从大到小排序-less 3、从小到大排序-greate 结构体类型:重载大于号和小于号 先构建cmp函数在重载 优先队列没有p.front()操作,返回队 阅读全文
posted @ 2019-08-01 21:30 知道了呀~ 阅读(385) 评论(0) 推荐(0) 编辑
摘要: Problem B: Bulbs Greg has an m×n grid of Sweet Lightbulbs of Pure Coolness he would like to turn on. Initially, some of the bulbs are on and some are 阅读全文
posted @ 2019-08-01 11:44 知道了呀~ 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Problem I: Ingenious Lottery Tickets Your friend Superstitious Stanley is always getting himself into trouble. This time, in his Super Lotto Pick and 阅读全文
posted @ 2019-08-01 11:26 知道了呀~ 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Mayor's posters Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 86291 Accepted: 24772 Description The citizens of Bytetown, AB, could not s 阅读全文
posted @ 2019-08-01 11:18 知道了呀~ 阅读(267) 评论(0) 推荐(0) 编辑