This problem is used in private contest:完全平方数