結果
問題 |
No.1178 Can you draw a Circle?
|
ユーザー |
![]() |
提出日時 | 2025-03-20 21:05:53 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 308 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,316 KB |
実行使用メモリ | 53,668 KB |
最終ジャッジ日時 | 2025-03-20 21:05:56 |
合計ジャッジ時間 | 1,429 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
import math a, b, c, d, e, f = map(int, input().split()) # Calculate the numerator part of the radius formula numerator = c**2 + d**2 - 4 * a * (e - f) denominator = 2 * abs(a) radius = math.sqrt(numerator) / denominator # Ensure the output has at least 15 decimal places print("{0:.15f}".format(radius))