結果

問題 No.1178 Can you draw a Circle?
ユーザー noiminoimi
提出日時 2020-08-21 22:16:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 300 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,760 KB
最終ジャッジ日時 2024-04-25 04:06:18
合計ジャッジ時間 6,385 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 TLE -
testcase_03 TLE -
testcase_04 TLE -
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 -
権限があれば一括ダウンロードができます

ソースコード

diff #

import decimal
D = decimal.Decimal

a,b,c,d,e,f = input().split()
a = D(a)
b = D(b)
c = D(c)
d = D(d)
e = D(e)
f = D(f)

l ,r= D('0'), D('1000000000')
for _ in range(1000000):
    mid = D((l + r)/2)
    if 4 * a * a * mid * mid < 4 * a * (f-e) + c * c + d * d: l = mid
    else :r = mid
print(l)
    
0