|
|
back to boardWhat is 9th test??? 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. in this test answer is 100 My program answer 100, but I have WA9 Edited by author 28.10.2007 20:04 8 0 10 0 20 10 20 100 20 0 30 0 99 0 100 0 0 Answer 969 Yes, 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... |
|
|