結果

問題 No.1132 凸凹
ユーザー hi-akegarasu
提出日時 2020-09-28 05:08:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 81,968 KB
実行使用メモリ 54,160 KB
最終ジャッジ日時 2024-07-01 02:09:53
合計ジャッジ時間 2,245 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10 WA * 16
権限があれば一括ダウンロードができます

ソースコード

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