結果

問題 No.1178 Can you draw a Circle?
ユーザー noimi
提出日時 2020-08-21 22:16:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 300 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2024-11-07 13:59:20
合計ジャッジ時間 29,856 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 2
other TLE * 12 -- * 3
権限があれば一括ダウンロードができます

ソースコード

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