|
|
back to boardShow all messages Hide all messages9 test M@STeR.SoBG 27 Oct 2007 14:02 Re: 9 test 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 My program answers for this test is 10(I'm think it's right answer), but my program gives wa#8. Re: 9 test Samsonov Ivan (Rybinsk SAAT) 27 Oct 2007 20:07 in this test answer is 100 My program answer 100, but I have WA9 Edited by author 28.10.2007 20:04 Re: 9 test 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 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. Oh sorry/it's really 100. My prog. works with simple integers. And it's much more quicker than int64... |
|
|