結果
問題 | No.724 円と円の間の円 |
ユーザー |
![]() |
提出日時 | 2017-10-04 09:26:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 735 ms |
コンパイル使用メモリ | 88,652 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 17:47:09 |
合計ジャッジ時間 | 1,821 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 << setprecision(15) << 4 * a*b*(b - a) / (double)((((double)n*n - 2 * n)*(b - a)*(b - a)) + (a + b)*(a + b)) << endl; return 0; }