CodeDrills will be hosting CodeDrills Beta Contest #2 on Sunday, 29th November, 2020 7:00 PM — 8:30 PM IST.

There will be 3 problems to be solved in 1.5 hours. The difficulty level will be similar to a Div 3 contest.

**Prizes**: An Amazon gift card of **INR 1000** (or equivalent gift card amount for non-Indian currency) will be awarded to 2 randomly selected participants from among all participants who have a non-zero score.

- More details, including scoring method, can be viewed here
- You can check our past contests
- Check our competitive programming problems and practice here

Why are you giving prizes to random participants, why not the best 2 competitors?

Since the platform is relatively new, there is a possibility of issues affecting the ranks. Hence the random prize.

After a few more beta contest, we will consider keeping for top contestants.

That makes sense, looking forward to the round :)

Great!

Reminder — The contest starts soon!

didn't get the problem 2...how can answer be -1?

Hi its possible when population at all cities are 0. We wont be able to make them unique as sum will always be 0. So in that case, we can never make them unique.

damn..wasting my full time finding how can the answer be -1..btw thnx

The contest has ended. Editorials for all problems are available now.

In task "Country e-score", what is the answer for N = 1 and no one lives in city 1? Solutions posted in editorial print -1, but I think answer should be 0.

Thanks for bringing this up.

You are correct, for N = 1 and population 0, answer should be 0. We will fix the setter and tester solution soon to reflect this.

We did not have this test, though we had N = 1 with non-zero population. So, fortunately no rejudge needed. We will keep in mind to add all the edge cases in future problems.

It would be great if we have email notifications for upcoming contests.

Sure, we do send emails about upcoming contests to all registered users.

Cool. Looking forward to future contests.

who are the random winners of the round

The random winners have been published.