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

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

Hello everyone!

We are happy to invite you to participate in the International Coding League, 2024, conducted by the students of BITS Pilani, one of the flagship events of our technical fest APOGEE.

This will be a team programming contest and the duration of the contest will be 2 hours.

Note: Contest Registration on Codeforces will start 6 hours before the contest, in the meantime you can fill out the registration form provided above.

Both rounds of the contest will be held on Codeforces, and would be in teams of 1 or 2. The prize pool for the online round is INR 17000 (5K + 3K + 2K + 7 * 1K). To be eligible for these prizes (and to participate in the next round), teams must fill the registration form.

The Top 25 teams in this round along with 15 teams from BITS Pilani would qualify to the second round, which would be held offline at BITS Pilani, Pilani campus on 6th April, 2024. The prize pool for the offline round is INR 30000 (15K + 10K + 5K).

The problem setters and testers are: CaptainUknown, AAK, SiRBruce, Lakshit_Sethi, devk27, nya and Bhaskar1702.

We hope you enjoy the contest and have fun!

Happy Coding! :)

Reminder 1 : ICL Round 1 is scheduled for 8 PM IST on 26th March 2024. Do not forget to fill out the registration form to be eligible for the prizes! Registration on Codeforces will begin 6 hours before the contest.

UPD1 : Registrations for the contest have started on Codeforces. You can make your team and register for the contest now!

UPD2 : Contest Starting in 1 Hour !

UPD3 : Contest is Live!!! All the Best!

UPD4 : Congratulations to all the winners, and thank you to all participants! We will be contacting the winners for the prizes shortly.

UPD5 : We are addressing all the issues.

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

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

Everyone do take part

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

Can non-Indian win prize?

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

Is it necessary for the team members to be from the same college or university?

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

Number of questions and difficulty is like div 2 ??

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

loved last year's ICL, really looking forward to this!

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

can't wait to take part in ICL this year too!!!

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

my friend ahmadexe is unable to actually open the contest page. I registered him as a team member on google form. What is wrong?

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

Where will the contest link be available?

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

    Contest Link is on the post, Registrations will go live on Codeforces 6 hours before the contest, meanwhile you can fill out the registration form to be eligible for the prizes!

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

is in sorted order?

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

how to c? I tried this but din't work:

conversion will start from smallest, so out target color is c[min(a)] if their are already same color as c[min(a)], we ignore it. otherwise we increase the cost. cost — k is the answer

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

    if you get it pls share i was stuck at c too similar approach

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

F was a bit standard i guess :)

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

Question G1 on AtCoder would be like:

Count number of connected labelled graphs with $$$n$$$ nodes.

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

Why this approach for C is wrong ?

Find the smallest number in array A, then find the maximum frequency of b[i] where a[i]=min element, then answer is max(0, n-freq[col[b[i]] — k)

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

Does the solution of G2 involve convolution?

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

G1 and G2 here

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

What is so special about D? I see many people couldn't do it from first try, and we also failed it.

I did - searching the best root to minimise the largest leaf depth - hanging the tree to it - for each node now, res += depth[node] / 2 * population[node]

Is the idea wrong or I just implemented it poorly?..

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

    Try this for 1-2-3 tree, the correct root to hang on is 1.

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

      Hell..

      Ok, seems legit :) I didn't think that I might take larger depth without affecting the time, but seems I can take D + 1 preserving the same time.

      Thank you

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

I just had a question regarding C problem for the test case

1

8 4

1 2 3 3 3 3 3 3

1 2 3 3 3 4 4 4

here the answer that got accepted for problem is 1, however if we look at the case where the value is 1 it is when ball with a[i]=3 and colour[i]=3, however it is not possible to colour all the balls '3' since even if i remove the balls with index=0,1,5,6 i will have a ball left with a[7]=3 and colour[7]=4, which is not colourable since a[i]<a[j] is not met. I was wondering if there is something that I am missing?

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

    I believe the test cases are made such that answer is always possible so this type of test cases won't be there

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

    this bothered me in the contest and I came up with that we should always start from first k a_i such that freq of that is maximum. I did this but I got wrong answer.

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

Can anyone please tell why my code for B gives WA on test 2 or find a countercase, i ran several stresses on my solution and it couldn't find any countercase.

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

    I just added assertions and turns out that the condition $$$e_i < s_{i+1}$$$ is giving runtime error on test 2. RIP :(

    CaptainUknown please check the testcases.

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

was E a dp problem?

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

Has anyone passed $$$O(N^2 \cdot M^2 \cdot (N + M))$$$ in [problem:105039E]?

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

    Yes

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

      How did you take care of TLE in test 16? Also, your accepted solution takes 951 ms. Either this is not the intended solution or the time limit is too tight.

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

        Yeah initially I also got tle on 16 , when you calculate prefix sum cache it also .

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

Please upload editorial

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

Please upload editorial

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

How can i solve Tree Disaster ( Problem D ) , i tried to take the mid point of the diameter but it gave WA 2 ?

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

    There could be multiple diameters and hence multiple mid-points, you need to take the one with least index

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

luckily win this as a team with only myself, is there an official scoreboard and how would you transfer the prize?