結果

問題 No.456 Millions of Submits!
ユーザー titia
提出日時 2023-08-09 01:34:25
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 409 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 82,548 KB
実行使用メモリ 77,264 KB
最終ジャッジ日時 2024-11-14 06:43:17
合計ジャッジ時間 9,978 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log

q=int(input())

for tests in range(q):
    a,b,t=map(float,input().split())

    # n**a * log(n)**b = t

    if a==0:
        print(2.718281828459045**(t**(1/b)))
        continue
        

    MAX = 10
    MIN = 0

    while MAX-MIN>10**(-9):
        mid=(MAX+MIN)/2

        if (mid ** a) *(log(mid)**b)>=t:
            MAX=mid
        else:
            MIN=mid

    print((MAX+MIN)/2)
0