CaptainUknown's blog

By CaptainUknown, history, 3 years ago, In English

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.

  • Vote: I like it
  • +68
  • Vote: I do not like it

| Write comment?
»
3 years ago, hide # |
 
Vote: I like it +31 Vote: I do not like it
»
3 years ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

Everyone do take part

»
3 years ago, hide # |
 
Vote: I like it +16 Vote: I do not like it

Can non-Indian win prize?

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Number of questions and difficulty is like div 2 ??

»
3 years ago, hide # |
Rev. 2  
Vote: I like it +14 Vote: I do not like it

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

»
3 years ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

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

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Where will the contest link be available?

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

is in sorted order?

»
2 years ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

F was a bit standard i guess :)

»
2 years ago, hide # |
 
Vote: I like it +21 Vote: I do not like it

Question G1 on AtCoder would be like:

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

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Does the solution of G2 involve convolution?

»
2 years ago, hide # |
 
Vote: I like it +16 Vote: I do not like it

G1 and G2 here

»
2 years ago, hide # |
Rev. 3  
Vote: I like it 0 Vote: I do not like it

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?..

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

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

    • »
      »
      »
      2 years ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      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

»
2 years ago, hide # |
Rev. 3  
Vote: I like it +11 Vote: I do not like it

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?

»
2 years ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

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
»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

was E a dp problem?

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Has anyone passed $$$O(N^2 \cdot M^2 \cdot (N + M))$$$ in 105039E - Gems in Stones?

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Yes

    • »
      »
      »
      2 years ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      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.

      • »
        »
        »
        »
        2 years ago, hide # ^ |
         
        Vote: I like it 0 Vote: I do not like it

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

      • »
        »
        »
        »
        2 years ago, hide # ^ |
         
        Vote: I like it 0 Vote: I do not like it
        Spoiler
»
2 years ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Please upload editorial

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

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

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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