OJ-Problems-Source/HDOJ/2134_autoAC.cpp
2016-08-22 00:08:26 +08:00

10 lines
185 B
C++

#include <stdio.h>
int main()
{
double a=0.57735026918963,b=0.81649658092773;
int r;
while(scanf("%d",&r),r)
printf("%.3f %.3f\n",a*r,b*r);
return 0;
}