結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,498 ms
4,348 KB
testcase_01 AC 1,551 ms
4,348 KB
testcase_02 AC 862 ms
4,348 KB
testcase_03 AC 461 ms
4,348 KB
testcase_04 AC 1,693 ms
4,348 KB
testcase_05 AC 1,460 ms
4,348 KB
testcase_06 AC 946 ms
4,348 KB
testcase_07 AC 543 ms
4,348 KB
testcase_08 AC 978 ms
4,348 KB
testcase_09 AC 1,640 ms
4,348 KB
testcase_10 AC 165 ms
4,348 KB
testcase_11 AC 640 ms
4,348 KB
testcase_12 AC 1,070 ms
4,348 KB
testcase_13 AC 685 ms
4,348 KB
testcase_14 AC 257 ms
4,348 KB
testcase_15 AC 730 ms
4,348 KB
testcase_16 AC 308 ms
4,348 KB
testcase_17 AC 1,934 ms
4,348 KB
testcase_18 AC 370 ms
4,348 KB
testcase_19 AC 1,923 ms
4,348 KB
testcase_20 AC 1,472 ms
4,348 KB
testcase_21 AC 1,522 ms
4,348 KB
testcase_22 AC 1,450 ms
4,348 KB
testcase_23 AC 1,460 ms
4,348 KB
testcase_24 AC 1,488 ms
4,348 KB
testcase_25 AC 1,604 ms
4,348 KB
testcase_26 AC 1,494 ms
4,348 KB
testcase_27 AC 1,482 ms
4,348 KB
testcase_28 AC 1,479 ms
4,348 KB
testcase_29 AC 1,476 ms
4,348 KB
testcase_30 AC 1,506 ms
4,348 KB
testcase_31 AC 1,491 ms
4,348 KB
testcase_32 AC 933 ms
4,348 KB
testcase_33 AC 1,908 ms
4,348 KB
testcase_34 AC 1,469 ms
4,348 KB
testcase_35 AC 1,529 ms
4,348 KB
testcase_36 AC 1,494 ms
4,348 KB
testcase_37 AC 1,507 ms
4,348 KB
testcase_38 AC 1,480 ms
4,348 KB
testcase_39 AC 1,703 ms
4,348 KB
testcase_40 AC 646 ms
4,348 KB
testcase_41 AC 157 ms
4,348 KB
testcase_42 AC 236 ms
4,348 KB
testcase_43 AC 165 ms
4,348 KB
testcase_44 AC 247 ms
4,348 KB
testcase_45 WA -
testcase_46 AC 1,381 ms
4,348 KB
testcase_47 AC 188 ms
4,348 KB
testcase_48 AC 644 ms
4,348 KB
testcase_49 AC 203 ms
4,348 KB
testcase_50 AC 180 ms
4,348 KB
testcase_51 AC 138 ms
4,348 KB
testcase_52 AC 168 ms
4,348 KB
testcase_53 WA -
testcase_54 AC 301 ms
4,348 KB
testcase_55 AC 247 ms
4,348 KB
testcase_56 AC 158 ms
4,348 KB
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 AC 76 ms
4,348 KB
testcase_61 AC 77 ms
4,348 KB
testcase_62 AC 77 ms
4,348 KB
testcase_63 AC 77 ms
4,348 KB
testcase_64 AC 1,044 ms
4,348 KB
testcase_65 AC 964 ms
4,348 KB
testcase_66 AC 77 ms
4,348 KB
testcase_67 AC 1,456 ms
4,348 KB
testcase_68 AC 1,812 ms
4,348 KB
testcase_69 AC 1,471 ms
4,348 KB
testcase_70 AC 204 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=50000000;
    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