Update contest_library.cpp