結果

問題 No.1042 愚直大学
ユーザー maspymaspy
提出日時 2020-05-01 22:52:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 268 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 56,600 KB
最終ジャッジ日時 2023-08-26 15:34:57
合計ジャッジ時間 8,115 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 262 ms
56,368 KB
testcase_01 AC 260 ms
56,252 KB
testcase_02 AC 257 ms
56,568 KB
testcase_03 AC 259 ms
56,208 KB
testcase_04 AC 266 ms
56,344 KB
testcase_05 AC 263 ms
56,232 KB
testcase_06 AC 268 ms
56,256 KB
testcase_07 AC 260 ms
56,224 KB
testcase_08 AC 265 ms
56,476 KB
testcase_09 AC 263 ms
56,336 KB
testcase_10 AC 261 ms
56,516 KB
testcase_11 AC 260 ms
56,280 KB
testcase_12 AC 262 ms
56,220 KB
testcase_13 AC 262 ms
56,236 KB
testcase_14 AC 260 ms
56,548 KB
testcase_15 AC 267 ms
56,432 KB
testcase_16 AC 263 ms
56,312 KB
testcase_17 AC 267 ms
56,524 KB
testcase_18 AC 263 ms
56,256 KB
testcase_19 AC 266 ms
56,260 KB
testcase_20 AC 263 ms
56,400 KB
testcase_21 AC 261 ms
56,364 KB
testcase_22 AC 262 ms
56,600 KB
testcase_23 AC 258 ms
56,292 KB
testcase_24 AC 259 ms
56,172 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,1e20,maxiter=999))
0