結果

問題 No.1319 最強とんがりコーン
ユーザー KudeKude
提出日時 2020-12-16 13:17:37
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 562 bytes
コンパイル時間 3,030 ms
コンパイル使用メモリ 200,952 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 09:23:08
合計ジャッジ時間 64,755 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1,185 ms
4,348 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 1,208 ms
4,348 KB
testcase_42 WA -
testcase_43 AC 1,195 ms
4,348 KB
testcase_44 WA -
testcase_45 AC 1,226 ms
4,348 KB
testcase_46 WA -
testcase_47 AC 1,152 ms
4,348 KB
testcase_48 WA -
testcase_49 AC 1,138 ms
4,348 KB
testcase_50 AC 1,168 ms
4,348 KB
testcase_51 AC 1,222 ms
4,348 KB
testcase_52 AC 1,185 ms
4,348 KB
testcase_53 AC 1,227 ms
4,348 KB
testcase_54 WA -
testcase_55 WA -
testcase_56 AC 1,203 ms
4,348 KB
testcase_57 AC 1,229 ms
4,348 KB
testcase_58 AC 1,226 ms
4,348 KB
testcase_59 AC 1,229 ms
4,348 KB
testcase_60 AC 2 ms
4,348 KB
testcase_61 AC 2 ms
4,348 KB
testcase_62 AC 2 ms
4,348 KB
testcase_63 AC 2 ms
4,348 KB
testcase_64 AC 952 ms
4,348 KB
testcase_65 WA -
testcase_66 AC 1 ms
4,348 KB
testcase_67 WA -
testcase_68 WA -
testcase_69 WA -
testcase_70 AC 1,141 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(12);
    double rmax, h, d;
    cin >> rmax >> h >> d;
    const double rmin = d / 2;
    const double rstep = (rmax - rmin) / 5e7;
    double ans = 0;
    for(double r = rmin; r < rmax; r += rstep) {
        double t = acos(d / 2 / r);
        double x = 2 * t;
        double x2 = x * x;
        ans += r * r * (x2 * x / 6 * (1 - x2 / 20 * (1 - x2 / 42)));
    }
    ans *= rstep * h / rmax;
    cout << ans << endl;
}
0