結果
| 問題 | No.456 Millions of Submits! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-08 09:38:04 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 735 bytes |
| 記録 | |
| コンパイル時間 | 2,998 ms |
| コンパイル使用メモリ | 157,568 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 05:25:19 |
| 合計ジャッジ時間 | 10,677 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 = 50000;
real low = 1L;
foreach (i; 0..50) {
auto mid = (high + low) / 2.0L;
if (pow(mid, a) * pow(log(mid), b) >= t)
high = mid;
else
low = mid;
}
writefln("%.10f", high);
}
}
}