結果

問題 No.1042 愚直大学
ユーザー Navier_Boltzmann
提出日時 2022-02-27 19:55:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 551 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 52,864 KB
最終ジャッジ日時 2024-07-05 19:16:34
合計ジャッジ時間 2,101 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

P,Q = map(int,input().split())

import math

def is_ok(x):
    return x**2 - (P+Q*x*math.log2(x))<0
    
y = pow(10,10)
x = 1
while y-x>0.000001:
    mid = (y+x)/2
    if is_ok(mid):
        x = mid
    else:
        y = mid
print(x)
0