結果

問題 No.1042 愚直大学
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2020-05-01 21:39:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 87,656 KB
実行使用メモリ 72,108 KB
最終ジャッジ日時 2023-08-26 08:12:16
合計ジャッジ時間 3,162 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,544 KB
testcase_01 AC 66 ms
71,880 KB
testcase_02 AC 66 ms
71,532 KB
testcase_03 AC 66 ms
71,884 KB
testcase_04 AC 65 ms
72,108 KB
testcase_05 AC 71 ms
71,632 KB
testcase_06 AC 67 ms
72,072 KB
testcase_07 AC 66 ms
71,704 KB
testcase_08 AC 66 ms
71,680 KB
testcase_09 AC 65 ms
71,880 KB
testcase_10 AC 65 ms
71,760 KB
testcase_11 AC 69 ms
71,720 KB
testcase_12 AC 67 ms
71,680 KB
testcase_13 AC 68 ms
71,948 KB
testcase_14 AC 68 ms
71,628 KB
testcase_15 AC 68 ms
71,940 KB
testcase_16 AC 68 ms
71,720 KB
testcase_17 AC 65 ms
71,736 KB
testcase_18 AC 67 ms
71,752 KB
testcase_19 AC 64 ms
71,824 KB
testcase_20 AC 66 ms
71,748 KB
testcase_21 AC 66 ms
71,812 KB
testcase_22 AC 66 ms
71,724 KB
testcase_23 AC 65 ms
71,880 KB
testcase_24 AC 66 ms
71,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

l = 1
r = 10**64

while r-l > 10**(-7) and r-l > l * 10**(-6):

    m = (l+r)/2
    #print (m)

    if m**2 > P + m*Q*math.log(m,2):
        r = m
    else:
        l = m

print (l)
0