2019年2月21日

摘要: https://codeforces.com/contest/1118/problem/C 在查找元素的时候,必须按4,2,1的顺序进行。因为,如果先找1,可能就把原来的4拆散了,然后再找4,就找不到了 阅读全文
posted @ 2019-02-21 21:57 Albert67 阅读(177) 评论(0) 推荐(0) 编辑
 
摘要: https://codeforces.com/contest/1118/problem/F1 阅读全文
posted @ 2019-02-21 21:00 Albert67 阅读(222) 评论(0) 推荐(0) 编辑
 
摘要: https://codeforces.com/contest/1118/problem/D2 和easy version的主要区别是,数据增加了。 easy version采用的是线性查找,效率低 在这里采用binary search就可以了 阅读全文
posted @ 2019-02-21 18:18 Albert67 阅读(291) 评论(0) 推荐(0) 编辑
 
摘要: https://codeforces.com/contest/1118/problem/D1 能做完的天数最大不超过n,因为假如每天一杯咖啡,每杯咖啡容量大于1 首先对容量进行从大到小的排序, 阅读全文
posted @ 2019-02-21 13:07 Albert67 阅读(239) 评论(0) 推荐(0) 编辑
 
摘要: Description Suppose that the fourth generation mobile phone base stations in the Tampere area operate as follows. The area is divided into squares. Th 阅读全文
posted @ 2019-02-21 11:05 Albert67 阅读(139) 评论(0) 推荐(0) 编辑
 
摘要: Tanya has nn candies numbered from 11 to nn. The ii-th candy has the weight aiai. She plans to eat exactly n−1n−1 candies and give the remaining candy 阅读全文
posted @ 2019-02-21 08:50 Albert67 阅读(263) 评论(0) 推荐(0) 编辑