結果
| 問題 |
No.724 円と円の間の円
|
| コンテスト | |
| ユーザー |
ats5515
|
| 提出日時 | 2018-08-03 21:48:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 375 bytes |
| コンパイル時間 | 647 ms |
| コンパイル使用メモリ | 73,992 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-19 17:27:27 |
| 合計ジャッジ時間 | 1,718 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <algorithm>
#include <cmath>
#include <cassert>
#include <iomanip>
using namespace std;
int n, a, b;
int main() {
cin >> n >> a >> b;
cout << fixed << setprecision(15) << 4 * a*b*(b - a) / (double)((((double)n*n - 2 * n)*(b - a)*(b - a)) + (a + b)*(a + b)) << endl;
return 0;
}
ats5515