I encountered strange bug when I tried to solve hard problem from TCO 2017 Semifinal 1(statement). My solution kept getting TL. I spent a lot of time debugging and realised that this TL doesn't depend on my solution. Actually, this simple code which only works on sample cases also gets TL. Why? hmehta, misof please help.