結果

問題 No.1042 愚直大学
ユーザー roarisroaris
提出日時 2020-05-08 15:33:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 71,700 KB
最終ジャッジ日時 2023-09-16 08:28:25
合計ジャッジ時間 3,215 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,680 KB
testcase_01 AC 72 ms
71,700 KB
testcase_02 AC 72 ms
71,656 KB
testcase_03 AC 74 ms
71,532 KB
testcase_04 AC 74 ms
71,468 KB
testcase_05 AC 74 ms
71,248 KB
testcase_06 AC 73 ms
71,416 KB
testcase_07 AC 72 ms
71,432 KB
testcase_08 AC 72 ms
71,672 KB
testcase_09 AC 71 ms
71,376 KB
testcase_10 AC 72 ms
71,576 KB
testcase_11 AC 72 ms
71,448 KB
testcase_12 AC 72 ms
71,672 KB
testcase_13 AC 72 ms
71,692 KB
testcase_14 AC 71 ms
71,528 KB
testcase_15 AC 73 ms
71,472 KB
testcase_16 AC 70 ms
71,280 KB
testcase_17 AC 72 ms
71,304 KB
testcase_18 AC 72 ms
71,368 KB
testcase_19 AC 71 ms
71,444 KB
testcase_20 AC 72 ms
71,584 KB
testcase_21 AC 71 ms
71,492 KB
testcase_22 AC 71 ms
71,472 KB
testcase_23 AC 72 ms
71,448 KB
testcase_24 AC 72 ms
71,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import *

P, Q = map(int, input().split())
l, r = 1, 10**12

while r-l>=1e-5:
    m = (l+r)/2
    
    if m*m<=P+Q*m*log(m, 2):
        l = m
    else:
        r = m

print(l)
0