--Multiparton__10_Apr_2006_14_08_01_+0200_F9bQX8/Xl_mrbZki
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

this is the first time i participate in a ruby-quiz. It was quite
funny programming this, and testing it out.
I know that my solution is far from perfect, but since I
invested some time in it (I'm quite new to ruby, so had to look up a
lot of stuff) I'm submitting it.
It does nothing fancy, and it misses some error-checking. The main data
structure is a Hash, it's explained in the code.
If I did something completely stupid it would be nice if someone tells
me :-)

Thanks,
Tom

--Multiparton__10_Apr_2006_14_08_01_+0200_F9bQX8/Xl_mrbZki
Content-Type: application/octet-stream;
 namearkov.rb"
Content-Disposition: attachment;
 filenamearkov.rb"
Content-Transfer-Encoding: base64

Y2xhc3MgTWFya292CiAgICBkZWYgaW5pdGlhbGl6ZShmaWxlbmFtZSkKICAgICAgICBAZnJlcXVl
bmNpZXM9SGFzaC5uZXcKICAgICAgICBAdGV4dD1BcnJheS5uZXcKICAgICAgICB1bmxlc3MgRmls
ZS5leGlzdHM/KGZpbGVuYW1lKQogICAgICAgICAgICBwcmludCgiRmlsZSBub3QgZm91bmQhXG4i
KQogICAgICAgICAgICBleGl0CiAgICAgICAgZW5kCiAgICAgICAgRmlsZS5vcGVuKGZpbGVuYW1l
KSBkbyB8aW98CiAgICAgICAgICAgIGlvLmVhY2ggZG8gfGxpbmV8CiAgICAgICAgICAgICAgICBs
aW5lLmVhY2goJyAnKSBkbyB8d29yZHwKICAgICAgICAgICAgICAgICAgICB3b3JkLnN0cmlwITsg
d29yZC5nc3ViISgnIicsJycpCiAgICAgICAgICAgICAgICAgICAgbmV4dCBpZiB3b3JkLmVtcHR5
PwogICAgICAgICAgICAgICAgICAgIEB0ZXh0PDwgd29yZAogICAgICAgICAgICAgICAgZW5kCiAg
ICAgICAgICAgIGVuZAogICAgICAgIGVuZAogICAgICAgICMgVGhlIHN0cnVjdHVyZSBvZiB0aGUg
ZnJlcXVlbmNpZXMtaGFzaCB0aGF0CiAgICAgICAgIyBJIGJ1aW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8pICYmCiAgICAgICAgICAgICAgICAgICAgIShAdGV4dFtpKzFdPX4vWy4h
P10vKQogICAgICAgICAgICAgICAgc3RhcnQ9QHRleHRbaV0sQHRleHRbaSsxXQogICAgICAgICAg
ICAgICAgaSs9MQogICAgICAgICAgICAgICAgYnJlYWsKICAgICAgICAgICAgZW5kCiAgICAgICAg
ICAgIGkrPTEKICAgICAgICAgICAgaT09MCBpZiBpPT1AdGV4dC5sZW5ndGgKICAgICAgICBlbmQK
ICAgICAgICBidWZmZXI9c3RhcnQKICAgICAgICBwcmludCBzdGFydC5qb2luKCIgIiksICIgIgog
ICAgICAgICNidWlsZCBuZXcgc2VudGVuY2UKICAgICAgICA2MC50aW1lcyBkbwogICAgICAgICAg
ICB3b3Jkcz1AZnJlcXVlbmNpZXNbYnVmZmVyXQogICAgICAgICAgICBzcGFjZT1BcnJheS5uZXcK
ICAgICAgICAgICAgd29yZHMuZWFjaF9wYWlyIGRvIHx3b3JkLCBmcmVxdWVuY3l8CiAgICAgICAg
ICAgICAgICBmcmVxdWVuY3kudGltZXMge3NwYWNlIDw8IHdvcmR9CiAgICAgICAgICAgIGVuZAog
ICAgICAgICAgICB3b3JkID0gc3BhY2VbcmFuZChzcGFjZS5sZW5ndGgpXQogICAgICAgICAgICBi
dWZmZXIuc2hpZnQKICAgICAgICAgICAgYnVmZmVyIDw8IHdvcmQKICAgICAgICAgICAgcHJpbnQg
d29yZC5nc3ViKC9bXCJcJ10vLCcnKSwgIiAiCiAgICAgICAgICAgIGJyZWFrIGlmIHdvcmQ9fi9b
LiE/XSQvCiAgICAgICAgZW5kCiAgICBlbmQKZW5kCgp1bmxlc3MgQVJHVi5sZW5ndGg9PTIKICAg
IHByaW50ICJVc2FnZTogbWFya292LnJiIDx0ZXh0ZmlsZT4gPG51bWJlciBvZiBzZW50ZW5jZXMg
dG8gcHJpbnQ+IiAKZW5kCm09TWFya292Lm5ldyhBUkdWWzBdKQptLnByaW50X3NlbnRlbmNlcyhB
UkdWWzFdLnRvX2kpCg
--Multiparton__10_Apr_2006_14_08_01_+0200_F9bQX8/Xl_mrbZki--