Wrong Answer for MAXCOUNT

[link text][1]

Getting wrong answer even though its giving right answer for different test cases which I did!
Please tell me where m going wrong!?
http://www.codechef.com/viewsolution/2506686

try this case…

Input:-

1
4
1000 1000 1000 1000

Output that ur code generates…

Output:-

10 1

hope this helps…:slight_smile:

Thank you!
This really helps :slight_smile:

glad could help…:slight_smile:

http://www.codechef.com/viewsolution/2506686

tried this out!
getting output correct for above case!
but its not accepting the answer…

//