IceKnight1093's blog

By IceKnight1093, 4 months ago, In English

We invite you to participate in CodeChef’s Starters 236, this Wednesday, 29th April, rated for 5 stars (i.e. for users with rating < 2200).

Time: 8:00 PM — 10:00 PM IST

Joining us on the problem setting panel are:

Written editorials will be available for all on discuss.codechef.com. Pro users can find the editorials directly on the problem pages after the contest. The video editorials of the problems will be available only to Pro users.

Also, if you have some original and engaging problem ideas, and you’re interested in them being used in CodeChef's contests, you can share them here.

Hope to see you participating.
Good luck!

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

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

orz IceKnight1093

I hope Dominater069 will remove the cheaters from Div-1 this round also.

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

Contest starts in 30 minutes.

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

How to solve Minimize Distinct ?

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Every unique number less than L will stay so that count is same. For L to R each gets +1 and after R each gets -1 so notice how R we can get from R-1 or R+1 . R+1 can get from R+2 or R .

    Now go ahead you will see answer can only be total distinct count, tdc-1 or tdc-2.