Блог пользователя red_coder

Автор red_coder, 12 лет назад, По-английски

Can anyone pls explain me in detail how to solve Problem C and Problem D of CF round 138 Div 2. I tried hard to understand from the editorial but they have simply given some hint in two or three lines and i am not able to understand the logic and thus need some very good explanation.....

  • Проголосовать: нравится
  • -10
  • Проголосовать: не нравится

»
12 лет назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

For C, take a look at this very nice code. Might help you understand better.

»
12 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

I don't think you're trying to understand it. I myself read the editorial and then this code, I digested the logic pretty well.