ellipsoid专题

HDU 5017 Ellipsoid(西安网络赛K题)

HDU 5017 Ellipsoid 题目链接 思路:模拟退火大法好! 代码: #include <cstdio>#include <cstring>#include <cmath>#include <algorithm>using namespace std;const int D[8][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0},