417. Heavy Disc
Time limit per test: 0.5
Memory limit: 262144
Consider a heavy disc on the plane, centered at (x0
) with radius r
, with the origin strictly outside it. The density of the disc is given by formula
What is the mass of the disc?
The input file contains three integer numbers x0
(-100 ≤ x0
≤ 100, 1 ≤ r
≤ 100, x02
Output one real number — the mass of the disc. Your answer will be considered correct if it is within 10-12
relative error of the exact answer.
3 4 2