#c22507. 二次函数

二次函数

Quadratic Function

Problem Description

Compute the extremum (minimum or maximum) of the quadratic function f(x)=ax2+bx+cf(x) = ax^2 + bx + c.

Input Format

The first line contains an integer testtest, the number of test cases.

The next testtest lines each contain three integers a,b,ca, b, c.

Output Format

Output testtest lines in total, each giving the answer for one test case. A relative or absolute error within 10−910^{-9} is accepted.

Sample Input

1
1 2 1

Sample Output

0.0000000000

Constraints

For 100%100\% of the data: 1≤test≤100001 \leq test \leq 10000, 1≤a≤10001 \leq a \leq 1000, −1000≤b,c≤1000-1000 \le b, c \le 1000.