数学
我的妹妹syf
我的妹妹不可能那么胖
展开
-
4428: [Nwerc2015]Debugging调试
#include #define N 1000100 using namespace std; long long f[N],x,y; int n; long long dfs(int p){ if(f[p]!=-1) return f[p]; if(p==1) return f[p]=0; f[p]=x+y*(p-1); for(int i=2;i<p;i=(p-原创 2017-10-01 20:05:42 · 276 阅读 · 0 评论 -
codeforces 293B
#include #define N 55 #define K 11 using namespace std; const int MOD=1e9+7; int jc[K],a[N][N]; int cu[N][N][K]; int cx[K]; int n,m,k,ans,zy; inline int A(int n,int m){ long long tmp=1; for(int i=n;原创 2017-10-02 20:15:11 · 278 阅读 · 0 评论 -
agc001E
#include using namespace std; inline void read(int &a){ a=0;char ch=getchar(); while(ch'9') ch=getchar(); while(ch='0') a=a*10+ch-'0',ch=getchar(); } const int MOD=1e9+7; int dp[4010][4010],fac[801原创 2018-01-02 10:15:08 · 289 阅读 · 0 评论