CIRU2
题号:NC234827
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 1024 M,其他语言2048 M
64bit IO Format: %lld

题目描述

You are given N different circles , while some region may be covered more than once.

If one region is covered by K times, then it was called a "K- Region".

So, you are expected to output the area of all the regions! (K from 1 to N)

输入描述:

The first line is one integer n indicates the number of the circles. (1 <= n <= 1000)

Then follows n lines every line has three integers

Xi Yi Ri

indicates the coordinate of the center of the circle, and the radius. (|Xi|. |Yi|  <= 1000, 0 < Ri <= 1000)

输出描述:

Output N lines, the i-th line output

[i] = area_of_i_region

here the area must round to  3 digits after decimal point.

示例1

输入

复制
3
0 0 1
1 0 1
1 1 1

输出

复制
[1] = 4.699
[2] = 1.699
[3] = 0.443