For a Pokemon to have the maximum in a stat, it must have:
All of the above works for your Pokemon's offensive stats.