Remove \n from scanf function in 1000.cpp