in reply to Re^2: Canadian Cryptography Contest
in thread Canadian Cryptography Contest
also works. OTOH before this is done running you should be able to reason out why the answer is 27,000,001. (Big hint. The 1 is the contribution from the 7'th digit.) As for map chocking, if you are on any Perl before 5.6.1, the many for one map shows quadratic performance, so it will indeed choke and remain choked for a good while on a million entries.perl -e'map$\+=$_,/./g for 1..1e6;print'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Canadian Cryptography Contest
by tadman (Prior) on Jan 23, 2002 at 00:37 UTC | |
by tilly (Archbishop) on Jan 23, 2002 at 00:55 UTC |