This problem is used in private contest:多重循环