soj1009 0.01s 288kb, too slow! from now on, use c++ instead of c