Why is there a time limit exceeded warning? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
28th Sep 2018, 4:09 PM
Notch Andan
Notch Andan - avatar
6 Answers
0
You can scan in batches (like: 70-80 million, then 80-90 million) to stay under the time limit imposed by the server, but I think you have the answers covered with a smaller range :)
28th Sep 2018, 6:23 PM
Kirk Schafer
Kirk Schafer - avatar
+ 4
When your device has no time to execute your code. You get the output of this code. Time limit exceeded
28th Sep 2018, 4:52 PM
program
program - avatar
+ 1
You don't tell us how to duplicate the error, so I'm assuming your inputs are probably too large and it takes too long to run. If your inputs are normal and it should finish in a few seconds, what inputs are you using?
28th Sep 2018, 4:25 PM
Kirk Schafer
Kirk Schafer - avatar
0
Yah sorry.. The Input I entered was too large
28th Sep 2018, 4:38 PM
Notch Andan
Notch Andan - avatar
0
Input:0 99999999
28th Sep 2018, 4:39 PM
Notch Andan
Notch Andan - avatar
0
Kirk Schafer when I have #include <conio.h> , getch(); and void main() instead of int main() and return 0; there is still time limite exceeded in this compiler but runs at ease on devC++ as saved as .c
28th Sep 2018, 4:59 PM
Notch Andan
Notch Andan - avatar