結果

問題 No.1042 愚直大学
ユーザー roaris
提出日時 2020-05-08 00:09:24
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 271 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 82,420 KB
実行使用メモリ 66,884 KB
最終ジャッジ日時 2024-07-03 09:42:49
合計ジャッジ時間 3,726 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 TLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import *

def binary_search():
    l, r = 1, 10**18
    
    while r-l>=1e-6:
        m = (l+r)/2
        
        if m**2<=P+Q*m*log(m, 2):
            l = m
        else:
            r = m

    return l

P, Q = map(int, input().split())
print(binary_search())
0