贪心
愈努力俞幸运
这个作者很懒,什么都没留下…
展开
-
Cleaning Shifts
Description Farmer John is assigning some of his N (1 <= N <= 25,000) cows to do some cleaning chores around the barn. He always wants to have one cow working on cleaning things up and has divided th原创 2017-08-19 19:13:21 · 208 阅读 · 0 评论 -
泡泡堂
点击打开链接 类似田忌赛马,自己看了一天不知道怎么做,不知道怎么贪心,上网一搜都说大水题,原来是先看自己最弱的和对方最弱的能否战胜,不能的花看最强的和对方最强的,能否战胜,不能的话,用自己最弱的消耗掉对方最强的,在一场比赛中总分为2*n 设 甲 胜 x场 平y场 输z场 乙 输 x场 平y场 赢z场 x+y+z=n; 2*x+y+y+2*z=2*(x+y+z)=z*n;原创 2017-12-14 00:43:26 · 653 阅读 · 0 评论 -
Distinct Values
Distinct Values Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3336 Accepted Submission(s): 523 Problem Description Chiaki has an arra...原创 2018-07-24 12:05:35 · 192 阅读 · 0 评论 -
Maximum Mode
链接:https://www.nowcoder.com/acm/contest/142/G 来源:牛客网 Maximum Mode 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %lld 题目描述 The mode of an integer sequence is the value that...原创 2018-07-28 21:34:37 · 257 阅读 · 0 评论 -
money 波峰卖
链接:https://www.nowcoder.com/acm/contest/140/D 来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %lld 题目描述 White Cloud has built n stores numbered from 1 to n. White Rabb...原创 2018-07-21 20:26:24 · 95 阅读 · 0 评论 -
plan
链接:https://www.nowcoder.com/acm/contest/143/J 来源:牛客网 plan 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 There are n students going to travel. And hotel has two t...原创 2018-08-03 09:31:50 · 152 阅读 · 0 评论 -
删掉m为后剩余的数组成的数最小
HDU 3183 A Magic Lamp(贪心 or RMQ) http://acm.hdu.edu.cn/showproblem.php?pid=3183 题意: Kiki likes traveling. One day she finds a magic lamp, unfortunately the genie in the lamp is not so kind...原创 2018-08-24 16:57:40 · 358 阅读 · 0 评论 -
CCPC网络赛--hdu 6438--买卖--贪心
http://acm.hdu.edu.cn/showproblem.php?pid=6438 Buy and Resell Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 759 Accepted Submis...原创 2018-08-26 00:44:21 · 291 阅读 · 0 评论