結果

問題 No.1042 愚直大学
ユーザー stngstng
提出日時 2020-05-02 11:51:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 8,092 KB
最終ジャッジ日時 2023-08-28 13:27:19
合計ジャッジ時間 1,453 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,892 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,904 KB
testcase_05 AC 15 ms
7,964 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 16 ms
8,048 KB
testcase_12 AC 15 ms
7,872 KB
testcase_13 AC 16 ms
7,920 KB
testcase_14 AC 16 ms
8,064 KB
testcase_15 AC 16 ms
7,916 KB
testcase_16 AC 16 ms
7,836 KB
testcase_17 AC 15 ms
8,052 KB
testcase_18 AC 16 ms
7,964 KB
testcase_19 AC 16 ms
7,972 KB
testcase_20 AC 15 ms
7,904 KB
testcase_21 AC 15 ms
7,932 KB
testcase_22 AC 16 ms
7,968 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
p,q = map(int,input().split())

low = 1
high = 10**20
tmp = 0

while low+10**(0) < high:
    tmp = 0
    mid = (low + high) / 2
    #print(mid)
    
    #for i in range(n):
    #    tmp += max(0,af[i][1] - mid // af[i][2])
    #print(tmp)
    
    if mid**2 >= p+q*mid*math.log2(mid):
        high = mid
    else:
        low = mid
        
print(high)
0