結果
問題 | No.1178 Can you draw a Circle? |
ユーザー |
![]() |
提出日時 | 2024-05-10 20:16:39 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 436 bytes |
コンパイル時間 | 1,828 ms |
コンパイル使用メモリ | 194,836 KB |
最終ジャッジ日時 | 2025-02-21 12:10:55 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/modint>using namespace std;using mint = atcoder::modint1000000007;void fast_io() {ios::sync_with_stdio(false);std::cin.tie(nullptr);}int main() {fast_io();int a, b, c, d, e, f;cin >> a >> b >> c >> d >> e >> f;double ans = (double)(4 * a * (f - e) + c * c + d * d) / (4 * a * a);ans = sqrt(ans);cout << setprecision(16) << fixed << ans << endl;}