結果

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

ソースコード

diff #

from math import *

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