Update 1097.cpp