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?
Posted by Tabledott 19 Jun 2006 12:37
Here is my code:

[code deleted]

Edited by moderator 23.06.2006 17:17
Re: Why WA on Test 7?
Posted by Burunduk1 20 Jun 2006 13:05
Use type __int64 in the function "znak":

__int64 znak(point a,point b,point c)
{
return (__int64)(a.y-b.y)*c.x+(__int64)(b.x-a.x)*c.y+((__int64)a.x*b.y-(__int64)b.x*a.y);
}

And you'll get AC ;)
Re: Why WA on Test 7?
Posted by Tabledott 20 Jun 2006 14:53
Yup, you`re right, 10x very much for your help, because me and one of my friends spent so much time in unsuccessful debugging  :), anyway I got accepted now, btw keep going the same way in Topcoder High School SRM's :)
Re: Why WA on Test 7?
Posted by Burunduk1 20 Jun 2006 18:41
>> keep going the same way in Topcoder High School SRM's :)

:)
I would like to keep...
But by the rules I'm already not able to participate (I complete school in this year).
So yeasterday it was the last one.
Re: Why WA on Test 7?
Posted by Tabledott 20 Jun 2006 22:04
Well, in this case the battle for the top spot will be more intriguing :)
You might fight for the top here despite age and education (-)
Posted by Dmitry 'Diman_YES' Kovalioff 20 Jun 2006 23:04
Re: You might fight for the top here despite age and education (-)
Posted by Tabledott 21 Jun 2006 00:09
Yup, but if you don't have the opportunity to get good education your chances decrease :)
I have two higher educations, but... (+)
Posted by Dmitry 'Diman_YES' Kovalioff 21 Jun 2006 00:27
All the knowledge and skills which raised me into the Top of Timus Online Judge have (almost) nothing to do with what the university gave me. I studied everything I need myself :)
Re: I have two higher educations, but... (+)
Posted by Tabledott 21 Jun 2006 00:47
Well, I've just finished High School so I hope I'll have time to get better :)
Btw, it seems at last you solved 1394, I just want to express my admiration to the fact that you didn't gave it up :)

Edited by author 21.06.2006 00:47
Thank you for your admiration ;) (+)
Posted by Dmitry 'Diman_YES' Kovalioff 21 Jun 2006 02:01
As for 1394, Vladimir Yakovlev will try to defeat my solution with new tests soon. I think he could succeed. But I also suppose Safe Bird's and N.M.Hieu (DHSP)'s solutions might be beaten as well.