HDOJ 4325 Flowers
来源:互联网 发布:java 如何使用瞬态值 编辑:程序博客网 时间:2024/05/29 23:44
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4325
题目自解:将开花时间和闭花时间进行排序,
某时刻开花的数减去花谢的数就是正在盛开的花的数目,用二分法查找
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int a[100005],b[1000005];
int see[100005][2];
int n,m;
int Find(int time)
{
}
int Search(int time)
{
}
int cmp( const void *a , const void *b )
{
}
int main()
{