Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sandropaganotti-zz/249386 to your computer and use it in GitHub Desktop.
Save sandropaganotti-zz/249386 to your computer and use it in GitHub Desktop.
Risposta al Quiz: http://j.mp/8KHBcI
p"#{$*}".scan(/./).reverse.inject([0,0]){|(a,b),m|[a+((m=10**((l=("IVXLCDM"=~/#{m}/))/2)*(5**(l%2)))<b ?m*=-1:m),m]}[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment