
搜索
不可不戒
这个作者很懒,什么都没留下…
展开
-
hdu2199 Can you solve this equation? (二分搜索)
#include #include int func(double x) { return 8*x*x*x*x+7*x*x*x+2*x*x+3*x+6; } int main() { int n; double left,right,mid,Y; scanf("%d",&n); while(n--) { scanf("%lf",&Y); if(Y>func(100)||原创 2013-08-08 12:12:16 · 685 阅读 · 0 评论 -
hdu2899 Strange fuction (二分&三分)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2899 #include #include double func1(double x) {//一次求导,func1递增 return 42*pow(x,6)+48*pow(x,5)+21*x*x+10*x; } double func2(double x,int y) { ret原创 2013-08-08 18:42:04 · 620 阅读 · 0 评论 -
hdu1677 Nested Dolls
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1677 #include #include #include #define MAXN 20002 struct node { int w,h; }dolls[MAXN]; int dp[MAXN]; int cmp(const void *x,const void *y) {原创 2013-08-14 12:57:03 · 675 阅读 · 0 评论 -
hdu4707 Pet (BFS)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4707 #include #include #include #define MAXN 100001 using namespace std; vector mp[MAXN]; int deep[MAXN*10],Que[MAXN]; int Scan()原创 2013-09-20 19:53:43 · 700 阅读 · 0 评论