(TLE) How to optimize this code

This topic is duplicated...
I am sorry for the error. I didn't notice while uploading...
Last edited on
Please don't post duplicates.
http://www.cplusplus.com/forum/general/267528/
Topic archived. No new replies allowed.