adaptatron's blog

By adaptatron, 6 months ago, In English

I made a video discussing the key idea behind problem F. A Simple problem from last Codeforces round.

Video link : https://youtu.be/uKtZd7Oedcc

  • Vote: I like it
  • +16
  • Vote: I do not like it

»
6 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Much of the greedy idea just comes from the formula. You choose the max positions because the sum needs to be maximized.