-
-
Save gravityblast/4d2b4d32ff8e22484ed6 to your computer and use it in GitHub Desktop.
#MCC a.k.a. Mikamai Coding Contest: #0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
results = STDIN.read.split(/[\n\r]+/).collect{|line| line.chomp.split("") } | |
results.inject{|sum, p| sum and sum.product(p) or p}.collect(&:flatten).collect(&:join).each do |word| | |
puts word | |
end |
franz.andrea@gmail.com
…On 24/mar/2012, at 11:32, Maurizio De Magnis ***@***.*** wrote:
dai va, ti aggiungo nella board di Trello che contiene tutte le soluzioni ;-)
che mail uso per aggiungerti?
---
Reply to this email directly or view it on GitHub:
https://gist.github.com/4d2b4d32ff8e22484ed6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dai va, ti aggiungo nella board di Trello che contiene tutte le soluzioni ;-)
che mail uso per aggiungerti?