Skip to content

Instantly share code, notes, and snippets.

@ichirin2501
Created August 13, 2012 15:59
Show Gist options
  • Save ichirin2501/3342185 to your computer and use it in GitHub Desktop.
Save ichirin2501/3342185 to your computer and use it in GitHub Desktop.
Project Euler 22
#!perl -apnF','
$c++,s/[^"]/$s+=(ord($&)-64)*$c/eg for sort@F;
$_=$s;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment