+ 5
Print "SoloLearn is awesome" 1000 times.
Design a program to Print "SoloLearn is awesome" 1000 times with No loops, No recursion, Reasonably readable and concise. Do the work by hand. All languages are Welcome :)
10 ответов
+ 9
This will definitely get to 1000; I just don't think it's ever going to stop.
Given how I do this, it might count as a brain boggler :)
https://code.sololearn.com/cYgU9YGHlfD1/?ref=app
+ 8
Mine one liner in ruby
https://code.sololearn.com/cp9BQaTnTj4F/?ref=app
+ 7
https://code.sololearn.com/WsH68MV7s0JX/?ref=app
+ 6
Time limit exceeded stops it, but here you go:
https://code.sololearn.com/cHdp99sUw5Ni
+ 6
js =>
console.log("Sololearn is awesome".repeat(1000));
+ 5
Here's one that uses CPU/FPU floating point exception to "goto by fatal signal" (controlled, so 1000x ok)
https://code.sololearn.com/c99KPGHr5FIb/?ref=app
+ 3
https://code.sololearn.com/cmADa6rTVISp/?ref=app
+ 1
Time limit, though...
req = 1000
done = 1
while done <= req:
print('{} - SoloLearn is Awesome!'.format(done))
done += 1
+ 1
Oracle SQL :
select 'SoloLearn is awesome'
from DUAL
connect by level <= 1000;
+ 1
Well I was procrastinating a bit whIle taking an exam today and I found this and I gladly accepted the challenge. Enjoy and any feedback would be much appreciated. Thanks ✌😀
https://code.sololearn.com/WEtk4qY4126X/?ref=app