The math problem says there are two suspects, A and B.
Both A and B are criminals. The reason is that Ding told the truth, C said it was wrong, and C said at least one of them told the truth, that is, Nail told the truth or B told the truth or both of them told the truth, which is wrong, so both of them lied, which means that Party A and Party B are criminals.