贪心
zzcblogs
这个作者很懒,什么都没留下…
展开
-
I - Space Elevators URAL - 1901 (贪心 简单题)
I - Space Elevators URAL - 1901 (贪心 简单题)Nowadays spaceships are never launched from the Earth's surface. There is a huge spaceport placed in the geostationary orbit and connected to the Earth with原创 2017-04-28 20:33:29 · 333 阅读 · 0 评论 -
Codeforces Round #456 (Div. 2) D. Fishes (期望 贪心)
D. Fishestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Grisha was celebrating New Year with Ded Mor原创 2018-01-06 19:45:28 · 577 阅读 · 0 评论 -
Codeforces Round #456 (Div. 2) B. New Year's Eve (贪心
B. New Year's Evetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSince Grisha behaved well last year, at Ne原创 2018-01-06 16:11:51 · 602 阅读 · 0 评论 -
codeforces 128 B. String
链接:http://codeforces.com/contest/128/problem/BB. Stringtime limit per test 2 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outpu原创 2017-12-27 09:36:01 · 482 阅读 · 0 评论 -
ZOJ-3987 Numbers 2017CCPC秦皇岛站G题 (二进制、贪心)
时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 65536K,其他语言131072K64bit IO Format: %lld题目描述DreamGrid has a nonnegative integer n, He would like to divide n into m nonnegative integers a1,a2,...am and原创 2017-11-14 21:21:02 · 568 阅读 · 0 评论 -
ccpc 2017秦皇岛站 A-balloon robot
题目描述The 2017 China Collegiate Programming Contest Qinhuangdao Site is coming! There will be n teams participating in the contest, and the contest will be held on a huge round table with m seats原创 2017-11-13 17:02:08 · 820 阅读 · 0 评论 -
2017 Multi-University Training Contest 1 1002. Balala Power!(贪心)
Balala Power!Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2619 Accepted Submission(s): 547Problem DescriptionTalente原创 2017-07-26 10:47:40 · 424 阅读 · 0 评论 -
Moo University - Financial Aid (贪心 +优先队列)
Problem C Time Limit : 2000/1000ms (Java/Other) Memory Limit : 60000/30000K (Java/Other)Total Submission(s) : 6 Accepted Submission(s) : 2Problem DescriptionBessie noted that altho原创 2017-07-21 10:46:43 · 408 阅读 · 0 评论 -
POJ2393 Yogurt factory (贪心)
Yogurt factory Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 3 Accepted Submission(s) : 2Problem DescriptionThe cows have pur原创 2017-07-22 09:56:39 · 260 阅读 · 0 评论 -
POJ2376 Cleaning Shifts (贪心)
Cleaning Shifts Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 14 Accepted Submission(s) : 3Problem DescriptionFarmer John is原创 2017-07-17 22:22:26 · 264 阅读 · 0 评论 -
基于贪心算法的几类区间覆盖问题:(侵删)
(1)区间完全覆盖问题问题描述:给定一个长度为m的区间,再给出n条线段的起点和终点(注意这里是闭区间),求最少使用多少条线段可以将整个区间完全覆盖样例:区间长度8,可选的覆盖线段[2,6],[1,4],[3,6],[3,7],[6,8],[2,4],[3,5]解题过程:1、将每一个区间按照左端点递增顺序排列,拍完序后为[1,4],[2,4],[2,6],[3,5],转载 2017-07-17 22:16:50 · 544 阅读 · 0 评论 -
Radar Installation(贪心。 区间选点)
Radar Installation Time Limit : 2000/1000ms (Java/Other) Memory Limit : 20000/10000K (Java/Other)Total Submission(s) : 8 Accepted Submission(s) : 2Problem DescriptionAssume the coa原创 2017-07-18 09:58:59 · 435 阅读 · 0 评论 -
Backward Digit Sums (全排列 + 暴力)
Backward Digit Sums Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 4 Accepted Submission(s) : 2Problem DescriptionFJ and his c原创 2017-07-17 17:07:21 · 271 阅读 · 0 评论 -
Smallest Difference (全排列 + 暴力?)
Smallest Difference Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 19 Accepted Submission(s) : 6Problem DescriptionGiven a num原创 2017-07-17 16:09:36 · 350 阅读 · 0 评论 -
HDU-1051Wooden Sticks (贪心)
Problem DescriptionThere 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 woodworking machine in one by one fashion. It n原创 2017-07-20 11:23:05 · 302 阅读 · 0 评论 -
无题 (贪心)
无题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 82 Accepted Submission(s): 60 Problem Description就要复试了,外地的考原创 2017-06-08 22:07:27 · 336 阅读 · 0 评论 -
Doing Homework again HDU 1789 (贪心)
Doing Homework againTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 93 Accepted Submission(s): 81 Problem Descrip原创 2017-05-31 22:13:03 · 300 阅读 · 0 评论 -
codeforces Hello 2018 C. Party Lemonade(贪心)
C. Party Lemonadetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA New Year party is not a New Year party w原创 2018-01-09 16:33:08 · 515 阅读 · 0 评论