結果

問題 No.1042 愚直大学
ユーザー U SU S
提出日時 2020-05-01 22:16:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,428 KB
実行使用メモリ 72,172 KB
最終ジャッジ日時 2023-08-26 14:39:36
合計ジャッジ時間 3,361 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,556 KB
testcase_01 AC 72 ms
71,760 KB
testcase_02 AC 72 ms
71,764 KB
testcase_03 AC 71 ms
71,432 KB
testcase_04 AC 70 ms
72,016 KB
testcase_05 AC 71 ms
71,868 KB
testcase_06 AC 70 ms
71,748 KB
testcase_07 AC 71 ms
72,172 KB
testcase_08 AC 71 ms
71,872 KB
testcase_09 AC 73 ms
71,952 KB
testcase_10 AC 72 ms
71,588 KB
testcase_11 AC 73 ms
71,524 KB
testcase_12 AC 72 ms
71,736 KB
testcase_13 AC 73 ms
71,948 KB
testcase_14 AC 72 ms
71,996 KB
testcase_15 AC 72 ms
71,648 KB
testcase_16 AC 70 ms
71,608 KB
testcase_17 AC 70 ms
71,496 KB
testcase_18 AC 72 ms
71,856 KB
testcase_19 AC 72 ms
71,432 KB
testcase_20 AC 73 ms
71,988 KB
testcase_21 AC 72 ms
71,828 KB
testcase_22 AC 72 ms
71,880 KB
testcase_23 AC 73 ms
71,696 KB
testcase_24 AC 75 ms
71,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
p, q = map(int,input().split())
l = 1
r = int(1e11)
while r-l > 1/int(1e5):
    m = (l+r) / 2
    f = p + q*m*math.log2(m)
    if m**2 >= f:
        r = m
    else:
        l = m
print(l)
0