National Olympiad in Informatics, China, 2009.
It is one of my favorite problems :)
Check out the discussion responses for solution one hint at a time!
National Olympiad in Informatics, China, 2009.
It is one of my favorite problems :)
Check out the discussion responses for solution one hint at a time!