Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
TLE了3次,WA了1次,总算过了~~~留一点数据作纪念吧~~^_^431 215 4377498837804122112 200 100 6442450944 400 200 364791569817010176 1 1 1 2 0 1 36 1 9 6 2 4 6 4 4 300 150 61847529062400 下面是用来打表的东东~~ for(n=1;n<=431;n++) { memset(q,0,sizeof(q)); for(d=1;d<=n;d++) { for(j=0;j<83;j++) { q[j]+=pri[n-d+1].m[j]; q[j]-=pri[d].m[j]; } res=1; for(j=0;j<83;j++) { if(q[j]>0) res*=(q[j]+1); } ans[n][d]=res; } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator