Hello everyone,
Can someone please take his/her time to explain how to solve the problem Bugs in Code. All what I have come up with is an O(n2logn) solution which is too bad.
Update: I have already seen the editorial but I couldn't understanding it.
Update2: I got it accepted.
I'd advise you to open the problem again and look at the "Contest materials" section.
Don't be like that, please. You're not the smartest one here. Most of your comments are really irritative. You're not as cool as you probably feel yourself.
Again I need to defend myself...
First, I'm pretty sure that the author didn't read the tutorial (because he didn't look around to find it).
Also, the author doesn't even explain his solution. I see it as if he doesn't want to help those who may try to help him.
Also, in this case it's obviously not a good way to create a new blog post to ask about the solution — it'd be much better to post a comment to the tutorial. Other people may have the same questions, and they'll be able to read the answer and not to ask these questions again.
Summary: the author behaves very egoistically, and I'm not sure if his behaviour is in any sense better than mine.
Hey, I'm not trying to offend you.
The only thing I want to say is... Let us keep a friendly atmosphere in here.
Yes, sometimes there are some people which post stupid things like "Hey, people, today is Independence day in my country/My grandma's birthday/My brother's birthday, so I wish good luck to all [some adjective] coders!" and it's really annoying. But here magieNoire is just asking for help on a problem. Even if he isn't doing it in a best way, it isn't a reason to be rude with him.
C'mon, man :)
Thanks, J4T8Z9. AlexanderBolshakov I am not that stupid not to look at the editorial first. I didn't understand the editorialists's solution that's why I made such a post.
My code here: http://mirror.codeforces.com/contest/421/submission/7409128
has some good variable names for learning, if I do say so myself.
And I also would be happy if there was a friendly atmosphere here.
But it can't be so right now. There're lots of reasons, but the main one is the voting system (very awful one!). It encourages people to write "funny" jokes, but discourages them from discussion about interesting things that can't be understood by everybody (I was heavily downvoted for constructive discussion about explanation of the LZ77 algorithm to newbies).
And you are now discouraging magieNoire from asking questions
You know, CF is not anyone's personal army. Pretty much every serious forum expects that whoever's asking for help should
check if the answer isn't somewhere on the site already (for example, read the editorial and comments for the round and editorial)
provide enough information to help efficiently (for example, say that he did look at the editorial)
These things save a lot of time.