Fun with Olympiad in algorithmics