結果

問題 No.1042 愚直大学
ユーザー w0mbatw0mbat
提出日時 2020-05-01 21:42:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 86,780 KB
実行使用メモリ 71,680 KB
最終ジャッジ日時 2023-08-26 08:36:38
合計ジャッジ時間 3,310 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,680 KB
testcase_01 AC 69 ms
71,312 KB
testcase_02 AC 70 ms
71,164 KB
testcase_03 AC 70 ms
71,544 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 72 ms
71,092 KB
testcase_07 AC 72 ms
71,548 KB
testcase_08 AC 71 ms
71,216 KB
testcase_09 AC 72 ms
71,168 KB
testcase_10 AC 70 ms
71,136 KB
testcase_11 AC 72 ms
71,308 KB
testcase_12 AC 71 ms
71,256 KB
testcase_13 AC 72 ms
71,540 KB
testcase_14 AC 72 ms
71,436 KB
testcase_15 AC 72 ms
71,544 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 69 ms
71,228 KB
testcase_19 WA -
testcase_20 AC 71 ms
71,096 KB
testcase_21 AC 71 ms
71,420 KB
testcase_22 AC 70 ms
71,388 KB
testcase_23 AC 70 ms
71,272 KB
testcase_24 AC 71 ms
71,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

from math import log2
l=1
r=10**10
while r-l>0.000001:
    m=(l+r)/2
    if m*m>P+Q*m*log2(m):
        r=m
    else:
        l=m
print(l)
0