#include<bits/stdc++.h>
#define i64 long long
#define mx(a,b,c) max(a,max(b,c))
#define mn(a,b,c) min(a,min(b,c))
#define eef else if
#define ff(i,s,e) for(int i=(s); i<e; i++)
#define ff2(i,s,e) for(int i=(s); i>=e; i--)
#define sf scanf
#define pf printf
#define dbug(x) cout<<"x = "<<x<<endl
using namespace std;
int main()
{
int cse=0,cnt=0,flg=0;
int t;
double b,c,r,h,g,n,Pi=2*acos(0.0);
scanf("%d",&t);
while(t--)
{
r=0;
scanf("%lf",&n);
r=n/5;
h=(n*6)/10;
r=Pi*r*r;
g=(n*h)-r;
printf("%.2lf %.2lfn",r,g);
}
return 0;
}
#define i64 long long
#define mx(a,b,c) max(a,max(b,c))
#define mn(a,b,c) min(a,min(b,c))
#define eef else if
#define ff(i,s,e) for(int i=(s); i<e; i++)
#define ff2(i,s,e) for(int i=(s); i>=e; i--)
#define sf scanf
#define pf printf
#define dbug(x) cout<<"x = "<<x<<endl
using namespace std;
int main()
{
int cse=0,cnt=0,flg=0;
int t;
double b,c,r,h,g,n,Pi=2*acos(0.0);
scanf("%d",&t);
while(t--)
{
r=0;
scanf("%lf",&n);
r=n/5;
h=(n*6)/10;
r=Pi*r*r;
g=(n*h)-r;
printf("%.2lf %.2lfn",r,g);
}
return 0;
}
No comments:
Post a Comment