SriniV's blog

By SriniV, history, 3 years ago, In English

Here is the problem: 1793D - Московские гориллы
and my submission: 210771147

After taking a peek at the editorial, it looks like pretty much the same thing they are saying so I am not sure what I am missing at the moment.

A quick summary of my logic:

Logic
  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
3 years ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Implementation bug:

cL = min(l , cL);
r = max(r , cR);

should be

cL = min(l , cL);
cR = max(r , cR);