果然我数学不行啊,题解君: http://www.cnblogs.com/zhuohan123/p/3726933.html const h=; var fac,facinv,powm,s:..]of int64; n,m:int64; function mexp(a,b:int64):int64; begin ); mexp:=sqr(mexp(a,b>>))mod h; = then mexp:=mexp*a mod h; end; function C(n,r:int64):int64;…