結果
問題 |
No.456 Millions of Submits!
|
ユーザー |
|
提出日時 | 2016-12-08 09:40:28 |
言語 | D (dmd 2.109.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 733 bytes |
コンパイル時間 | 2,819 ms |
コンパイル使用メモリ | 157,312 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 05:26:06 |
合計ジャッジ時間 | 10,259 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 = 100; 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); } } }