結果

問題 No.1042 愚直大学
ユーザー Valkyrja
提出日時 2020-05-11 14:02:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 316 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2024-07-18 10:18:10
合計ジャッジ時間 3,751 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 TLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

p,q=map(int,input().split())
from math import *
def f(n):
    if n**2<p+q*n*log2(n):
        return True
    else:
        return False

left=1
right=10**20
while right-left>0.000001:
    mid=(left+right)/2
    if f(mid):
        left=mid   #ここがleftならansもleft。
    else:
        right=mid
print(left)

0