結果

問題 No.1319 最強とんがりコーン
ユーザー 👑 NachiaNachia
提出日時 2020-12-16 00:30:35
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 498 bytes
コンパイル時間 2,118 ms
コンパイル使用メモリ 201,448 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 07:16:13
合計ジャッジ時間 139,327 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,407 ms
4,348 KB
testcase_01 AC 1,410 ms
4,348 KB
testcase_02 TLE -
testcase_03 TLE -
testcase_04 AC 1,413 ms
4,348 KB
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 AC 1,474 ms
4,348 KB
testcase_18 TLE -
testcase_19 AC 1,440 ms
4,348 KB
testcase_20 AC 1,413 ms
4,348 KB
testcase_21 AC 1,413 ms
4,348 KB
testcase_22 AC 1,411 ms
4,348 KB
testcase_23 AC 1,410 ms
4,348 KB
testcase_24 AC 1,414 ms
4,348 KB
testcase_25 AC 1,412 ms
4,348 KB
testcase_26 AC 1,405 ms
4,348 KB
testcase_27 AC 1,411 ms
4,348 KB
testcase_28 AC 1,414 ms
4,348 KB
testcase_29 AC 1,417 ms
4,348 KB
testcase_30 AC 1,412 ms
4,348 KB
testcase_31 AC 1,416 ms
4,348 KB
testcase_32 TLE -
testcase_33 AC 1,428 ms
4,348 KB
testcase_34 AC 1,407 ms
4,348 KB
testcase_35 AC 1,412 ms
4,348 KB
testcase_36 AC 1,417 ms
4,348 KB
testcase_37 AC 1,413 ms
4,348 KB
testcase_38 AC 1,416 ms
4,348 KB
testcase_39 AC 1,418 ms
4,348 KB
testcase_40 TLE -
testcase_41 TLE -
testcase_42 TLE -
testcase_43 TLE -
testcase_44 TLE -
testcase_45 TLE -
testcase_46 TLE -
testcase_47 TLE -
testcase_48 TLE -
testcase_49 TLE -
testcase_50 TLE -
testcase_51 TLE -
testcase_52 TLE -
testcase_53 TLE -
testcase_54 TLE -
testcase_55 TLE -
testcase_56 TLE -
testcase_57 TLE -
testcase_58 TLE -
testcase_59 TLE -
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 TLE -
testcase_65 TLE -
testcase_66 AC 2 ms
4,348 KB
testcase_67 AC 1,412 ms
4,348 KB
testcase_68 TLE -
testcase_69 AC 1,409 ms
4,348 KB
testcase_70 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using LL=long long;
using ULL=unsigned long long;
#define rep(i,n) for(int i=0; i<(n); i++)

const double pi = acos(-1.);

double solve(double D){
	double res=0.;
	for(double i=1.e-12; i<1;){
		double r=1.-i; if(D>r) break;
		double d=i*2.e-7;
		double c=2.*sqrt(r*r-D*D);
		res += (2.*acos(D/r)*r*r - D*c) * d;
		i+=d;
	}
	return res;
}

int main(){
	double R,H,D; cin>>R>>H>>D;
	cout<<fixed<<setprecision(10)<<(solve(D/R/2.)*H*R*R)<<endl;
	return 0;
}
0