https://www.luogu.com.cn/problem/P4326
代码:
#include <bits/stdc++.h>
using namespace std;
#if 1
#define MAXN 20480
long long a[MAXN];
#endif // 0
int main()
{
int r;
cin>>r;
printf("%0.6f\n",r*r*M_PI);
cout<<r*r*2<<".000000"<<endl;
return 0;
}