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 1588. Jamaica

9 test
Posted by M@STeR.SoBG 27 Oct 2007 14:02
What is 9th test???
Re: 9 test
Posted by Samsonov Ivan (Rybinsk SAAT) 27 Oct 2007 19:13
6
0 10
0 20
0 30
0 99
0 100
0 0
This simple test help me with test 9
Re: 9 test
Posted by CHIDEMYAN SERGEY 27 Oct 2007 19:57
My program answers for this test is 10(I'm think it's right answer),
but my program gives wa#8.
Re: 9 test
Posted by Samsonov Ivan (Rybinsk SAAT) 27 Oct 2007 20:07
in this test answer is 100
Re: 9 test
Posted by Oleg_apx[MAI-5] 27 Oct 2007 20:21
My program answer 100, but I have WA9

Edited by author 28.10.2007 20:04
Re: 9 test
Posted by Samsonov Ivan (Rybinsk SAAT) 27 Oct 2007 22:00
8
0 10
0 20
10 20
100 20
0 30
0 99
0 100
0 0

Answer 969
Re: 9 test
Posted by Oleg_apx[MAI-5] 27 Oct 2007 22:02
Yes, 969
Re: 9 test
Posted by svr 27 Oct 2007 22:08
The problem needs not many tests because of simple logic.
Each pair of  vertex must be connected with line
therefore O(n^3) loop : (i,j,k), but with __int64
veryfication of belonging to some line.
Re: 9 test
Posted by CHIDEMYAN SERGEY 27 Oct 2007 22:24
Oh sorry/it's really 100.
Re: 9 test
Posted by Vedernikoff Sergey 28 Oct 2007 03:53
My prog. works with simple integers. And it's much more quicker than int64...