結果

問題 No.1042 愚直大学
ユーザー strangerxxxstrangerxxx
提出日時 2021-02-03 12:04:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 329 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 56,548 KB
最終ジャッジ日時 2023-09-12 11:48:59
合計ジャッジ時間 9,979 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 329 ms
56,296 KB
testcase_01 AC 294 ms
56,480 KB
testcase_02 AC 294 ms
56,372 KB
testcase_03 AC 297 ms
56,188 KB
testcase_04 AC 297 ms
56,164 KB
testcase_05 AC 299 ms
56,520 KB
testcase_06 AC 296 ms
56,244 KB
testcase_07 AC 296 ms
56,176 KB
testcase_08 AC 301 ms
56,300 KB
testcase_09 AC 304 ms
56,244 KB
testcase_10 AC 305 ms
56,352 KB
testcase_11 AC 312 ms
56,216 KB
testcase_12 AC 303 ms
56,472 KB
testcase_13 AC 304 ms
56,360 KB
testcase_14 AC 306 ms
56,360 KB
testcase_15 AC 299 ms
56,420 KB
testcase_16 AC 302 ms
56,252 KB
testcase_17 AC 299 ms
56,368 KB
testcase_18 AC 293 ms
56,452 KB
testcase_19 AC 293 ms
56,212 KB
testcase_20 AC 293 ms
56,404 KB
testcase_21 AC 291 ms
56,232 KB
testcase_22 AC 292 ms
56,448 KB
testcase_23 AC 301 ms
56,464 KB
testcase_24 AC 295 ms
56,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.optimize import bisect
import numpy as np
def f(x):
    return x ** 2 - q * x * np.log2(x) - p
p, q = map(int, input().split())
print(bisect(f, 1, 10 ** 15))
0