// Run time: 0.200
#include <stdio.h>
#include <math.h>
#define EPS pow(10, -11)
#define m sqrt(7)
#define n sqrt(3)
int main()
{
double length;
while (scanf("%lf", &length) != EOF)
{
printf("%.10lf ", length*n/2+EPS);
printf("%.10lf ", length*(2*n-3)+EPS);
printf("%.10lf ", length*(n/4)+EPS);
printf("%.10lf\n", length*(0.6*m-0.7*n)+EPS);
}
return 0;
}
沒有留言:
張貼留言