![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
向往--全栈--之路
这个作者很懒,什么都没留下…
展开
-
南阳理工824(HDU 1009)
/*题意:老鼠准备了M个猫粮来和猫换花生,不同房间的交换的比率是不同的,问最多可以换多少花生。*/#include#include#include#include#includeusing namespace std;struct Node { int j; int f; double r原创 2014-04-16 15:56:28 · 418 阅读 · 0 评论 -
南阳理工14(会场安排问题)
描述学校的小礼堂每天都会有许多活动,有时间这些活动的计划时间会发生冲突,需要选择出一些活动进行举办。小刘的工作就是安排学校小礼堂的活动,每个时间最多安排一个活动。现在小刘有一些活动计划的时间表,他想尽可能的安排更多的活动,请问他该如何安排。输入第一行是一个整型数m(m每组测试数据的第一行是一个整数n(1随后的n行,每行有两个正整数Bi,Ei(0输出对于每一组原创 2014-04-16 16:12:10 · 493 阅读 · 0 评论 -
HDU 1213 How Many Tables
这是我刚刷的#include#include#include#include#include#includeusing namespace std;int father[1232];int findx(int x) { int r=x; while(father[r]!=r) { r=fat原创 2014-04-24 17:07:36 · 411 阅读 · 0 评论 -
NYOJ 287
题意:#include#include#include#include#include#includeusing namespace std;struct node { double st_x; double ed_x;};node point[1001];bool cmp(node a,node b)原创 2014-04-24 17:17:56 · 452 阅读 · 0 评论