結果
| 問題 | No.724 円と円の間の円 |
| コンテスト | |
| ユーザー |
ats5515
|
| 提出日時 | 2018-08-03 21:48:27 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 375 bytes |
| 記録 | |
| コンパイル時間 | 558 ms |
| コンパイル使用メモリ | 97,124 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-08 04:58:39 |
| 合計ジャッジ時間 | 1,702 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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