Top Miner 题解
Register_int · · 题解
就,挺搞笑的。
你发现你要拿到满分你的总面积甚至不能超过
考虑一些比较极端的东西:直接把
#include <bits/stdc++.h>
using namespace std;
int a, b; double S;
int main() {
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
double ax = i - 0.005, bx = i + 0.005;
double ay = j - 0.005, by = j + 0.005;
printf("? %.3lf %.3lf %.3lf %.3lf %.3lf %.3lf %.3lf %.3lf\n", ax, ay, ax, by, bx, by, bx, ay);
fflush(stdout), scanf("%lf", &S);
if (fabs(S - 1e-4) < 1e-9) a++;
else if (S > 0) b++;
}
}
printf("! %lf", a + b / 2.0 - 1);
}
赛时 60pts 的这里统一回复下,卡你们的是类似锯齿波的东西(我叫他金拱门),一个横着的一个竖着的。这样有一车点问出来的结果是恰好