摘要: 1 //只需要按照结束时间排序贪心即可 2 #include 3 #include 4 using namespace std; 5 typedef struct 6 { 7 int x,y; 8 }P; 9 P p[10005]; 10 bool cmp(P a,P b) 11 { 12 if(a.y b.x) return true; 14 r... 阅读全文
posted @ 2017-07-29 18:28 Posase 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 //简单的贪心。 2 #include 3 #include 4 #include 5 using namespace std; 6 double r[605],s; 7 bool cmp(double x,double y) 8 { 9 return x > y; 10 } 11 bool add(double r) 12 { 13 if(r > t... 阅读全文
posted @ 2017-07-29 15:11 Posase 阅读(150) 评论(0) 推荐(0) 编辑