結果
| 問題 | No.735 接線 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-09-15 08:13:35 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 391 bytes | 
| コンパイル時間 | 1,331 ms | 
| コンパイル使用メモリ | 166,916 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-06 22:39:17 | 
| 合計ジャッジ時間 | 2,344 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 30 | 
ソースコード
/**
  @file 735.cpp
  @title  No.735 接線 - yukicoder
  @url https://yukicoder.me/problems/no/735
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define ALL(obj) (obj).begin(), (obj).end()
#define REP(i, N) for (int i = 0; i < (N); ++i)
int main() {
  double r, d;
  cin >> r >> d;
  cout <<fixed<<setprecision(12)<< sqrt(d * d - r * r) << endl;
  return 0;
}
            
            
            
        