随笔分类 - 贪心
摘要: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
阅读全文
摘要: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
阅读全文
摘要:题目: 题意:给你n个数值,要求排列这个序列使得第k个数值的前K-1个数的和>=第k个数值的个数尽可能多; 分析:贪心,从小到大遍历,如果当前能选这个数就选(使的前缀和最小),不符合的话就往后面随便排
阅读全文

浙公网安备 33010602011771号