Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- key = ARGV[0].to_i
- reg = key.times.map { "." }.join
- enc = ARGV[1].scan(/#{reg}/).map {|c| c }
- enc.map { |c| c.reverse! }
- puts enc.join
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement