The Football Season
HardRating 2000CodeforcesNumber Theory
Approach hintTry it first, then revealHide
Replacing w draws by d wins keeps the points the same and uses fewer games, so some answer has fewer than w draws. That limits the search to O(w) candidates for the number of draws.