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

Автор IceKnight1093, 4 месяца назад, По-английски

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!

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

»
4 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

orz IceKnight1093

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

»
4 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Contest starts in 30 minutes.

»
4 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How to solve Minimize Distinct ?

  • »
    »
    4 месяца назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    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.