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

Why wa on test #7?
[code deleted]

Edited by moderator 24.11.2019 23:22
Re: Why wa on test #7?
Posted by Sridhar 27 Aug 2004 20:45
>> cross:=x1*y2-x2*y1;

x1*y2 could exceed the int range!  Better do y2/x2-y1/x2 (of course type cast this to double)