use C printf/scanf, still 4 sample TLE, so it must be the algorithm problem, TODO