-0.00 lines circles
Posted: Thu Dec 27, 2007 10:18 am
thanks to little joey for -0.00 case.
it can be handled like this
in C.
Circles and Lines were enough (in my AC code-position 2(may be for new judge)) .
it can be handled like this
Code: Select all
void print(double a, double b)
{
if(a<0.005 && a>-0.005) a=0;
if(b<0.005 && b>-0.005) b=0;
printf("%.2lf %.2lf\n",a,b);
}
Circles and Lines were enough (in my AC code-position 2(may be for new judge)) .