結果

問題 No.1042 愚直大学
ユーザー rkyiolklorkyiolklo
提出日時 2020-05-01 22:03:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 175 bytes
コンパイル時間 890 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 8,496 KB
最終ジャッジ日時 2023-08-26 13:24:31
合計ジャッジ時間 1,744 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,292 KB
testcase_01 AC 20 ms
8,444 KB
testcase_02 AC 16 ms
8,364 KB
testcase_03 AC 16 ms
8,316 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 16 ms
8,476 KB
testcase_07 AC 16 ms
8,400 KB
testcase_08 AC 16 ms
8,284 KB
testcase_09 AC 16 ms
8,384 KB
testcase_10 AC 17 ms
8,320 KB
testcase_11 AC 18 ms
8,316 KB
testcase_12 AC 18 ms
8,444 KB
testcase_13 AC 17 ms
8,324 KB
testcase_14 AC 17 ms
8,364 KB
testcase_15 AC 18 ms
8,484 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 16 ms
8,360 KB
testcase_23 AC 17 ms
8,380 KB
testcase_24 AC 17 ms
8,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math 
P,Q=map(int,input().split())
r=10**9;l=0
while r-l>10**-6:
    mid=(r+l)/2
    if mid**2<P+Q*mid*math.log(mid,2):
        l=mid 
    else:
        r=mid

print(l)
0