This problem is used in private contest:编程比赛

auto try obtain new privielges on error