結果
| 問題 |
No.735 接線
|
| コンテスト | |
| ユーザー |
gon_027
|
| 提出日時 | 2018-12-01 12:35:11 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 472 bytes |
| コンパイル時間 | 665 ms |
| コンパイル使用メモリ | 66,844 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 23:58:02 |
| 合計ジャッジ時間 | 1,440 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
#define _USE_MATH_DEFINENS
#include <cmath>
using namespace std;
#define p(x) cout << x << endl;
#define el cout << endl;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
double r, d;
cin >> r >> d;
double ans = (d * d) - (r * r);
ans = sqrt(ans);
printf("%.12lf\n",ans);
}
gon_027