Playing around with some problems from Google CodeJams