博客
关于我
hdu 2899 Strange fuction
阅读量:123 次
发布时间:2019-02-27

本文共 337 字,大约阅读时间需要 1 分钟。

#include 
using namespace std;//F(x) = 6*x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100)#define F(x, y) (x*(x*(x*(x*(x*(x*(6*x+8)))+7)+5)-y))double solve(double l, double r, double y){ double lm, rm; while(r - l > 1e-7){ lm = (2*l+r)/3; rm = (l+2*r)/3; if(F(lm, y)>F(rm, y))l = lm; else if(F(lm, y)

转载地址:http://agnb.baihongyu.com/

你可能感兴趣的文章
Mysql工作笔记006---Mysql服务器磁盘爆满了_java.sql.SQLException: Error writing file ‘tmp/MYfXO41p‘
查看>>
MySQL工具1:mysqladmin
查看>>
mysql常用命令
查看>>
MySQL常用命令
查看>>
mysql常用命令
查看>>
MySQL常用指令集
查看>>
mysql常用操作
查看>>
MySQL常用日期格式转换函数、字符串函数、聚合函数详
查看>>
MySQL常见架构的应用
查看>>
MySQL常见的三种存储引擎(InnoDB、MyISAM、MEMORY)
查看>>
MySQL常见约束条件
查看>>
MySQL常见错误
查看>>
MySQL常见错误分析与解决方法总结
查看>>
mysql并发死锁案例
查看>>
MySQL底层概述—1.InnoDB内存结构
查看>>
MySQL底层概述—2.InnoDB磁盘结构
查看>>
MySQL底层概述—3.InnoDB线程模型
查看>>
MySQL底层概述—4.InnoDB数据文件
查看>>
MySQL底层概述—5.InnoDB参数优化
查看>>
MySQL底层概述—6.索引原理
查看>>