+ 1
Code Playground says no output even though there are several print statements.
I have this script that estimates pi, and it will take about 6 minutes to complete, due to it completing one million iterations. There is a print statement before the while loop, so it should still have an output. Did I do something wrong or is just how SoloLearns playground works? https://code.sololearn.com/cKJ42OJ7SGJi/?ref=app
2 ответов
+ 4
I believe SL uses a time out after which "No output" is displayed, so this is not the best place for time consuming programs.
+ 1
Alexandr no it took 6 minutes to complete a million checks with random numbers between 1 and 100,000. 1,000,000 on both takes about 11.