4337326 2006-02-15 08:15:39 Accepted 0.352 448 28565 C++ 10209 - Is This Integration ?
~cpp
#include <iostream>
#include <math.h>
using namespace std;
double pie = 3.141592653589793238462643383279 , a, b, c, d;
int main()
{
cout.setf(ios::fixed, ios::floatfield);
cout.setf(ios::showpoint);
cout.precision(3);
double temp;
d = pie/12 - 1.0/4.0;
b = 4.0*(sqrt(3)/4.0*(2.0-2.0*sqrt(0.75)) + d);
c = 4.0*(1.0*(1.0-sqrt(0.75))/2.0 - 2.0*d);
a = 1 - b - c;
while(cin >> temp)
{
temp = temp*temp;
cout << temp*a << " " << temp*b << " " << temp*c << endl;
}
return 0;
}