結果
| 問題 | No.1132 凸凹 |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-03-01 07:08:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| + 954µs | |
| コード長 | 541 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-25 07:23:41 |
| 合計ジャッジ時間 | 3,532 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
a,b,c,d,p,q = MI()
M = -10**10
m = 10**10
XM = p
Xm = p
for i in range(p, q+1):
h = a*i**3 + b*i**2 + c*i + d
if h > M:
XM = i
M = h
if h < m:
Xm = i
m = h
print(M, XM, m, Xm)
r_ishida