摘要: 第一道贪心算法 题目链接http://acm.hdu.edu.cn/showproblem.php?pid=1009#include #include #include #include using namespace std;struct node{ double x,y; double rate;}f[100000];int cmp(node a,node b){ return a.rate>b.rate;}int main(){ int n,m; int i,k; //int j[1005],f[1005]; while(scanf("%d%d... 阅读全文