3 # $Id: hash2.ruby,v 1.2 2004-11-10 06:36:29 bfulgham Exp $
4 # http://shootout.alioth.debian.org/
5 # Revised by Dave Anderson
7 n
= Integer(ARGV.shift
|| 1)
12 hash1
["foo_" << i
.to_s
] = i
22 printf
"%d %d %d %d\n",
23 hash1
["foo_1"], hash1
["foo_9999"], hash2
["foo_1"], hash2
["foo_9999"]