Why TLE ?!!
This solution is O(n) right? is it because java i/o ?
submission
ICPC NA North Central and South Division