結果

問題 No.605 板挟みの球面
ユーザー olpheolphe
提出日時 2017-12-05 00:31:43
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 593 bytes
コンパイル時間 744 ms
コンパイル使用メモリ 94,812 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-06 04:00:57
合計ジャッジ時間 1,123 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0