結果

問題 No.1178 Can you draw a Circle?
ユーザー XMMbmoWBO2UO4YK
提出日時 2020-08-21 22:30:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-11-07 14:04:25
合計ジャッジ時間 1,323 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal

def main():
    a,b,c,d,e,f = map(int,input().split())
    child = 4*(a*f-a*e) + c*c + d*d
    mother = 4*a*a
    tmp = child/mother
    ans = Decimal(tmp)**Decimal(0.5)
    return ans

print(main())
0