![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
jiruqianlong123
这个作者很懒,什么都没留下…
展开
-
POJ 1328
Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locating on the ...原创 2018-07-31 11:24:03 · 87 阅读 · 0 评论 -
D - Game Prediction
Suppose there are M people, including you, playing a special card game. At the beginning, each player receives N cards. The pip of a card is a positive integer which is at most N*M. And there are no t...原创 2018-07-31 11:25:32 · 195 阅读 · 0 评论 -
C - Yogurt factory
The cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 <= N <= 10,000) weeks, the price of milk and labor will fluctuate weekly such that it will cost ...原创 2018-07-31 11:26:41 · 146 阅读 · 0 评论 -
B - Pie
My birthday is coming up and traditionally I’m serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my party and each of ...原创 2018-07-31 11:29:35 · 116 阅读 · 0 评论 -
G - Supermarket——贪心
A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral number of time units starting from the moment the s...原创 2018-08-15 11:43:06 · 236 阅读 · 0 评论 -
H - Painter——往小了贪
杂货店出售一种由N(3<=N<=12)种不同颜色的颜料,每种一瓶(50ML),组成的颜料套装。你现在需要使用这N种颜料;不但如此,你还需要一定数量的灰色颜料。杂货店从来不出售灰色颜料——也就是它不属于这N种之一。幸运的是,灰色颜料是比较好配置的,如果你取出三种不同颜色的颜料各x ml,混合起来就可以得到x ml的灰色颜料(注意不是3x)。现在,你知道每种颜料各需要多少ml。你决定买...原创 2018-08-15 15:06:32 · 139 阅读 · 0 评论 -
poj 1700 Crossing River
A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arrangement must be arranged in order to row the boat back and f...原创 2018-08-15 17:20:39 · 157 阅读 · 0 评论 -
最长上升子序列
求一个数组中最长上升子序列长度n^2做法:#include<cstdio>#include<cmath>#include<iostream>#include<cstring>#include<cmath>#include<cstdlib>#include<algorithm>using原创 2018-09-14 17:06:20 · 116 阅读 · 0 评论