当前位置:首页 >> 学科竞赛 >>

Curves


Curves
【题目描述】 明明做作业的时候遇到了 n 个二次函数 Si(x)= ax 函数 F(x) = max(Si(x)), i =
2

+ bx + c,他突发奇想设计了一个新的

1...n.
明明现在想求这个函数在[0,1000]的最小值,要求精确到小数点后四位四舍五入。

【输入数据】 输入包含 T 组数据 (T < 10),每组第一行一个整数 n(n ≤ 10000),之后 n 行,每行 3 个整 数 a (0 ≤ a ≤ 100), b (|b| ≤ 5000), c (|c| ≤ 5000),用来表示每个二次函数的 3 个系 数,注意二次函数有可能退化成一次。

【输出数据】 每组数据一个输出,表示新函数 F(x)的在区间[0,1000]上的最小值。精确到小数点后四 位,四舍五入。

【样例输入】 2

1 200 2 200 2 -4 2

【样例输出】 0.0000 0.5000

【数据范围】

T < 10, n ≤ 10000,0 ≤ a ≤ 100,|b| ≤ 5000, |c| ≤ 5000
前 50%数据 n ≤ 100


相关文章:
The demand curves faced by monopolistic competitors is:()...
The demand curves faced by monopolistic competitors is:() A. inelastic due to the availability of many complementary goods. B. elastic due to the ...
金融市场试卷
Answer: C 10) According to the expectations theory of the term structure, A) yield curves should be equally likely to slope downward as to slope ...
半期考试 答案详解
Her indifference curves are described by the formula y =k/(x + 7). Higher values of k correspond to better indifference curves. Which of the ...
no curves
no curves_英语学习_外语学习_教育专区。NO CURVES. “We believe in Angles and Straight lines.” Known for his unique geometric style characterNO...
颜色校正曲线 Color Correction Curves
颜色校正曲线 Color Correction Curves_互联网_IT/计算机_专业资料。色彩校正曲线使用曲线调整每一个颜色通道。基于"深度"的调整允许我们根据摄像机与目标物的像素距离...
6.Cooling Curves(冷却曲线)
Cooling Curves (冷却曲线) Fig shows the effect of cooling rate on the formation of different reaction products, e.g., pearlite, bainite and austenite. ...
公路线形设计及SBS改性沥青配合比设计及施工技术的探讨...
Sudden changes from flat to sharp curves and long tangents followed by sharp curves must be avoided; otherwise, accident hazards will be created. Likewise...
调色基础——Curves(曲线)
调色基础——Curves(曲线) ——Curves [AE] AE 调色基础——Curves(曲线) 曲线, Curves, 基础, 调色很多人都在追求插件 预置 工程 可很多人往往连这些最基本...
Moving down the hills and around the curves, the __...
Moving down the hills and around the curves, the ___ of cars was not able to proceed faster than twenty miles an hour. A.possessionB.procession...
Drager呼吸机机械通气中的曲线与环
Huanghua, Engineer Medical Engineering Department, The 309th Hospital of PLA, Beijing 3 Curves and Loops in Mechanical Ventilation 当压力、流速和容量同时显示...
更多相关标签: