|  | 
|  | 
| back to board | In test #13 more than two point belong to same line Posted by maxx  8 Oct 2005 15:45It's 1-st point and two others.Re: In test #13 more than two point belong to same line thank you!I choose 1st point and another point:
 Part of my code:
 //........
 if     ( A*p[j].x + B*p[j].y >= C ) ++up;//if use A*p[j].x + B*p[j].y > C => WA13
 else if( A*p[j].x + B*p[j].y < C ) ++down;
 //........
 if(up==down){
 printf( "1 %hd\n", ++i );
 return 0;
 }
 | 
 | 
|