A Bite of Teyvat
题号:NC230850
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
Special Judge, 64bit IO Format: %lld

题目描述

Xiangling, one of the greatest chef in Teyvat, is preparing for the Moonchase banquet. Xiangling has bought n round plates and her friend and companion Guoba will help place these n plates on the table in a line. The i-th plate placed has radius r_i and the center of this plate locates at (x_i, 0) on the table.

However, Paimon the emergency food has been tired of waiting for the banquet a long time and begins finding the total area covered by the plates on the table after each placement.


Pixiv ID: 93526437

输入描述:

The first line contains an integer n , indicating the number of plates Xiangling has bought.

Then follow n lines, the i-th of which contains two integers x_i and r_i , indicating that the i-th plate placed by Guoba has radius r_i and the center of this plate locates at (x_i, 0) on the table.

输出描述:

Output n lines, the i-th of which contains a real number, indicating the total area covered by the plates on the table after Guoba places the first i-th plates.

Your answer is acceptable if its absolute or relative error does not exceed . Formally speaking, suppose that your output is x and the jury's answer is y, your output is accepted if and only if .
示例1

输入

复制
4
0 1
2 1
3 1
1 1

输出

复制
3.141592653589793
6.283185307179586
8.196408262160623
8.881261518532902

说明

In the sample case:
1.The total area covered by the first plate is \pi;

2.The total area covered by the first two plates is 2\pi;

3.The total area covered by the first three plates is \frac{14\pi+3\sqrt{3}}{6};

4.The total area covered by all the four plates is \frac{4\pi+3\sqrt{3}}{2}.