結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 304 ms
4,348 KB
testcase_01 AC 312 ms
4,348 KB
testcase_02 AC 175 ms
4,348 KB
testcase_03 AC 95 ms
4,348 KB
testcase_04 AC 347 ms
4,348 KB
testcase_05 AC 300 ms
4,348 KB
testcase_06 AC 193 ms
4,348 KB
testcase_07 AC 113 ms
4,348 KB
testcase_08 AC 201 ms
4,348 KB
testcase_09 AC 336 ms
4,348 KB
testcase_10 WA -
testcase_11 AC 131 ms
4,348 KB
testcase_12 AC 220 ms
4,348 KB
testcase_13 AC 141 ms
4,348 KB
testcase_14 WA -
testcase_15 AC 151 ms
4,348 KB
testcase_16 WA -
testcase_17 AC 394 ms
4,348 KB
testcase_18 AC 76 ms
4,348 KB
testcase_19 AC 393 ms
4,348 KB
testcase_20 AC 304 ms
4,348 KB
testcase_21 AC 315 ms
4,348 KB
testcase_22 AC 296 ms
4,348 KB
testcase_23 AC 302 ms
4,348 KB
testcase_24 AC 301 ms
4,348 KB
testcase_25 AC 309 ms
4,348 KB
testcase_26 AC 302 ms
4,348 KB
testcase_27 AC 299 ms
4,348 KB
testcase_28 AC 300 ms
4,348 KB
testcase_29 AC 299 ms
4,348 KB
testcase_30 AC 305 ms
4,348 KB
testcase_31 AC 304 ms
4,348 KB
testcase_32 AC 190 ms
4,348 KB
testcase_33 AC 391 ms
4,348 KB
testcase_34 AC 301 ms
4,348 KB
testcase_35 AC 309 ms
4,348 KB
testcase_36 AC 302 ms
4,348 KB
testcase_37 AC 309 ms
4,348 KB
testcase_38 AC 302 ms
4,348 KB
testcase_39 AC 343 ms
4,348 KB
testcase_40 AC 132 ms
4,348 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 279 ms
4,348 KB
testcase_47 WA -
testcase_48 AC 131 ms
4,348 KB
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 AC 16 ms
4,348 KB
testcase_61 AC 17 ms
4,348 KB
testcase_62 AC 17 ms
4,348 KB
testcase_63 AC 17 ms
4,348 KB
testcase_64 AC 196 ms
4,348 KB
testcase_65 AC 195 ms
4,348 KB
testcase_66 AC 17 ms
4,348 KB
testcase_67 AC 295 ms
4,348 KB
testcase_68 AC 368 ms
4,348 KB
testcase_69 AC 295 ms
4,348 KB
testcase_70 WA -
権限があれば一括ダウンロードができます

ソースコード

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=10000000;
    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