結果

問題 No.456 Millions of Submits!
ユーザー olpheolphe
提出日時 2016-12-07 23:02:47
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 553 bytes
コンパイル時間 614 ms
コンパイル使用メモリ 78,648 KB
実行使用メモリ 8,760 KB
最終ジャッジ日時 2023-09-05 07:14:06
合計ジャッジ時間 9,067 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
8,336 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 3 ms
4,380 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
#include "iomanip"
#include "math.h"
#include "algorithm"
#include "functional"

using namespace std;

const double dis = 0.0000000005;

int m;
double a, b, t;
double l,r;
double mid;

int main() {
	cin >> m;
	for (int i = 0; i < m; i++) {
		cin >> a >> b >> t;
		l = 0;
		r = 100;
		while ((r*r - l*r) > dis*r) {
			mid = (l + r) / 2;
			if (pow(mid, a)*pow(log(mid),b) > t) {
				r = mid;
			}
			else {
				l = mid;
			}
			//cout << setprecision(15) << mid << "\n";
		}
		cout << setprecision(15) << mid << "\n";
	}
	return 0;
}
0