f332. 貝瑞的鐵線體積
Tags :
Accepted rate : 23人/25人 ( 92% ) [非即時]

Content

My name is Barry Allen,and I am the fastest manalive.
To the outside world, I'm an ordinary forensic scientist,
but secretly, with the help of my friends at S.T.A.R. Labs,
I fight crime and find other meta-humans like me.
I hunted down the man who killed my mother, but in doing so,
I opened up our world to new threats.
And I am the only one fast enough to stop them.

I am The Flash!
----------<閃電俠>貝瑞·艾倫

-----------------------------------------------------------------------------------------------------

Input

• $\color{black}{1≤t≤100}\$
• $\color{black}{0≤n≤5}\$
• $\color{black}{-10≤係數≤10,係數∈Z,最高係數≠0}\$
• $\color{black}{-10≤a<b≤10;\ a,b∈Z}\$
Output

Sample Input #1
3
0
1
-4 -2
0
9
-1 4
0
3
-3 10

Sample Output #1
6.28
1272.35
367.57

Sample Input #2
3
1
-5 -4
9 10
1
-10 2
-10 5
1
-8 0
-4 4

Sample Output #2
8338.83
122710.61
8578.64

Sample Input #3
3
5
-8 0 -8 0 -6 7
4 5
2
2 8 3
0 1
3
5 8 4 9
-10 -1

Sample Output #3
895239610.20
210.91
75795399.04


Hint ：

------------

$\color{black}{ 5\%：n=0}\$
$\color{black}{ 10\%：n=1}\$
$\color{black}{ 85\%：無特別限制}\$

Tags:

[管理者： becaido (Caido) ]

 ID User Problem Subject Hit Post Date 30577 fire5386 (becaidorz) f332 307 2022-05-30 11:03