![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
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 · 535 阅读 · 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 · 1162 阅读 · 0 评论