update single_num.cpp