18o3's blog

By 18o3, history, 3 years ago, In English

This year there will be two separate online qualifier rounds for the two regionals.

The contest for Mathura is from 2pm to 4pm IST on 18th March 2023. Link
The contest for Amritapuri site is from 8pm to 10pm IST on 18th March 2023. Link

Let's use this blog to discuss the rounds after they end.

Hope to see you all on the leaderboard.

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

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

Best of Luck everyone!

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

Kanpur Mathura prelims has to be the worst ICPC contest, probably ever. Imagine setting 4 problems for a team of 3, and so easy that all of them could easily be solved in $$$\lt$$$ 20 minutes total. And then to add icing on the cake the penalty for a single wrong submission is 20 minutes as well

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

Was this ICPC qualifier or leetcode contest? 0_0

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

speedforces

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

Can anybody tell why this got TLE?

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

If you take 10 lakh rupees as cumulative fees for just the prelims, it is just downright shameful coming up with such a problemset. Probably should reassess whether your priority is advancement of CP or just a pitiful money grab

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

Refund.

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

Can someone please tell me why this got TLE ?

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

How to make a 1600 rated problem 1800.

Give input in floating points.

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

    More like 1200 into 1400 but yeah, that was so annoying (:

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

Speedforces af.

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

worst contest I have seen

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

Preparing for ICPC prelims:

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

Can anyone give a testcase that fails this code for B? Cannot understand what is wrong with this approach.

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

What happened to that tradition of ICPC where one problem is solved by all teams and one problem is not solved by any team Why having prelims as div 69420 contest

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

How many teams will be selected from each institute ?

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

Kanpur regionals qualification rules have been updated here

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

Does anyone know how many slots are there for Mathura Regionals?

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

Why is nlogn solution giving TLE for XOR sort?

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

    For me it didn't

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

      This gave TLE

      Spoiler
      • »
        »
        »
        »
        3 years ago, hide # ^ |
         
        Vote: I like it +28 Vote: I do not like it

        #define endl "\n"
        195 ms

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

          I’m jumping off the terrace

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

            after 1st tle even optimized it to o(n), still didn't make it. Our team is jumping off too.

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

How to solve central subset?

link

  • »
    »
    3 years ago, hide # ^ |
     
    Vote: I like it -9 Vote: I do not like it

    Centroid decomposition ig

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

    Let sz(x) mean the size of the subtree rooted at x. Formally $$$sz(x) = 1 + \sum sz(v)$$$ for all children $$$v$$$ of $$$x$$$.

    Choose an arbitrary root and walk through the tree normally with a dfs calculating values of $$$sz$$$. For any node where $$$sz(x) \geq \sqrt{n}$$$, add $$$x$$$ to the subset and consider $$$sz(x) = 0$$$ for further calculations.

    Why does this work?

    • For any child $$$v$$$ of $$$x$$$, $$$sz(v) \lt \sqrt{n}$$$, so the distance between any node in this subtree from $$$v$$$ must also be $$$\lt \sqrt{n}$$$. Since $$$v$$$ is a child of $$$x$$$, the distance of any node in the subtree from $$$x$$$ is $$$\lt \sqrt{n} + 1$$$ or in other words $$$\leq \sqrt{n}$$$.

    • Since $$$sz(x) \geq \sqrt{n}$$$ whenever we perform this, we add at most $$$\frac{n}{\sqrt{n}} = \sqrt{n}$$$ nodes to the subset.

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

    1) Pick any spanning tree and root at node $$$1$$$.

    2) Pick the node having the max depth, go up $$$\sqrt{n}$$$ for that node following parents, push this one in the answer, and remove that subtree.

    3) Do step 2 until the tree is not empty.

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

Kudos to Amritapuri online round setters, it felt like a fairly nice and balanced round (except for maybe a bit of an aggressive difficulty jump after the first problem). I really liked how cute the solution to problem A is.

Not at all biased by rank 11 in Amritapuri qualifier vs rank 227 in Mathura qualifier :P

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

What are the qualification rules for amritapuri?

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

Did anyone manage to get non-TLE with $$$n \sqrt{n}$$$ on A?

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

Will there be additional system testing on the Amritapuri prelims?

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

For the mathematicians and physicists problem of amritapuri region we did dp ( very similar to this problem), but got mle even after replacing 2 d input array by a map of pairs.Any suggestions?

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

    For each L you can find the smallest R by binary search and if L,R is good then L,(R+1) is also good.

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

      Could you please elaborate your checker function of binary search

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

        So for checking if a subarray is good after removing [l,r] you need to count the f(rem) array, for that you can take the contribution of each bit for example if ith bit is set in k subarrays then the contribution will be 2^i*k for finding the number of subarray that has ith bit set you can do is total_subarray-number_of_subarrays_where_ith_bit_is_off. For achieving this you can keep some prefix suffix arrays.

        Refer this code for solution: here

        PS: Sorry for my alien language :(

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

Kanpur-Mathura Online Qualifier Round unofficial list here. (made by me :))

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

Are qualification rules for Amritapuri same as last year? Can more than 3 teams qualify from an institute?

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

Any ideas as to when the results would be announced? As the regional dates are close approaching, and most of us would need to book flights to get to Bangalore/Amritapuri.

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

gwalior pune region info anyone

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

We got 180 rank. Is it good for qualifying mathura site!

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

When will mathura region results gonna be declare?

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

can someone share official telegram link for mathura regionals?