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!








As a tester, I hope you will enjoy the contest
As a tester, I liked the problems. I hope you will enjoy the contest.
Looking Forward For a Great Contest
As a taster, I found the problems very delicious
The problems are creative and well-balanced. As a tester, I hope you enjoy solving these problems.
As a reader, I read the blog.
Hoping for Good Contest
Will give a try for sure :)
Asn't a tester, I hope I pull off at least a single question
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?
Its on March 18th
When will be the anouncement for platform of the contest? Can I just start contest at codeforces CONTESTS or GYM?
The contest will be on codeforces gym and the link will be updated in the blog an hour before the contest .
MsDuckie orz
Any details about the prize money from banner?
I heard that so many python users got RTE on problem B. What happened?
pretty sure there's test data errors, but they actually said the input format is correct.
Wait we will inform you once sorted
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.
Okay
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!
Good D and E problems , Very bad A,B
Why am I getting a TLE in problem E, even though the time complexity is O(n * log(n))?
...
pbds is not intended solution .
But it got accepted for me...
Somehow O(n*log^2(n)) merge sort tree solution is working on problem E.
see if you can get rid of the map thing (use prefix sum)..
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.
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 ?
So you actually say you used chatgpt?? The announcement actually said:
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.
got it. sorry for harassing you.
:)
This was really annoying