标签:cpp for code class ++ ++i 组合数 pre const
ll c[1005][1005];
const int mod=1e9+7;
for (int i=0; i<=1000; ++i)
{
c[i][0]=c[i][i]=1;
for (int j=1; j<i; ++j)
c[i][j]=(c[i-1][j]+c[i-1][j-1])%mod;
}
标签:cpp for code class ++ ++i 组合数 pre const
原文地址:https://www.cnblogs.com/CADCADCAD/p/11369830.html