随笔分类 -  二分

摘要:Save the Nature 题意: 在第n * a张卖掉的电影票能够提供x%的收益 在第n * b张卖掉的电影票能够提供y%的收益 问收益为k时,最少需要卖多少张电影票 思路: 二分一下答案就好了 1 #include<cstdio> 2 #include<cstring> 3 #include 阅读全文
posted @ 2020-04-15 20:10 当然是斗笠呀 阅读(200) 评论(0) 推荐(0)
摘要:Recently Luba bought a monitor. Monitor is a rectangular matrix of size n × m. But then she started to notice that some pixels cease to work properly. 阅读全文
posted @ 2019-07-13 23:48 当然是斗笠呀 阅读(277) 评论(0) 推荐(0)
摘要:Magazine Ad The main city magazine offers its readers an opportunity to publish their ads. The format of the ad should be like this: There are space-s 阅读全文
posted @ 2019-02-27 20:56 当然是斗笠呀 阅读(337) 评论(0) 推荐(0)