judge whether the answer is right