Attacks on fun problems from Google CodeJam, using Ruby