minhduc wrote:
QUOTE:
My solution doesn't need any special processing for duplicates.
Anyway, it's a little trick. Sometimes you have to pay attention to the problem description.
My all previous methods assumed that the numbers are different, and as you can see on my stat table all of them scored 0, because these are totally broken for same numbers. But I've modified it to work correctly for duplicates, it was not a large effort, changed about 5 lines in my code.
You can see that among the top 20 contestants 4 of them scored 0, but previous rounds this happened only once. I think that those programs are good for no duplicates. I don't see reason posting (almost) broken problems, in all tetscases there are duplicates but not in the sample input and it is not noted in the text. And there are lots of trailing spaces both in sample input and output, I haven't asked this because my code was AC for it, but it was quite annoying, knowing that for example in acm uva you can get very easily WA if you don't print the required number of spaces/blank lines.