A very simple core of OnlineJudge