結果

問題 No.1042 愚直大学
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-03-24 23:29:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 53,912 KB
最終ジャッジ日時 2024-04-21 08:25:19
合計ジャッジ時間 1,951 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,912 KB
testcase_01 AC 45 ms
53,156 KB
testcase_02 AC 43 ms
53,388 KB
testcase_03 AC 39 ms
52,944 KB
testcase_04 AC 39 ms
52,480 KB
testcase_05 AC 38 ms
53,828 KB
testcase_06 AC 39 ms
52,700 KB
testcase_07 AC 39 ms
52,920 KB
testcase_08 AC 39 ms
53,156 KB
testcase_09 AC 39 ms
53,220 KB
testcase_10 AC 43 ms
52,968 KB
testcase_11 AC 39 ms
52,860 KB
testcase_12 AC 38 ms
53,396 KB
testcase_13 AC 38 ms
52,876 KB
testcase_14 AC 38 ms
53,680 KB
testcase_15 AC 39 ms
52,720 KB
testcase_16 AC 38 ms
53,908 KB
testcase_17 AC 38 ms
53,028 KB
testcase_18 AC 40 ms
52,980 KB
testcase_19 AC 38 ms
53,888 KB
testcase_20 AC 39 ms
53,076 KB
testcase_21 AC 39 ms
52,440 KB
testcase_22 AC 39 ms
52,324 KB
testcase_23 AC 39 ms
52,788 KB
testcase_24 AC 39 ms
52,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

p,q = map(int,input().split())

l = 1 
r = 10**20
eps = 10**(-7)
for i in range(200):
    m = (r+l)/2

    if m**2 <= p+q*m*math.log2(m) + eps:
        l = m
    else:
        r = m
print(l)
    
0