結果

問題 No.1178 Can you draw a Circle?
ユーザー persimmon-persimmon
提出日時 2021-06-14 12:38:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 739 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-12-24 07:28:57
合計ジャッジ時間 2,147 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,e,f=map(int,input().split())
"""
ax**2+by**2+cx+dy+e=f
a=b
a(x**2 + c/ax + (c/2a)**2) + a(x**2 + d/ax + (d/2a)**2) = f - e +  a*(c/2a)**2 + a*(d/2a)**2
(x**2 + c/ax + (c/2a)**2) + (x**2 + d/ax + (d/2a)**2) = (f - e +  a*(c/2a)**2 + a*(d/2a)**2) / a
"""
tmp=f/a-e/a+c**2/(4*a**2)+d**2/(4*a**2)
from math import sqrt
print(sqrt(tmp))
0