+ 2
Why I do often get Time limit exceeded?
While running code here on an Android phone , and most of the time it's quite slow. Connectivity is good, either vdsl or Lte
3 Answers
+ 2
@Maart could you elaborate why to prefer printf/scanf over cin/cou ?
+ 1
It could be because you have too many loops in a loop.
Otherwise try:
If you work with C++, use scanf/printf instead of cin/cout. Use BufferedReader instead of Scanner in Java.