結果

問題 No.1178 Can you draw a Circle?
ユーザー persimmon-persimmonpersimmon-persimmon
提出日時 2021-06-14 12:32:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 87,328 KB
実行使用メモリ 72,108 KB
最終ジャッジ日時 2023-08-25 21:08:29
合計ジャッジ時間 3,218 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 70 ms
71,892 KB
testcase_02 AC 70 ms
71,552 KB
testcase_03 WA -
testcase_04 AC 70 ms
71,508 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 69 ms
71,704 KB
testcase_08 AC 69 ms
71,648 KB
testcase_09 AC 69 ms
71,252 KB
testcase_10 AC 70 ms
71,852 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

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 +  (c/2a)**2 + (d/2a)**2
(x**2 + c/ax + (c/2a)**2) + (x**2 + d/ax + (d/2a)**2) = (f - e +  (c/2a)**2 + (d/2a)**2) / a

"""
tmp=f-e+(c/(2*a))**2+(d/(2*a))**2
tmp/=a
print(tmp**0.5)


0