結果
問題 |
No.2970 三次関数の絶対値
|
ユーザー |
![]() |
提出日時 | 2024-12-19 06:40:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,760 KB |
最終ジャッジ日時 | 2024-12-19 06:42:03 |
合計ジャッジ時間 | 91,008 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 TLE * 21 |
ソースコード
from math import sqrt C0,C1,C2,C3=map(int,input().split()) L,R=map(int,input().split()) def f(x): return C0+C1*x+C2*x**2+C3*x**3 def absf(x): return abs(C0+C1*x+C2*x**2+C3*x**3) N=1000000 ans=10**10 for i in range(L*N,R*N+1): ans=min(ans,absf(i/N)) print(ans)