随笔分类 -  思维--二分法

摘要:传送门 There is a forest that we model as a plane and live nn rare animals. Animal number iihas its lair in the point (xi,yi)(xi,yi). In order to protect 阅读全文
posted @ 2019-02-17 18:16 千摆渡Qbd 阅读(189) 评论(0) 推荐(0)
摘要:Letters CodeForces - 978C 题意:n个寝室,每个寝室多个房间(1-a[i]),一共m封信只知道房间号,现在要求把信送到第几个寝室的第几个房间里去,房间号从第一个寝室到第n个寝室的第一个房间到最后一个房间排下去 题意:用个二分查找吧,省点时间,二分才658ms,爆搜1600多m 阅读全文
posted @ 2018-08-19 09:37 千摆渡Qbd 阅读(321) 评论(0) 推荐(0)