結果

問題 No.456 Millions of Submits!
ユーザー titiatitia
提出日時 2023-08-09 01:31:25
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 415 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 83,328 KB
最終ジャッジ日時 2024-04-26 17:11:08
合計ジャッジ時間 10,925 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
52,352 KB
testcase_01 AC 39 ms
52,992 KB
testcase_02 AC 37 ms
52,608 KB
testcase_03 AC 38 ms
52,608 KB
testcase_04 AC 39 ms
52,864 KB
testcase_05 AC 60 ms
63,744 KB
testcase_06 AC 61 ms
63,872 KB
testcase_07 AC 122 ms
77,056 KB
testcase_08 AC 118 ms
77,056 KB
testcase_09 AC 265 ms
77,312 KB
testcase_10 AC 248 ms
78,336 KB
testcase_11 AC 1,435 ms
77,568 KB
testcase_12 TLE -
権限があれば一括ダウンロードができます

ソースコード

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

    for tt in range(100):
        mid=(MAX+MIN)/2

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

    print((MAX+MIN)/2)
    


0