Greetings, Codeforces Community!
We, the Programming and Algorithms Group, are excited to invite you to our upcoming event, Insomnia 2026! This event is proudly sponsored by IMC.

Format
Insomnia 2026 is an ICPC style team contest where you would be given 10-15 problems in the span of 4 hours, for teams of at most 3 members.
- Date & Time: Sunday, March 22, 2025, at 17:00 IST
- Mode: Hybrid (Online+Offline)
- Platform: Codeforces
- Registration Link
- Eligibility: Teams of 1-3 Members and Participants may use their own computer (No 1PC per team rule)
- Prizes: Total Prize Pool: 2L INR
Contest Link — https://mirror.codeforces.com/contestInvitation/4dbe34f649efdf387e5ea871d742fb461a3c242d
Please make a team on codeforces with same name as registered on unstop to be eligible for prizes.
The contest will be conducted in a hybrid format. Students from the following institutes are required to participate in offline mode:
- Indian Institute of Information Technology Hyderabad (IIITH)
- Indian Institute of Technology (BHU) Varanasi (IIT BHU)
- Indian Institute of Technology Bombay (IITB)
- Indian Institute of Technology Delhi (IITD)
- Indian Institute of Technology Guwahati (IITG)
- Indian Institute of Technology Kanpur (IITK)
- Indian Institute of Technology Madras (IITM)
- Indian Institute of Technology Roorkee (IITR)
Only teams comprising of Indian Undergraduate or Postgraduate students are eligible for prizes, but everyone is welcome to participate. It is compulsory to register on Unstop to be eligible for prizes.
Sponsors
This event would not have been possible without the generous support of our sponsor.
- IMC: IMC is a global trading firm powered by a cutting-edge research environment and a world-class technology backbone. Since 1989, we’ve been a stabilizing force in financial markets, providing essential liquidity upon which market participants depend. Across our offices in the US, Europe, Asia Pacific, and India, our talented quant researchers, engineers, traders, and business operations professionals are united by our uniquely collaborative, high-performance culture, and our commitment to giving back.
Organizing Team
- The problems have been set by shorya1835, ho-oh, friedel, wakanda-forever, tridipta2806, Dragokj03, Prady, raichu_, Forge, and Krishbansal333.
- Thanks to our dear testers: __baozii__, Kira_1234, cry, Proof_by_QED, wuhudsm,nik_exists, Jrke, Mewtwo, Coding............, HackerGupta069, dord, SomilP, blue_phoenixx, twistedumar, penguinsAreCool, krish273, psyduck06 and raghavb_007.
- Thanks to aastik231205, Darsh_Jain, sigma273, ainesh_d, and MADSAM123321 for their help in preparing the contest.
Upd — Editorial is out!!!
Upd 2 — Here are the results after careful verification of all entries
We will reach out to the winners soon to distribute the prizes and Also, Note that all decisions taken are final and binding.








CFBR!
cfbr
cfbr
As a Problem Setter, I surely say that the problems are really interesting and fun to solve.
As a tester, I really liked some of the problems , they were really interesting and fun to solve.
is editorial for the contest going to be released?
Yes, we will release editorial by 23rd March EOD.
cfbr
As a tester, I can guarantee the problems are very nice and fun !
Cfbr!
Cfbr!!
Despite the name Insomnia, it's happening in the evening.
As a problem setter, hope you have fun solving the problems!
cfbr
As a problem setter, I would really like everyone to try all problems.
As a tester, I identify myself as a penguin.
Where can we find link for the codeforces round (we already registered fron unstop)
We'll add it to this blog shortly.
H was cute but the other 9 problems I solved were all kind of boring.
btw, how to solve K?
how to solve F?
n(n-1) D(n-1) + n(n-1)(n-2)D(n-2)....
D is derangement
This further simplifies as A(n) = nA(n-1) + n(n-1)D(n-1)
Precompute both, answer in o(1)
I couldn't optimize my O(n^2) solution
which is something like that
what is your logic?
this was mine
Editorial When?
Question B was a bit deceptive for me
Why are there 2 different gyms for the same contest?
Official from Gym tab on codeforces: https://mirror.codeforces.com/gym/106439
From invitation Link: https://mirror.codeforces.com/gym/680528
And why the one from Gym tab have the offline standing only? Very confusing.
Otherwise, great problems!
The contest used for this was a mashup contest not a public one. So i cloned the contest so everyone can try.
When will the results be announced?