結果

問題 No.724 円と円の間の円
ユーザー convexineqconvexineq
提出日時 2018-08-04 16:46:00
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 11,888 KB
実行使用メモリ 10,256 KB
最終ジャッジ日時 2023-10-19 21:51:11
合計ジャッジ時間 1,642 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,256 KB
testcase_01 AC 32 ms
10,256 KB
testcase_02 AC 32 ms
10,256 KB
testcase_03 AC 29 ms
10,256 KB
testcase_04 AC 30 ms
10,256 KB
testcase_05 AC 30 ms
10,256 KB
testcase_06 AC 30 ms
10,256 KB
testcase_07 AC 30 ms
10,228 KB
testcase_08 AC 29 ms
10,256 KB
testcase_09 AC 30 ms
10,256 KB
testcase_10 AC 30 ms
10,256 KB
testcase_11 AC 30 ms
10,256 KB
testcase_12 AC 30 ms
10,256 KB
testcase_13 AC 29 ms
10,256 KB
testcase_14 AC 30 ms
10,256 KB
testcase_15 AC 30 ms
10,256 KB
testcase_16 AC 30 ms
10,256 KB
testcase_17 AC 30 ms
10,256 KB
testcase_18 AC 29 ms
10,256 KB
testcase_19 AC 30 ms
10,256 KB
testcase_20 AC 29 ms
10,256 KB
testcase_21 AC 29 ms
10,256 KB
testcase_22 AC 29 ms
10,256 KB
testcase_23 AC 30 ms
10,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
import math

n,a,b=list(map(int,input().split()))


d = math.sqrt(((n-1)*(b-a)/2.0)**2 + ((b+a)/2.0)**2)
R=a*b/(d + (b-a)/2.0)
r=a*b/(d - (b-a)/2.0)

ans = (r - R)

print(ans)

0