fork(1) download
  1. r={}for i,s in ipairs(arg)do n=0 s:gsub("%l",function(a)n=n+(a:byte()-96)end)s:gsub("%u",function(a)n=n+(a:byte()-64)*1.5 end)s:gsub("%p",function(a)n=n-1 end)s:gsub("^R.- R.- ?R?",function()n=math.huge end)m=n/string.len(s)s:gsub("%d+",function(a)m=m-a end)table.insert(r,{s=s,n=m})end table.sort(r,function(a,b)return a.n<b.n end)for i,v in ipairs(r)do print(v.s)end
Success #stdin #stdout 0s 2784KB
stdin
Matthew
Mark
Luke
John
Revelations
stdout
Standard output is empty