You are viewing a single comment's thread. Return to all comments →
in Ruby
puts gets.strip.each_char.with_index.map{ |c, i| (c == 'SOS'[i % 3]) ? 0 : 1 }.reduce(:+)
Seems like cookies are disabled on this browser, please enable them to open this website
Mars Exploration
You are viewing a single comment's thread. Return to all comments →
in Ruby