| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 5 | 0 | 0 | 0.000% |
Zbox found an antique electronic painting board in a garbage dump. He discovered that it miraculously works! As the board is old-fashioned, Zbox can only paint with black and white colors on it.
Now Zbox tries to manipulate this painting board to draw some cool stuff.
This drawing board is completely white at the beginning, and supports the "Inverse Color" operation on a selected circle. In the $i$-th operation, Zbox specifies a circle with a radius of $r_i$ centered at coordinates $(x_i, y_i)$, and applies the "Inverse Color" tool. After the operation, the black part of this circle becomes white, and the white part becomes black.
For some reason, Zbox is concerned about the area of the black part of this painting board at each moment.
Zbox is nice! In order to avoid considering some corner cases, his operations guarantee some properties. See data range below for details.
The first line contains an integer $q$ indicating the total number of operations ($1 \leq q \leq 1000$).
Each of the next $q$ lines contains three real numbers $x$, $y$, and $r$, where $(x, y)$ is the center of the $i$-th circle selected for the "Inverse Color" operation, and $r$ is its radius.
The data range for all data points guarantees that:
After each operation, print the total area of the black parts of the board. The answer will be considered correct if the absolute or relative error between the output and the standard answer is at most $10^{-6}$.
5 0 0 11 26 0 11 52 0 11 13 -11 11 39 -11 11
380.132711 760.265422 1140.398133 1331.290110 1522.182087