练习专区

今天的一小步就是明天的一大步
Problem 2042 扫地机器人
Accepted: 0   Total Submit: 0
Time Limit: 1000ms   Memory Limit: 30720KB
Description

扫地机器人一边旋转、一边前进地扫地。扫地的半径为r,从A直线地扫到B,扫过的面积是多少?

image.png

Input

有多个案例,每个案例一行,每行5个数半径r及A、B两点的坐标。


Output

输出扫过的面积,结果保留2位小数。


Sample Input
1 0 0 2 0
2 2 0 5 0
1 1 1 2 2
Sample Output
7.14
24.57
5.97
Hint
提交     返回