Time.sleep( t ) | Sololearn: Learn to code for FREE!


Time.sleep( t )

how should time.sleep be used? i tried using it in this code but i only get timelimit exceeded https://code.sololearn.com/chU4KCZFZ9v5/?ref=app

8/27/2018 10:45:24 AM


2 Answers

New Answer


time.sleep() works in seconds, and the sololearn compiler's time limit for execution is around 5 seconds. so by doing time.sleep(5) on SL, your program will time out


thank you very much :D