結果
| 問題 |
No.735 接線
|
| コンテスト | |
| ユーザー |
gon_027
|
| 提出日時 | 2018-12-01 12:31:17 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 469 bytes |
| コンパイル時間 | 578 ms |
| コンパイル使用メモリ | 66,244 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-26 23:58:00 |
| 合計ジャッジ時間 | 1,647 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 6 |
ソースコード
#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);
cout << ans << endl;
}
gon_027