結果

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

ソースコード

diff #

from math import *

def binary_search():
    l, r = 1, 10**11
    
    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