Tackling OnlineJudge problems...