結果

問題 No.1178 Can you draw a Circle?
ユーザー kokatsu
提出日時 2022-10-09 19:26:30
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 3,359 ms
コンパイル使用メモリ 217,156 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 16:21:50
合計ジャッジ時間 3,357 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;

void main() {
    real a, b, c, d, e, f;
    readf("%f %f %f %f %f %f\n", a, b, c, d, e, f);

    real squared = (f - e) / a + (c * c + d * d) / (4 * a * a);

    real res = squared.sqrt;
    writefln("%.10f", res);
}
0