随笔分类 -  贪心

摘要:6979 Known NotationDo you know reverse Polish notation (RPN)? It is a known notation in the area of mathematics andcomputer science. It is also known 阅读全文
posted @ 2016-10-07 20:24 快点说我帅 阅读(311) 评论(1) 推荐(0)
摘要:B. Lucky Numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Petya loves lucky numbe 阅读全文
posted @ 2016-07-21 10:01 快点说我帅 阅读(592) 评论(0) 推荐(0)
摘要:题目: 题意:给你n个数值,要求排列这个序列使得第k个数值的前K-1个数的和>=第k个数值的个数尽可能多; 分析:贪心,从小到大遍历,如果当前能选这个数就选(使的前缀和最小),不符合的话就往后面随便排 阅读全文
posted @ 2016-04-10 21:18 快点说我帅 阅读(138) 评论(0) 推荐(0)