change I/O to C-style, still TLE
optimize the time cost, fine, good