努力ing
你浪费的今天是昨天死去的人所渴望的明天!!!
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3177#include<iostream>#include "algorithm"using namespace std;struct node { int ai; int bi; int ci; bool operator <(const node& x) { return ci>x.ci; //排序两者的差值 }};int main(){ int t,i,j; int v,n; cin>>t; node job[10005]; while(t 阅读全文
posted @ 2013-06-21 17:23 努力ing 阅读(148) 评论(0) 推荐(0)
摘要: #include<iostream>#include<algorithm>#include<cstring>using namespace std;struct node { int day; int score; bool operator<(const node& x)const{ return score>x.score; }};int main(){ int t,n; int i,j,ans; cin>>t; node job[5005]; int flag[5005]; while(t--) { cin>> 阅读全文
posted @ 2013-06-21 13:31 努力ing 阅读(190) 评论(0) 推荐(0)