Only a set of very basic solutions:


#!/usr/bin/env ruby19

puts '-- Exact solutions --'

STDOUT << 'Hello' << ', ' << 'world' << '!' << "\n"

puts 'Holle, werld!'.tr('eo', 'oe')

puts '!dlrow ,olleH'.reverse

def method_missing(*a); puts 'Hello, world!'; end; say_hi

a = [1,2,3]; def a.to_s; 'Hello, world!'; end; puts "#{a}"

require 'zlib'
hw = Zlib::Deflate.new.deflate("Hello, world!", Zlib::FINISH)
puts Zlib::Inflate.new.inflate(hw)

puts [1819043144, 1998597231, 1684828783,
538976289].pack('VVVV').strip

puts ('%x' % 10484973469620254453249450853906).scan(/../).pack('h2' *
13)



puts '-- Approximative solutions --'

puts 'Hello, world!'.split('').map {|c| /\l/ =~ c ? '%c' % (c.ord +
rand(3) - 1) : c}.join

puts 'Hello, world!'.gsub(/\b\w{4,}?\b/) {|t| t[1..-2] =
t[1..-2].split('').shuffle.join; t }

puts [6.51886850036479e+265, 6.01347722536415e-154].pack('EE').strip