結果

問題 No.2070 Icosahedron
ユーザー umimelumimel
提出日時 2022-09-16 21:23:39
言語 C++14
(gcc 11.2.0 + boost 1.78.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 533 bytes
コンパイル時間 1,280 ms
使用メモリ 6,952 KB
最終ジャッジ日時 2023-01-11 05:52:07
合計ジャッジ時間 2,227 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 1 ms
4,904 KB
testcase_01 AC 1 ms
6,952 KB
testcase_02 AC 1 ms
6,952 KB
testcase_03 AC 1 ms
4,900 KB
testcase_04 AC 1 ms
6,948 KB
testcase_05 AC 1 ms
4,904 KB
testcase_06 AC 1 ms
4,904 KB
testcase_07 AC 1 ms
4,904 KB
testcase_08 AC 1 ms
6,952 KB
testcase_09 AC 1 ms
6,948 KB
testcase_10 AC 1 ms
4,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
#define drep(i, cc, n) for (ll i = (cc); i <= (n); ++i)
#define rep(i, n) drep(i, 0, n - 1)
#define all(a) (a).begin(), (a).end()
#define pb push_back
#define fi first
#define se second

const ll MOD = 1000000007;
const ll MOD2 = 998244353;
const ll INF = 1LL << 60;
const ll MAX_N = 2e5;

int main(){
    double n;
    cin >> n;

    double ans = 5*(3+sqrt(5))*n*n*n;
    ans /= 12;
    cout << fixed << setprecision(10) << ans << endl;
}
0