摘要: 贪心入门题#include #include using namespace std;struct Note{ int s; int e;}T[102];int cmp(const void *a,const void *b){ if(((Note*)a)->e>((Note*)b)->e) return 1; else return -1;}i... 阅读全文
posted @ 2013-03-22 23:52 码代码的猿猿 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 起床了,先水一个#include #include using namespace std;int main(){ int m,n; while(cin>>m>>n) { int num; int mm=-111; int mm2; int t=0; for(int i=0;i>num; ... 阅读全文
posted @ 2013-03-22 22:27 码代码的猿猿 阅读(167) 评论(0) 推荐(0) 编辑