+ 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

18th May 2017, 7:08 AM
Michele Chesi
Michele Chesi - avatar
2 ответов
+ 2
@Maart could you elaborate why to prefer printf/scanf over cin/cou ?
7th Oct 2017, 6:31 PM
Ishan
Ishan - avatar
+ 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.
18th May 2017, 7:15 AM
Maart
Maart - avatar