結果

問題 No.1319 最強とんがりコーン
ユーザー tko919tko919
提出日時 2020-12-16 02:01:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 346 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 11,780 KB
実行使用メモリ 10,212 KB
最終ジャッジ日時 2023-10-20 08:49:28
合計ジャッジ時間 4,127 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import math

R,H,D=map(float,input().split())
a=R/H

def inte(x):
  res=16*a*a*a*x*x*x*math.acos(D/x/a/2)
  res-=2*a*D*x*(a*x*math.sqrt(4-D*D/a/a/x/x)+3*math.sqrt(4*a*a*x*x-D*D))
  res-=D*D*D*math.log(x*(math.sqrt(4-D*D/a/a/x/x)+2))
  res+=3*D*D*D*math.log(a*(math.sqrt(4*a*a*x*x-D*D)+2*a*x))
  return res/a/24

res=inte(H)-inte(D/a/2)
print(res)
0