贪心
文章平均质量分 86
funklayer
这个作者很懒,什么都没留下…
展开
-
通用版2.P
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the homework after th...原创 2018-02-19 10:20:51 · 133 阅读 · 0 评论 -
通用版2.Q
When playing DotA with god-like rivals and pig-like team members, you have to face an embarrassing situation: All your teammates are killed, and you have to fight 1vN. There are two key attributes for...原创 2018-02-19 10:28:40 · 142 阅读 · 0 评论 -
通用版2.R
Today the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi. The machine whose level below this task’s level yi cannot complete ...原创 2018-02-19 12:47:14 · 212 阅读 · 0 评论 -
通用版2.S
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-02-19 12:50:52 · 180 阅读 · 0 评论 -
通用版2.T
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-02-23 20:02:28 · 143 阅读 · 0 评论 -
通用版2.U
A set of n 1-dimensional items have to be packed in identical bins. All bins have exactly the same length l and each item i has length li<=l . We look for a minimal number of bins q such that each ...原创 2018-02-23 20:30:28 · 173 阅读 · 0 评论 -
水题堆1.E 今年暑假不AC (贪心)
#include <stdio.h>#include <stdlib.h>struct Pro{ int start; int end; int t;}pro[101],a,b;void quicksort(struct Pro pro[],int n,int be,int e){ int i,j; if(be<e)...原创 2018-02-13 15:49:37 · 109 阅读 · 0 评论