Shen Yan, a young man from a poor family, was falsely accused of stealing questions on the eve of the county examination. When he was on the verge of ruin, he awakened to the "AI deduction system"; he fought his way from the quagmire of county school to the golden palace, calibrated ancient account books, case files, granaries and national policies with the future governance model, and finally transformed the imperial examination from a game of literary names of the gentry into a way to govern the country and select talents.