Does mathematics have anything to do with intelligence?
It should be related, but the quality of grades is related to many aspects, one is foundation, the other is contribution, the other is educational method and the other is learning method, which is a very comprehensive thing. Besides, this is what you call intelligence, that is, a person's innate talent in this respect.