Description
Input
输入三个整数N,M,P 1< = N <= 53 1< = M < = 1000 N< P < = 10^ 9
Output
即总数模P后的余数
Sample Input
3 2 97
Sample Output
4
论文里写的很好,觉得自己也写不出比它好的题解了qwq。
https://wenku.baidu.com/view/284648d7c1c708a1284a4425.html
Problem Description You may not know this but it's a fact that Xinghai Square is Asia's largest city square. It is located in Dalian and, of course, a landmark of the city. It's an ideal place for outing any time of the year. And now: There are N children from a near