Anybody know what the 4-th test is?Please give me some tests!Thank!
I 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
Same Problem Here
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.
Re: I think more easy.Here is my source:
[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
Re: I think more easy.Here is my source:
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
Re: I think more easy.Here is my source:
Thank you very much!!!
Re: I think more easy.Here is my source:
Posted by
PSV 15 Nov 2007 03:19
Are U crazy guys? Algo is obvious - what a f..in data structures?
Re: I think more easy.Here is my source:
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.
Re: I think more easy.Here is my source:
you count all 1 and because of these it output 5 1.
Re: I think more easy.Here is my source:
you count all 1 and because of these it output 5 1
Edited by author 07.04.2009 21:13
Re: I think more easy.Here is my source:
thank you Romko[lviv NU]