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 1581. Teamwork

Anybody know what the 4-th test is?Please give me some tests!Thank!
Posted by CHIDEMYAN SERGEY 16 Oct 2007 02:16
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
Posted by jagatsastry 16 Oct 2007 22:59
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:
Posted by CHIDEMYAN SERGEY 17 Oct 2007 18:26
[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:
Posted by Romko [Lviv NU] 19 Oct 2007 02:07
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:
Posted by CHIDEMYAN SERGEY 21 Oct 2007 18:43
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:
Posted by Freezing Sun 4 Mar 2009 19:13
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:
Posted by yaho0o0 7 Apr 2009 20:51
you count all 1 and because of these it output 5 1.
Re: I think more easy.Here is my source:
Posted by yaho0o0 7 Apr 2009 21:04
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:
Posted by Jumabek_Alihonov 16 Sep 2011 16:49
thank you Romko[lviv NU]