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

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
jagatsastry Same Problem Here [8] // Problem 1581. Teamwork 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.
CHIDEMYAN SERGEY Re: I think more easy.Here is my source: [7] // Problem 1581. Teamwork 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
Romko [Lviv NU] Re: I think more easy.Here is my source: [6] // Problem 1581. Teamwork 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
CHIDEMYAN SERGEY Re: I think more easy.Here is my source: [1] // Problem 1581. Teamwork 21 Oct 2007 18:43
Thank you very much!!!
Are U crazy guys? Algo is obvious - what a f..in data structures?
Freezing Sun Re: I think more easy.Here is my source: [2] // Problem 1581. Teamwork 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.
yaho0o0 Re: I think more easy.Here is my source: [1] // Problem 1581. Teamwork 7 Apr 2009 20:51
you count all 1 and because of these it output 5 1.
yaho0o0 Re: I think more easy.Here is my source: // Problem 1581. Teamwork 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
Jumabek_Alihonov Re: I think more easy.Here is my source: // Problem 1581. Teamwork 16 Sep 2011 16:49
thank you Romko[lviv NU]