結果

問題 No.1042 愚直大学
ユーザー syunsukesyunsuke
提出日時 2020-09-15 22:38:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 1,003 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 76,752 KB
最終ジャッジ日時 2023-09-04 03:02:21
合計ジャッジ時間 4,024 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
76,392 KB
testcase_01 AC 76 ms
76,452 KB
testcase_02 AC 76 ms
76,360 KB
testcase_03 AC 74 ms
76,276 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 75 ms
76,428 KB
testcase_07 AC 75 ms
76,752 KB
testcase_08 AC 75 ms
76,340 KB
testcase_09 AC 76 ms
76,388 KB
testcase_10 AC 76 ms
76,656 KB
testcase_11 AC 74 ms
76,624 KB
testcase_12 AC 76 ms
76,388 KB
testcase_13 AC 79 ms
76,440 KB
testcase_14 AC 77 ms
76,584 KB
testcase_15 AC 78 ms
76,432 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 76 ms
76,272 KB
testcase_19 WA -
testcase_20 AC 76 ms
76,664 KB
testcase_21 AC 75 ms
76,480 KB
testcase_22 AC 75 ms
76,276 KB
testcase_23 AC 74 ms
76,312 KB
testcase_24 AC 76 ms
76,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

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

High=10**10
Low=0

for i in range(10**4):
    Mid=(High + Low)/2
    if Mid ** 2 > P + Q * Mid * math.log2(Mid):
        High = Mid
    else:
        Low = Mid
print(Mid)
0