Update short-version (for contest programmers).cpp