贪心
文章平均质量分 92
Daemoonn
编程呵呵哒~~
展开
-
HDU1009
#include #include #include struct room { int J; int F; double rate;}r[1010];int sizer = sizeof(r[0]);int cmp(const void *a, const void *b){ struct room *c = (room *)a; st原创 2015-09-18 20:11:44 · 609 阅读 · 0 评论 -
codeforces723C Polycarp at the Radio 英语阅读题
C. Polycarp at the Radiotime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp is a music editor at the原创 2016-10-06 15:12:55 · 737 阅读 · 0 评论 -
codeforces 671A Recycling Bottles
A. Recycling Bottlestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt was recycling day in Kekoland. To c原创 2016-05-14 21:20:30 · 595 阅读 · 0 评论 -
团体程序设计天梯赛-练习集 L2-3. 月饼 贪心
L2-3. 月饼时间限制100 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同风味的月饼。现给定所有种类月饼的库存量、总售价、以及市场的最大需求量,请你计原创 2016-05-10 14:36:41 · 1630 阅读 · 0 评论 -
hdu4723 How Long Do You Have to Draw 贪心
How Long Do You Have to DrawTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 322 Accepted Submission(s): 128Problem Description原创 2016-04-11 16:03:16 · 848 阅读 · 0 评论 -
codeforces 651B Beautiful Paintings
B. Beautiful Paintingstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n pictures delivered for th原创 2016-03-26 12:52:06 · 701 阅读 · 0 评论 -
codeforces624B Making a String 贪心 排序
B. Making a Stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an alphabet consisting of n原创 2016-03-13 19:28:47 · 631 阅读 · 0 评论 -
hdu1257 最少拦截系统
刚开始的时候理解错了题意以为是一个导弹系统只能打相邻的连续的几个导弹,后来想了想可以不同的导弹系统相互交错着打所采取的策略是,开辟一个dp数组用来存当前每个导弹系统所能打的最高的导弹,其长度len为导弹系统的个数新飞来一个导弹高度h,在dp中查找大于等于h的且在dp所有的数中尽可能小的一个数(为了尽可能多打导弹),若找到则更新dp为h(因为这个导弹系统以后只能打小于等于h的导弹原创 2015-12-05 08:48:13 · 475 阅读 · 0 评论 -
hdu计算机学院大学生程序设计竞赛(2015’11)1008 游乐场
游乐场Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4876 Accepted Submission(s): 757Problem Description 小时候,因为家里经济困难,小明从未原创 2015-11-30 19:39:59 · 827 阅读 · 0 评论 -
hdu5935 Car 贪心 卡精度
CarTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 393 Accepted Submission(s): 143Problem DescriptionRuins is driving a car t原创 2016-11-01 15:06:29 · 1079 阅读 · 0 评论