結果
| 問題 | No.456 Millions of Submits! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-11-22 16:40:40 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 609 bytes |
| 記録 | |
| コンパイル時間 | 381 ms |
| コンパイル使用メモリ | 84,260 KB |
| 実行使用メモリ | 9,872 KB |
| 最終ジャッジ日時 | 2026-11-22 16:40:55 |
| 合計ジャッジ時間 | 9,968 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 TLE * 1 -- * 10 |
ソースコード
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
typedef long double LD;
const LD EPS = 1e-18;
double t;
int m, a, b;
bool Check(LD x) {
return t >= pow(x, a) * pow(log(x), b);
}
/**
* 求 $n$,满足 $n^{a_i} (\ln n)^{b_i} = t_i$
* $n \le 25000$
*/
int main() {
scanf("%d", &m);
while (m--) {
scanf("%d%d%lf", &a, &b, &t);
LD l = 0.0, r = 25000.0;
while (r - l > EPS) {
LD mid = (l + r) / 2;
if (Check(mid)) l = mid;
else r = mid;
}
printf("%.15Lf\n", l);
}
return 0;
}