#include<bits/stdc++.h>
using namespace std;
const int N = 110;
double r[N];
int n;
double res=0;
int main()
{
cin >> n;
for (int i = 1; i <= n; i ++ )cin>>r[i];
sort(r+1,r+n+1);
for (int i = n; i >=1; i-=2)
res+=(acos(-1)*(r[i]*r[i]-r[i-1]*r[i-1]));
printf("%.6lf\n",res);
return 0;
}
兄弟有时间填个邀请码hhhhhhhhh(可以得AC币,邀请码在学生认证那填) 我的邀请码是:GUDFH
?????????? 哪
学生认证那