hdu 5017 Ellipsoid 模拟退火||三分
题意:
给你一个椭球方程 ax2+by2+cz2+dyz+exz+fxy=1 ax^2 + by^2 + cz^2 + dyz + exz+fxy = 1.
思路:
最好写的方法就是三分,三分套三分,先三分x,对于每个x,三分y,求出的最优解作为当前x的值。#include <cstdio>
#include <cstring>
#include <cmath>
#include <algor
原创
2017-10-14 11:33:04 ·
641 阅读 ·
2 评论