結果

問題 No.1042 愚直大学
ユーザー maspymaspy
提出日時 2020-05-01 22:51:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 318 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 56,048 KB
最終ジャッジ日時 2023-08-26 15:34:24
合計ジャッジ時間 10,172 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 315 ms
55,584 KB
testcase_01 AC 308 ms
55,820 KB
testcase_02 AC 311 ms
55,856 KB
testcase_03 AC 311 ms
55,716 KB
testcase_04 AC 311 ms
55,828 KB
testcase_05 AC 312 ms
55,544 KB
testcase_06 AC 315 ms
56,048 KB
testcase_07 AC 318 ms
55,440 KB
testcase_08 AC 316 ms
55,564 KB
testcase_09 AC 316 ms
55,844 KB
testcase_10 AC 313 ms
55,840 KB
testcase_11 AC 313 ms
55,540 KB
testcase_12 AC 313 ms
55,724 KB
testcase_13 AC 308 ms
55,788 KB
testcase_14 AC 311 ms
55,620 KB
testcase_15 AC 310 ms
55,716 KB
testcase_16 AC 308 ms
55,724 KB
testcase_17 AC 310 ms
55,900 KB
testcase_18 AC 314 ms
55,476 KB
testcase_19 AC 315 ms
55,908 KB
testcase_20 AC 309 ms
55,708 KB
testcase_21 AC 309 ms
55,580 KB
testcase_22 AC 309 ms
55,772 KB
testcase_23 AC 315 ms
55,532 KB
testcase_24 AC 309 ms
55,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.optimize import *
from math import *
P,Q=map(int,input().split())
print(newton(lambda x:x*x-Q*x*log2(x)-P,x0=1e20,maxiter=999))
0