In ancient China, the ranking of the imperial examination was based on the rank of the official rank obtained. Different grades of official rank corresponded to different rankings. In the imperial examination system, the highest rank was the top scorer. Usually, the top scorer in the liberal arts was Bai Juyi of the Tang Dynasty and Su Shi of the Song Dynasty. Next were the second and third place, which usually corresponded to the first and second place of the humanities. The difficulty of other titles such as Jinshi, Juren, Gongshi, etc. increased in turn, but the number of people who passed the Jinshi was the highest. It was important to note that the ranking of the imperial examination was not fixed. Sometimes, the ranking would change for various reasons. In addition, the imperial examination was also related to political environment, historical background and other factors.