結果

問題 No.1132 凸凹
ユーザー hi-akegarasuhi-akegarasu
提出日時 2020-09-28 05:08:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-09-13 17:28:07
合計ジャッジ時間 3,663 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,476 KB
testcase_01 AC 72 ms
71,436 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 70 ms
71,000 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 70 ms
71,428 KB
testcase_12 AC 69 ms
71,516 KB
testcase_13 AC 71 ms
71,428 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 70 ms
71,180 KB
testcase_17 AC 70 ms
70,992 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 71 ms
71,156 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 71 ms
71,384 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 70 ms
71,164 KB
testcase_27 AC 70 ms
71,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,p,q=map(int, input().split())
M,m,XM,xm=-10**30,10**30,-100,-100
for x in range(p,q+1):
    tmp=a*x**3+b*x**2+c*x+d
    if tmp<m:
        m=tmp
        xm=x
    elif tmp>M:
        M=tmp
        XM=x
print(M,XM,m,xm)
0