結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,352 KB
testcase_01 AC 40 ms
52,224 KB
testcase_02 AC 39 ms
52,224 KB
testcase_03 AC 39 ms
52,352 KB
testcase_04 AC 40 ms
52,480 KB
testcase_05 AC 52 ms
60,928 KB
testcase_06 AC 59 ms
61,440 KB
testcase_07 AC 108 ms
76,928 KB
testcase_08 AC 108 ms
76,928 KB
testcase_09 AC 207 ms
77,056 KB
testcase_10 AC 204 ms
77,184 KB
testcase_11 AC 872 ms
77,440 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

    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