problems from http://ac.jobdu.com/