|
|
back to boardI think my algo correct,but wa#4.Please give me 4-th test(if you know) or some interesting tests.Thank!!! Edited by author 16.10.2007 02:18 Edited by author 16.10.2007 13:35 Edited by author 17.10.2007 18:31 I wrote the same program twice- once using the stl map and once using ordinary int array. Dont know what the 4th test case is. [code deleted] Please, give me test,which on my program gives WA.Thank! Edited by author 17.10.2007 18:30 Edited by author 21.10.2007 18:43 First time I've got WA#4 becouse of this test: 6 1 1 2 1 1 1 ans : 2 1 1 2 3 1 Thank you very much!!! Are U crazy guys? Algo is obvious - what a f..in data structures? Well, I've tried both answers for the test 6 1 1 2 1 1 1 (2 1 1 2 3 1, 5 1 1 2) but I still get WA#4 Does anyone know why is this so. Thanks in advance. you count all 1 and because of these it output 5 1. you count all 1 and because of these it output 5 1 Edited by author 07.04.2009 21:13 |
|
|