結果
問題 |
No.1178 Can you draw a Circle?
|
ユーザー |
![]() |
提出日時 | 2022-05-07 10:52:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 267 bytes |
コンパイル時間 | 1,928 ms |
コンパイル使用メモリ | 193,964 KB |
最終ジャッジ日時 | 2025-01-29 04:39:19 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ double a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; f -= e; c /= a, d /= a, f /= a; f += (c * c + d * d) / 4; cout << setprecision(15) << sqrt(f) << endl; return 0; }