
概率算法
文章平均质量分 72
ChasingWaves
这个作者很懒,什么都没留下…
展开
-
hdu 5017 Ellipsoid 模拟退火算法模板
//109MS 304K #include #include #include #include using namespace std; const double EPS = 1e-9; const double INF = 1e18; const double dx[8] = {1.0, 1.0, 0.0, -1.0, -1.0, -1.0, 0.0, 1.0}; const dou原创 2014-09-24 19:55:31 · 540 阅读 · 0 评论 -
hdu 5017 Ellipsoid 模拟退火算法 西安网络赛
Given a 3-dimension ellipsoid(椭球面) your task is to find the minimal distance between the original point (0,0,0) and points on the ellipsoid. The distance between two points (x1,y1,z1) and (x2,y2,原创 2014-09-24 13:13:51 · 849 阅读 · 0 评论