結果

問題 No.1042 愚直大学
ユーザー strangerxxxstrangerxxx
提出日時 2020-05-02 02:43:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 673 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 108,392 KB
最終ジャッジ日時 2023-08-26 21:35:29
合計ジャッジ時間 11,807 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 673 ms
56,260 KB
testcase_01 AC 291 ms
56,284 KB
testcase_02 AC 291 ms
56,324 KB
testcase_03 AC 290 ms
56,116 KB
testcase_04 AC 286 ms
56,280 KB
testcase_05 AC 278 ms
56,144 KB
testcase_06 AC 274 ms
56,316 KB
testcase_07 AC 271 ms
56,316 KB
testcase_08 AC 287 ms
56,184 KB
testcase_09 AC 287 ms
56,164 KB
testcase_10 AC 286 ms
56,308 KB
testcase_11 AC 285 ms
56,388 KB
testcase_12 AC 291 ms
56,540 KB
testcase_13 AC 291 ms
56,084 KB
testcase_14 AC 298 ms
56,284 KB
testcase_15 AC 300 ms
56,352 KB
testcase_16 AC 294 ms
56,072 KB
testcase_17 AC 296 ms
56,300 KB
testcase_18 AC 287 ms
56,284 KB
testcase_19 AC 285 ms
56,184 KB
testcase_20 AC 285 ms
56,280 KB
testcase_21 AC 289 ms
56,296 KB
testcase_22 AC 289 ms
56,352 KB
testcase_23 AC 279 ms
56,340 KB
testcase_24 AC 274 ms
108,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.optimize import bisect
import numpy as np


def f(x):
    return x ** 2 - p - q * x * np.log2(x)


p, q = map(int, input().split())
print(bisect(f, 1, 10 ** 15))
0