How do sports solve cheating?

How to Encourage Competition While Discouraging Cheating