problem 174, submit with sgu.cpp, got 'Time Limit Exceeded on test 3 1750 ms	2007 kb'