I think you need to get the top score.
Hope this helps
Source: https://www.serebii.net/xy/supertraining.shtml