随笔分类 -  贪心

摘要:原博主:https://blog.csdn.net/amovement/article/details/80358962 B. Bus of Characters time limit per test 2 seconds memory limit per test 256 megabytes in 阅读全文
posted @ 2018-07-14 13:49 Tangent_1231 阅读(227) 评论(0) 推荐(0) 编辑
摘要:After the big birthday party, Katie still wanted Shiro to have some more fun. Later, she came up with a game called treasure hunt. Of course, she invi 阅读全文
posted @ 2018-07-14 13:44 Tangent_1231 阅读(431) 评论(0) 推荐(0) 编辑
摘要:题目地址:http://codeforces.com/contest/980/problem/C 官方题解: 题解:一共256个像素网格,可以把这个256个分组,每个分组大小<=k。给出n个像素格子,要求每个像素用分组里的一个数表示,并且表示出来的字典序要最小。 方法:先把数组a全部赋值为-1,表示 阅读全文
posted @ 2018-05-09 14:23 Tangent_1231 阅读(443) 评论(0) 推荐(0) 编辑
摘要:Wooden Sticks There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodwo 阅读全文
posted @ 2018-02-27 10:33 Tangent_1231 阅读(153) 评论(0) 推荐(0) 编辑
摘要:今年暑假不AC “今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。 作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还会看一些其它的节目, 阅读全文
posted @ 2018-02-27 10:26 Tangent_1231 阅读(139) 评论(0) 推荐(0) 编辑
摘要:FatMouse' Trade FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. Th 阅读全文
posted @ 2018-02-27 09:58 Tangent_1231 阅读(172) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示