結果
| 問題 | No.605 板挟みの球面 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-05 00:31:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 593 bytes |
| 記録 | |
| コンパイル時間 | 1,136 ms |
| コンパイル使用メモリ | 93,768 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-28 07:03:46 |
| 合計ジャッジ時間 | 1,182 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 3 |
ソースコード
#include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "string"
#include "map"
#include "iomanip"
#include "cmath"
using namespace std;
const long long int MOD = 1000000007;
long long int N, M, K, H, W, L, R;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
long double a, b;
cin >> a >> b;
a = max(a, (long double) - 1);
b = min(b, (long double)1);
a = sqrt(1 - a*a)*a + asin(a);
b = sqrt(1 - b*b)*b + asin(b);
cout << setprecision(20) << (b - a) * 4 << endl;
return 0;
}