Update 1001.cpp