Contest problem program