26 languages, 46 bytes, Score : 1.68861953e-28 (0.000000000000000000000000000168861953)
All the languages are mainstream ones (i.e. they are actually used by people in development) and there's no REPL solution in any language. This answer is never going to win, but that's not a reason for not posting it...
//#**print()ale123456789+chous :f{}:""enttd *;
1. Python 2
print 1#//**()alechous:f{}:23456789+ ""enttd*;
Try it online!
2. Python 3
print(2)#//**alechous13456789+: f{}: ""enttd*;
Try it online!
3. Ruby
puts 3#//**()alecho:f12456789+{}rin: ""enttd*;
Try it online!
4. CoffeeScript
alert 4#//**()pinchous:12356789+f{}: ""enttd*;
Try it online!
5. PHP
echo 5/*alrt#()pinus:f{:12346789+} ""enttd;**/
Try it online!
6. Perl 5
print 6#/*ale()chous:12345789+f{:} */""enttd*;
Try it online!
7. Perl 6
print 7#/*ale)(chous:f12345689+{:} */""enttd*;
Try it online!
8. JavaScript (ES5)
alert(8)//pin 12345679+#*chous:f{:} *""enttd*;
Try it online!
9. JavaScript (ES6)
alert(9)//inp 12345678+#*chous: f{:}*""enttd*;
Try it online!
10. JavaScript (ES7)
alert(9+1)//pni #*chous2345678: f{:}*""enttd*;
Try it online!
11. Batch
echo 9+2 ::alrt()//pni#*usf{1345678}*""enttd*;
Couldn't find an online interpreter for this one. Try running this code in the Command Prompt, if you are on Windows.
12. Bash
echo 12 #::alrt(3456789+)//pni*usf{}*""enttd*;
Try it online!
13. CSS
*:after{content:"13" /*h# l(2456789+)pisud;*/}
Try it online!
14. Less
*:after{content:"14" /*#h l(2356789+)pisud;*/}
Try it online!
15. Stylus
*:after{content:"15" /*#hl (2346789+)pisud;*/}
Try it online!
16. TypeScript
alert(16)//inp #*chous2345789+: :{f}*""entt*d;
Try it online!
17. Octave
disp(17)#//n *chou2345689+: :{f}*""entt*alert;
Try it online!
18. Swift
print(18)//ds# *chou2345679+: :{f}""ent*ale*t;
Try it online!
19. Julia
print(19)#ds// *chou2345678+: :{f}""ent*ale*t;
Try it online!
20. Maxima
print(18+2);/*#ds ouch 345679::{f}""entale*t*/
Try it online!
21. Clojure
(print "21");/*#ds ouch3456789+::{f}entale*t*/
Try it online!
22. Groovy
print 19+3//();*#ds oh245678::{fuc*}entalet*""
Try it online!
23. CommonLisp
(print 23);//*#ds oh1456789+::{fuc*}entalet*""
Try it online!
24. EmacsLisp
(print 24);//*#ds oh1356789+::{fuc*}entalet*""
Try it online!
25. PicoLisp
(print 25);//*#ds oh1346789+::{fuc*}entalet*""
Try it online!
26. Logo
print 21+5 ;//*#dsoh346789::{fuc*}entalet*""()
Try it online!
Related. – Martin Ender – 2017-05-09T19:00:13.947
are comments allowed? – Adám – 2017-05-09T19:05:11.167
@Adám There would be no reasonable way to ban comments – Post Rock Garf Hunter – 2017-05-09T19:06:28.763
So if
#
is the comment symbol in 5 languages, good solution would be1#2345
– Adám – 2017-05-09T19:06:31.437@Adám that gives you a score of 1/6. I'm sure a score of 1 is easily possible with a 2-byte program (or a 1-byte program for that matter). And adding more digits reduces your score. – Martin Ender – 2017-05-09T19:08:28.800
https://en.wikipedia.org/wiki/Four_fours maybe? I don't know enough programming languages to work this out for myself but repeating characters doesn't cost you as much in the denominator. – Giuseppe – 2017-05-09T19:44:13.760
Does it have to be distinct numbers from 1 to
n
? Can we just output distinct integers? – Rɪᴋᴇʀ – 2017-05-09T19:51:10.650@Riker No they have to be 1-n – Post Rock Garf Hunter – 2017-05-09T19:52:01.543
You might want to use this revised script, which allows for longer texts to be used
– Conor O'Brien – 2017-05-09T22:09:44.793