結果
| 問題 | No.456 Millions of Submits! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-08 09:36:27 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 737 bytes |
| 記録 | |
| コンパイル時間 | 2,641 ms |
| コンパイル使用メモリ | 157,696 KB |
| 実行使用メモリ | 14,016 KB |
| 最終ジャッジ日時 | 2024-06-12 05:25:05 |
| 合計ジャッジ時間 | 11,252 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 7 TLE * 1 |
ソースコード
import std.stdio;
import std.array;
import std.string;
import std.conv;
import std.algorithm;
import std.typecons;
import std.range;
import std.random;
import std.math;
import std.container;
import std.numeric;
import core.bitop;
void main() {
auto M = readln.chomp.to!int;
foreach (_; 0..M) {
auto s = readln.split;
auto a = s[0].to!int;;
auto b = s[1].to!int;
auto t = s[2].to!real;
if (a == 0)
writefln("%.10f", E^^t);
else {
real high = 10L^^a;
real low = 1L;
foreach (i; 0..100) {
auto mid = (high + low) / 2.0L;
if (pow(mid, a) * pow(log(mid), b) >= t)
high = mid;
else
low = mid;
}
writefln("%.10f", high);
}
}
}