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

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

Hello Codeforces,

HackerEarth November Easy '17 will start at 10 pm IST on 1st November, 2017. The duration of the contest is 3 hours.

You will be given 5 algorithmic problems of various difficulty levels. All problems will have partial scoring. You'll get points for each test case passed. Don't hesitate in scoring partial points in order to score as many points as possible if you want to get to the top.

Problems were prepared by AlexandruValeanu. They have been thoroughly tested by MazzForces, rhezo and I_Love_Tina. Thanks to MazzForces who helped in preparation of the contest and making the contest in a good shape.

Prizes : Programmers with a HackerEarth rating of 1600 or less before the challenge starts will be eligible for prizes and t-shirts.

First prize: $100 Amazon gift card

First runners up: $75 Amazon gift card

Second runners up: $50 Amazon gift card.

Good luck and have fun!

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

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

I'm glad to see that there is finally a formal definition of "beginners" regarding eligibility for prizes :)

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

Unfortunately it clashes with CSAcademy round :/

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

How to solve D?

  • »
    »
    7 лет назад, # ^ |
    Rev. 3   Проголосовать: нравится +5 Проголосовать: не нравится

    I used a map to keep track of starting index from which the subarray formed till current index has all unique values.I kept a Binary Indexed Tree for finding out the answer and now if the valid subarray length is x then I added 1 to the range [1,x]. While finding out answer I did Query(r)-Query(l-1).

    I have used range query range update for this.

    This is the AC solution : https://ideone.com/GdcBzO

    Ask if u have any doubts.

    Happy Coding :)

»
7 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Deleted

Confused blog with CSAcademy's contest

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

I am quite surprised that there are prizes for a beginner contest, wouldn't this encourage people smurfing?

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

How to solve B ?