結果

問題 No.1042 愚直大学
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-02-27 19:55:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 2,861 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 71,852 KB
最終ジャッジ日時 2023-09-19 07:13:14
合計ジャッジ時間 3,464 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,788 KB
testcase_01 AC 74 ms
71,724 KB
testcase_02 AC 73 ms
71,852 KB
testcase_03 AC 76 ms
71,652 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 74 ms
71,620 KB
testcase_07 AC 76 ms
71,636 KB
testcase_08 AC 76 ms
71,720 KB
testcase_09 AC 75 ms
71,764 KB
testcase_10 AC 74 ms
71,796 KB
testcase_11 AC 72 ms
71,760 KB
testcase_12 AC 76 ms
71,428 KB
testcase_13 AC 77 ms
71,644 KB
testcase_14 AC 75 ms
71,568 KB
testcase_15 AC 74 ms
71,844 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 73 ms
71,608 KB
testcase_19 WA -
testcase_20 AC 74 ms
71,676 KB
testcase_21 AC 74 ms
71,612 KB
testcase_22 AC 72 ms
71,460 KB
testcase_23 AC 73 ms
71,404 KB
testcase_24 AC 75 ms
71,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

import math

def is_ok(x):
    return x**2 - (P+Q*x*math.log2(x))<0
    
y = pow(10,10)
x = 1
while y-x>0.000001:
    mid = (y+x)/2
    if is_ok(mid):
        x = mid
    else:
        y = mid
print(x)
0