贪心
wchyumo2009
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
杭电hdu 1009 FatMouse' Trade 贪心
http://acm.hdu.edu.cn/showproblem.php?pid=1009 典型的贪心问题,很简单咯。 //贪心 #include using namespace std; #include #include #define MAX 1001 typedef struct _node { int j; int f; double per; }node;原创 2012-04-18 08:43:10 · 582 阅读 · 0 评论 -
杭电hdu 1052 Tian Ji -- The Horse Racing 贪心
http://acm.hdu.edu.cn/showproblem.php?pid=1052 贪心策略 #include #include #include using namespace std; int cmp(const void *a, const void *b) { return (*((int *)b)) - (*((int *)a)); } int main()原创 2012-05-13 14:46:49 · 1212 阅读 · 0 评论
分享