結果

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

ソースコード

diff #

from decimal import *
getcontext().prec = 1000
a, b, c, d, e, f = map(Decimal, input().split())
c /= a
d /= a
f -= e
f /= a
e = 0
a = b = 1
ans = (f + (c / 2) ** 2 + (d / 2) ** 2).sqrt()
ans = str(ans)
if len(ans) > 50:
    ans = ans[:50]
print(ans)
0