Time limit exceeded

I work in C++ and in many problems I get the problem of time limit exceeded. I will be glad if I get a help on I/O and working methods that can be fast enough to solve such programs.
Thank you

If you get TLE many times, most of the times it means you need to come up with a better(faster) algorithm to solve the problem. Fast I/O method may not help that much, but you can read about it here.
Would be better if you could tell which problems are you referring to.

1 Like

Problem Code: STACKS

do i need to paste my answer here??

Just paste the link to the solution.