結果

問題 No.1319 最強とんがりコーン
ユーザー chocoruskchocorusk
提出日時 2020-12-16 00:33:05
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 888 bytes
コンパイル時間 1,159 ms
コンパイル使用メモリ 126,972 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 07:19:37
合計ジャッジ時間 35,441 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 757 ms
4,348 KB
testcase_01 AC 778 ms
4,348 KB
testcase_02 AC 433 ms
4,348 KB
testcase_03 AC 236 ms
4,348 KB
testcase_04 AC 862 ms
4,348 KB
testcase_05 AC 746 ms
4,348 KB
testcase_06 AC 479 ms
4,348 KB
testcase_07 AC 279 ms
4,348 KB
testcase_08 AC 502 ms
4,348 KB
testcase_09 AC 836 ms
4,348 KB
testcase_10 WA -
testcase_11 AC 322 ms
4,348 KB
testcase_12 AC 539 ms
4,348 KB
testcase_13 AC 348 ms
4,348 KB
testcase_14 AC 132 ms
4,348 KB
testcase_15 AC 372 ms
4,348 KB
testcase_16 AC 155 ms
4,348 KB
testcase_17 AC 980 ms
4,348 KB
testcase_18 AC 186 ms
4,348 KB
testcase_19 AC 975 ms
4,348 KB
testcase_20 AC 749 ms
4,348 KB
testcase_21 AC 778 ms
4,348 KB
testcase_22 AC 740 ms
4,348 KB
testcase_23 AC 747 ms
4,348 KB
testcase_24 AC 734 ms
4,348 KB
testcase_25 AC 742 ms
4,348 KB
testcase_26 AC 742 ms
4,348 KB
testcase_27 AC 733 ms
4,348 KB
testcase_28 AC 740 ms
4,348 KB
testcase_29 AC 735 ms
4,348 KB
testcase_30 AC 757 ms
4,348 KB
testcase_31 AC 748 ms
4,348 KB
testcase_32 AC 466 ms
4,348 KB
testcase_33 AC 968 ms
4,348 KB
testcase_34 AC 741 ms
4,348 KB
testcase_35 AC 768 ms
4,348 KB
testcase_36 AC 750 ms
4,348 KB
testcase_37 AC 769 ms
4,348 KB
testcase_38 AC 757 ms
4,348 KB
testcase_39 AC 851 ms
4,348 KB
testcase_40 AC 323 ms
4,348 KB
testcase_41 WA -
testcase_42 AC 120 ms
4,348 KB
testcase_43 WA -
testcase_44 AC 127 ms
4,348 KB
testcase_45 WA -
testcase_46 AC 690 ms
4,348 KB
testcase_47 AC 95 ms
4,348 KB
testcase_48 AC 321 ms
4,348 KB
testcase_49 AC 103 ms
4,348 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 AC 151 ms
4,348 KB
testcase_55 AC 124 ms
4,348 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 AC 40 ms
4,348 KB
testcase_61 AC 39 ms
4,348 KB
testcase_62 AC 40 ms
4,348 KB
testcase_63 AC 40 ms
4,348 KB
testcase_64 AC 482 ms
4,348 KB
testcase_65 AC 482 ms
4,348 KB
testcase_66 AC 39 ms
4,348 KB
testcase_67 AC 732 ms
4,348 KB
testcase_68 AC 912 ms
4,348 KB
testcase_69 AC 738 ms
4,348 KB
testcase_70 AC 103 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#include <utility>
#include <functional>
#include <time.h>
#include <stack>
#include <array>
#include <list>
#define popcount __builtin_popcount
using namespace std;
typedef long long ll;
typedef pair<int, int> P;

int main()
{
    double r, h, d;
    cin>>r>>h>>d;
    double ans=0;
    const int loop=25000000;
    double h1=h/loop;
    for(int i=0; i<loop; i++){
        double r1=r*(double)i/loop;
        if(d>=2*r1) continue;
        double t=acos(d/(2*r1))*2;
        ans+=h1*r1*r1*(t-sin(t));
    }
    printf("%.7lf\n", ans);
    return 0;
}
0