ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1207. Median on the Plane

In test #13 more than two point belong to same line
Posted by maxx 8 Oct 2005 15:45
It's 1-st point and two others.
Re: In test #13 more than two point belong to same line
Posted by IgorKoval(from Pskov) 22 Sep 2011 17:54
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;
}