結果

問題 No.1042 愚直大学
ユーザー iet461_kyopro
提出日時 2020-05-01 21:52:58
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 219 bytes
コンパイル時間 1,550 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 127,872 KB
最終ジャッジ日時 2024-12-25 03:42:22
合計ジャッジ時間 26,104 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 TLE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

p,q = map(int, input().split())
ok = 1
ng = 10 ** 30 + 1
while abs(ok-ng) > 10 ** (-8):
    mid = (ok+ng)/2
    if mid * (mid - q*math.log2(mid)) <= p:
        ok = mid
    else:
        ng = mid
print(ok)
0