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

Автор Balajiganapathi, история, 3 года назад, По-английски

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
  • Проголосовать: нравится
  • +38
  • Проголосовать: не нравится

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

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

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

Reminder — The contest starts soon!

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

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

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится +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.

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

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

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

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

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

    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.

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

      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.

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

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

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

who are the random winners of the round