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

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

Hello Codeforces,

I am happy to invite you to the Final Round of GeeksforGeeks's Code India Code.

We don't want to exclude passionate programmers from enjoying the problem set of the final round. Therefore, the contest will be open for all users but only participants who passed in the Qualification Round held on 6th March will be eligible for the rewards.

Contest Details:

  • Finals Link: (Register Here)
  • Time: Thursday, 10 March 2022, 7:30 PM to 10:00 PM IST.
  • Number of Problems: 7 problems
  • There will be no penalties for wrong submissions.
  • Tie Breaker: Time to reach X points. (ie, time of last AC solution)

Prizes:

  • Rank 1: Macbook Pro + Course voucher worth INR 12,000
  • Rank 2: iPad Air + Course voucher worth INR 7,000
  • Rank 3: Smart Watch + Course Voucher worth INR 3,000
  • Rank 4-25: Tablets + Course Voucher upto INR 1500
  • Rank 26-100: Noise Earbuds + Course Voucher upto INR 1500
  • Rank 101-200: Noise Smartbands + Course Voucher upto INR 1500
  • Additional Reward for top 1000 participants: Free access GeeksforGeeks Premium Plus (Quarterly membership) with which you get: Access to ad-free content, Personal notes, free access to Doubt-Assistance program.
  • Prize distribution is limited to those residing in India only.

Problem Setting Panel:

Even though the prizes are only for Indians, I would like to invite others to participate — the problem-set contains interesting and challenging problems, with an estimated difficulty of a Div2 — Div1.5 round.

Good luck everyone. See you on the leaderboard!

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

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

Can I participate, even I didn't participated in earlier rounds?

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

where did we find qualification round problem's solutions because those problems are really very challenging awesome and pretty hard also.

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

Any idea about which tablets for rank 4-25?

»
4 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится -157 Проголосовать: не нравится

"only participants who passed in the Qualification Round held on 6th March will be eligible for the rewards."

Can This be relaxed?(the qual round was basically solving one <=div2c problem but I missed the contest)Someone who do perform well in finals has skill to clear qualification round anyways

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

The contest clashes with both Educational Round 124 and Reply Challenge. Is it possible to reschedule the contest?

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

Any updates on changing the timing? These timings should be discussed before checking all the major websites like codeforces, codechef and atcoder

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

In Leaderboard, only trusted participants(who solved >=1 problem in qualification round) are present or everyone who took part is present?

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

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

In the problem Path Function, why are constraints on the number of queries (q) not mentioned?

»
4 года назад, скрыть # |
 
Проголосовать: нравится -51 Проголосовать: не нравится
»
4 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Would someone like to exchange a smartband with me for earbuds?

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

Plz share your ideas or solution on how you solved or approached the problems. It will be very helpful. Thanks in advance.

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

    Can anyone give some hint for 4th one?

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

      I can tell you about a $$$O(N)$$$ solution.

      Firstly let us rewrite the asked value
      $$$abs( x*ar[y] - y*ar[x] )$$$ {Now since in problem it is given that ar[i]%i==0 we can substitute ar[x] by $$$k.x$$$(k is a constant) , similarly we will replace ar[y] by $$$d.y$$$ (d is another constant)}

      =abs(x*y*d-x*y*k)
      = $$$abs(x*y*(d-k))$$$

      This shows that for any fixed d and k the best answer will be given by the lowest values of x,y possible.

      Now ignoring the above equation for some time, we change our focus. What can be he maximum number of distinct values of $$$ar[i]/i$$$ It is $$$√N$$$.

      Using this observation about the maximum number of distinct value we can brute force for all possible pair of values.

      • »
        »
        »
        »
        4 года назад, скрыть # ^ |
        Rev. 2  
        Проголосовать: нравится +8 Проголосовать: не нравится

        Really nice soln. I missed it and ended up overkilling it using convex hull trick. It solves this problem in $$$O(nlogn)$$$ and $$$i$$$ divides $$$a_i$$$ constraint isn't required.

        Just one correction regarding time complexity, no of distinct values of $$$ar[i]/i$$$ is $$$O(\sqrt M)$$$ where $$$M=10^6$$$, maximum possible value in the array. For small enough $$$n$$$ we can create a testcase with $$$O(n)$$$ distinct such values, so resulting time complexity would be $$$O(n*\sqrt M)$$$, overall $$$O(N*\sqrt M)$$$, where $$$N=10^5$$$ is sum of values $$$n$$$ across all testcases.

        Looking at constraints, it is an intended soln.

        Worst case generator
      • »
        »
        »
        »
        4 года назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        Can you explain a little bit how the maximum number of distinct values is sqrt(n)?

        • »
          »
          »
          »
          »
          4 года назад, скрыть # ^ |
          Rev. 3  
          Проголосовать: нравится +9 Проголосовать: не нравится
          • The value of $$$A[i]/i$$$ when $$$i \geq 1000$$$ will be less than <= 1000 (since A[i] <= $$$10^6$$$). Thus, the number of different values is at most 1000.
          • The number of different values when $$$i \lt 1000$$$ is at most 1000.

          So, in total, the maximum number of distinct values would be 2000.

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

Hey there,

I know they have provided a video solution for the contest but I am stuck on problem D which hasn't been covered in the video solution. Could anyone please give me some hint or approach? Thank you.

  • »
    »
    4 года назад, скрыть # ^ |
    Rev. 3  
    Проголосовать: нравится +9 Проголосовать: не нравится

    D was based on pigeonhole principle.

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

      Can you explain a little bit about how the maximum distinct value of a[i]/i will be less than 2000 always. Did you get this value 2000 by checking for some big test cases,or, is it some intuition based. Please tell me what I am missing.

      Thanks

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

        We have a[i] <= 1000000 for all values of i. Now for i >= 1000, we can clearly a[i]/i <= 1000 because of the constraint a[i] <= 1000000. So between the indexes 1000 and 2001 , you have only 1001 distinct values of a[i]/i but there are 1002 indices so some value of a[i]/i has to repeat. So for n>=2001 we can guarantee that the answer is 0. I thing we can reach n>=2000 also using similar line of thought.

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

Minimize maximum elements can be solved by https://oeis.org/A036990 this series. During the contest, I wrote a brute force solution for n up to 10 and searched that series on OEIS and found the above series, but sadly I wasn't able to finish the code during the contest.

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

What was the solution for problem Path functions?

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

When will the rank winners list be announced?

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

How to solve the third problem (Two Strings)?

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

Prize distribution/results when?

»
4 года назад, скрыть # |
 
Проголосовать: нравится -22 Проголосовать: не нравится

GeeksforGeeks round 2 was on 10th March.

Coding Ninjas CodeKaze round 2 was on 13th March

Codekaze has more than 10 times participants than GeeksforGeeks Code India Code.

Codekaze has much more prizes than GeeksforGeeks Code India Code.

But despite all this Coding Ninjas declared the result of final round and sent mail. And soon within 1-2 days they will send prizes. On the other hand GeeksForGeeks is doing ....?

And not even replying participants.

Hope this better describes the difference between 2 platforms GFG and Coding Ninjas.

GeeksforGeeks_admin Ashishgup AvinashKartik Utkarsh.25dec bunty_x i.am.pratik Omja manpreet.singh

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

    Hi! I was the problem setter for this round! If you have any issue with the quality of problems or any problem-related stuff, only then tag me.

    And I believe the leaderboard is final; we have removed the cheaters, you can find your rank here.

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

Will the contestants above rank 200 be included under 200 after removing overseas particpants. Ashishgup Omja

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

I'm actually quite curious to know how did namangoyal198 managed to cheat his way to the global rank 3 by beating so many ultra-skilled participants. Kudos to GFG team for catching him though.

CONTEXT:
Ranklist before Plag-check
Ranklist after Plag Check

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

GeeksforGeeks_admin

11 Days passed we haven't got a single mail for conformation of prizes. Although GeeksforGeeks sends spam mails daily to participate in this/that event buy this/that course but when it come for prizes you ghost.

Atleast please reply if it will take some time you should not ghost.

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

Anyone else got a message to claim your prizes and then a message to ignore the previous email.

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

I solved 2 out of 3 programming questions and didn't even open the quiz part yet I got 3 months premium plus membership for free.

Thanks a lot :)

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

Is there anyone I can email or contact regarding my prizes?

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

GeeksforGeeks_admin Ashishgup AvinashKartik

Are you planning to give prizes or not ?

You just ghosted after contest no reply at all.

Learn from other platforms.

You can increase your audience by lots of promotion but you are definitely loosing many because of this trust related issues and you customer support.

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

Now after almost 1.5 months I have not received my prize and a single mail about my prize. Atleast pls inform us about the status of the prizes.

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

anyone got their prize?