結果

問題 No.1042 愚直大学
ユーザー ronpooronpoo
提出日時 2023-10-30 14:53:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,072 KB
実行使用メモリ 53,996 KB
最終ジャッジ日時 2023-10-30 14:53:54
合計ジャッジ時間 3,561 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,996 KB
testcase_01 AC 36 ms
53,996 KB
testcase_02 AC 36 ms
53,996 KB
testcase_03 AC 37 ms
53,996 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 36 ms
53,996 KB
testcase_07 AC 38 ms
53,996 KB
testcase_08 AC 38 ms
53,996 KB
testcase_09 AC 37 ms
53,996 KB
testcase_10 AC 36 ms
53,996 KB
testcase_11 AC 37 ms
53,996 KB
testcase_12 AC 36 ms
53,996 KB
testcase_13 AC 37 ms
53,996 KB
testcase_14 AC 38 ms
53,996 KB
testcase_15 AC 37 ms
53,996 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 37 ms
53,996 KB
testcase_23 AC 37 ms
53,996 KB
testcase_24 AC 38 ms
53,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log2

P, Q = map(int, input().split())

ok = 1
ng = 10**9+1
while ng - ok > 10**-6:
    mid = (ok + ng) / 2
    if mid**2 <= P + Q*mid*log2(mid):
        ok = mid
    else:
        ng = mid    
print(ok)
0