版本比较
「DROI」Round 2 单图 题解
正文
增加 2 行删除 2 行
27 行未改动28293031323334353612 行未改动49505152535455565713 行未改动27 行未改动#include<bits/stdc++.h>using namespace std;#define LL long longconst int N=1010;int T,n,mod,fct[N],ans[N],C[N][N];inline int pwr(int x,int y){int res=1;12 行未改动for(int j=1;j<=i;j++)C[i][j]=(C[i-1][j]+C[i-1][j-1])%mod;for(int i=1;i<N;i++)for(int j=0;j<i;j++)ans[i]=(ans[i]+(LL)C[i][j]*pwr(pwr(2,i-j)-1,j)%mod)%mod;}inline void solve(){13 行未改动27 行未改动28293031323334353612 行未改动49505152535455565713 行未改动27 行未改动#include<bits/stdc++.h>using namespace std;#define LL long longconst int N=1010;int T,n,mod,fct[N],ans[N],C[N][N];inline int pwr(int x,int y){int res=1;12 行未改动for(int j=1;j<=i;j++)C[i][j]=(C[i-1][j]+C[i-1][j-1])%mod;for(int i=1;i<N;i++)for(int j=0;j<i;j++)ans[i]=(ans[i]+(LL)C[i][j]*pwr(pwr(2,i-j)-1,j)%mod)%mod;}inline void solve(){13 行未改动