POJ1950 TLE version by using string stream. Just to number calculation will save a lot of time.