随笔分类 -  贪心算法

摘要:View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 typedef struct 6 { 7 int J, F; 8 double per; 9 }Point;10 Point P[1001];11 12 int cmp(const void *a,const void *b)13 {14 if((*(Point *)a).per < (*(Point *)b).per)15 return 1;16 else17 re... 阅读全文
posted @ 2012-08-21 10:41 zhongya 阅读(237) 评论(0) 推荐(0)