結果
問題 | No.735 接線 |
ユーザー |
![]() |
提出日時 | 2020-08-13 04:50:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 7,629 ms |
コンパイル使用メモリ | 190,804 KB |
最終ジャッジ日時 | 2025-01-12 21:38:40 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;int main(){ios::sync_with_stdio(false);cin.tie(nullptr);double r,d;cin >> r >> d;double res = sqrt(d * d - r * r);printf("%.12f\n", res);return 0;}