Accepted code in www.lydsy.com/JudgeOnline/