2020牛客暑期多校第五场 I - Hard Math Problem(思维)

题目链接


真的太菜了,画了两个小时也没做出来,心态崩了…

在这里插入图片描述
注意到如果使 H H 尽可能的多,那么就可以考虑使用 H H 围住 E E G G ,为了保证每个 H H 周围合法,那么就让 E , G E,G 处在所有的(主)对角线

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false),cin.tie(0), cout.tie(0);
    // cout << "0.527778";
    cout << "0.666667" << endl;
}

猜你喜欢

转载自blog.csdn.net/qq_44691917/article/details/107701295