simple programming-contest-style judging program