摘要: In a team queue each element belongs to a team. If an element enters the queue, it first searches the queue from head to tail to check if some of its 阅读全文
posted @ 2018-07-27 16:16 清酒令 阅读(314) 评论(0) 推荐(0)
摘要: 本题出自: Nordic Collegiate Programming Contest 2015​ Ada, Bertrand and Charles often argue over which TV shows to watch, and to avoid some of their fights 阅读全文
posted @ 2018-07-27 14:18 清酒令 阅读(261) 评论(0) 推荐(0)
摘要: 1、结构 set和multiset会根据特定的排序原则将元素排序。两者不同之处在于,multisets允许元素重复,而set不允许重复。 只要是assignable、copyable、comparable(根据某个排序准则)的型别T,都可以成为set或者multisets的元素。如果没有特别的排序原 阅读全文
posted @ 2018-07-27 08:54 清酒令 阅读(154) 评论(0) 推荐(0)