2013年6月5日
摘要: http://acm.sdut.edu.cn/sdutoj/showproblem.php?pid=2076&cid=1159示例输入333 3 310 5 131 3 16 2 371 4 6 4 2 4 33 2 1 7 6 5 4示例输出035这个题用贪心思路解题,做的时候最主要的是进行数组的标记,每份作业都只有一天写完,把分值从大到小排序,从最大的开始看是否有时间去做 1 #include<stdio.h> 2 #include<stdlib.h> 3 struct node 4 { 5 int u,v,w ; 6 }a[10001],b ; 7 int 阅读全文
posted @ 2013-06-05 00:58 枫、 阅读(158) 评论(0) 推荐(0)