結果

問題 No.1042 愚直大学
ユーザー maspymaspy
提出日時 2020-05-01 22:50:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 160 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 10,504 KB
実行使用メモリ 56,576 KB
最終ジャッジ日時 2023-08-26 15:33:22
合計ジャッジ時間 8,890 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 263 ms
56,432 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 271 ms
56,308 KB
testcase_05 AC 273 ms
56,480 KB
testcase_06 AC 258 ms
56,336 KB
testcase_07 AC 267 ms
56,332 KB
testcase_08 AC 261 ms
56,444 KB
testcase_09 AC 267 ms
56,416 KB
testcase_10 AC 266 ms
56,400 KB
testcase_11 AC 269 ms
56,336 KB
testcase_12 AC 275 ms
56,504 KB
testcase_13 AC 271 ms
56,248 KB
testcase_14 AC 270 ms
56,264 KB
testcase_15 AC 260 ms
56,256 KB
testcase_16 AC 264 ms
56,332 KB
testcase_17 AC 261 ms
56,240 KB
testcase_18 AC 274 ms
56,436 KB
testcase_19 AC 269 ms
56,260 KB
testcase_20 AC 268 ms
56,408 KB
testcase_21 AC 267 ms
56,576 KB
testcase_22 AC 267 ms
56,264 KB
testcase_23 AC 262 ms
56,448 KB
testcase_24 AC 262 ms
56,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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