ayuxhkumxr22's blog

By ayuxhkumxr22, 14 months ago, In English

Hello Codeforces!

The Code, Create & Innovate Society (CCIS), an initiative led by passionate coders from IIT Kharagpur, invites you to participate in Algomania, an exciting and intellectually stimulating programming contest. Whether you're looking to sharpen your problem-solving skills or compete against top coders, this is your chance to rise to the challenge.

Contest Details :

- Contest Name: Algomania
- Date & Time : Tuesday, March 18, 2025, 20:30 IST
- Duration: 2 Hours
- Platform: Codeforces
- Register here
- Format: 7 algorithmic problems of increasing difficulty
- Scoring: ICPC-Style

Join our Whatsapp Group and Discord Server to stay updated.


Rules & Guidelines :

Individual Participation: No collaboration or external assistance is allowed.
No AI-Assisted Coding: The use of ChatGPT, GitHub Copilot, or similar AI tools is strictly prohibited.
Penalty System: A 10-minute penalty will be applied for incorrect submissions.
Ranking Criteria: Participants will be ranked based on the number of problems solved and the total time taken.

Prizes & Recognition
The top 200 participants will receive a Merit Certificate.
The topper of each college will receive a College Topper Certificate.


The problems were prepared and tested by: ayuxhkumxr22 , VanshRA , Aryan-Raina , MsDuckie , gauravkr54 , HeartOfIce , Mauryavardhan_Singh , Krityapriya , Mazter_007 , AstroBunny ,

UPD:Contest Link UPD2:Editorial
See you on the leaderboard!
  • Vote: I like it
  • +38
  • Vote: I do not like it

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

As a tester, I hope you will enjoy the contest

»
14 months ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

As a tester, I liked the problems. I hope you will enjoy the contest.

»
14 months ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

Looking Forward For a Great Contest

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

As a taster, I found the problems very delicious

»
14 months ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

The problems are creative and well-balanced. As a tester, I hope you enjoy solving these problems.

»
14 months ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

As a reader, I read the blog.

»
14 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Hoping for Good Contest

»
14 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Will give a try for sure :)

»
14 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Asn't a tester, I hope I pull off at least a single question

»
14 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Please update your google form, it says "Contest Date & Time: March 8th, 2025 , 20:30 IST" ,

i guess its 18th March. Right?? or was it on 8th?

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

When will be the anouncement for platform of the contest? Can I just start contest at codeforces CONTESTS or GYM?

»
14 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

MsDuckie orz

»
13 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Any details about the prize money from banner?

»
13 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I heard that so many python users got RTE on problem B. What happened?

  • »
    »
    13 months ago, hide # ^ |
     
    Vote: I like it +6 Vote: I do not like it

    pretty sure there's test data errors, but they actually said the input format is correct.

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

      Wait we will inform you once sorted

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

      I did not believe it though, and tested few kinds of input and of course it turns out the input format does not fit the statement.

      You can check my source codes (trying to find out how the actual input format looks like) by searching my user in status or looking at my most recent submissions.

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

    Java solution is getting TLE even I used the same logic of an AC c++ code

    Even before in contest I precomputed but gave me TLE

    Dont know why!

»
13 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Good D and E problems , Very bad A,B

»
13 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why am I getting a TLE in problem E, even though the time complexity is O(n * log(n))?

Spoiler
  • »
    »
    13 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    pbds is not intended solution .

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

    see if you can get rid of the map thing (use prefix sum)..

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

    I also had the same pdbs solution , i was also getting TLE , but one of the codes using pbds which i saw used half the number of erase and insert functions compared to me and it got AC, so I think the TLE here and not in other pbds solutions is probably due to bigger constant factor. Also i heard from someone for pbds erase and insert operations are 6*nlog(n), hence takes more time , but not sure about this.

»
13 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

My submission for F : https://pastebin.com/ngcArpvZ

I thought this problem can be solved using Euler Tour + Segment Tree / BIT with each query in O(log2N) which would give TLE in the given time limit . I'd read earlier, this can be improved using Fractional Cascading (Walking the Segment Tree) but had zero knowledge about implementing it and made a template of the same for Blackboxing it using GPT though never getting a chance to actually use it. But this is still giving TLE. Any idea why so or the template itself is wrong ?

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

    So you actually say you used chatgpt?? The announcement actually said:

    No AI-Assisted Coding: The use of ChatGPT, GitHub Copilot, or similar AI tools is strictly prohibited.

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

      As I mentioned in the comment, I had generated the template earlier and not during the contest.I had tried earlier to find online template implementing Fractional Cascading earlier but wasn't able to find one which was easier to use , and had to resort to using GPT for generating it.

»
13 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This was really annoying