Intersection of Parabolas
Time limit1sMemory limit256 MB
Find the area of the region bounded by the parabolas y=(x-a)^2 and x=(y-a)^2, given a up to 10^18, printed to exactly 10 decimals.
- Level
Medium6 of 10
- Topics
- Math, Geometry, Binary search, Implementation
- Solved
- No attempts yet
Problem
Find the area of the region bounded by the two parabolas and .
Input
The first line contains a single integer ().
Output
Print the answer with exactly digits after the decimal point, using the standard rounding rules.