Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

TLE了3次,WA了1次,总算过了~~~留一点数据作纪念吧~~^_^

Posted by 200630740629 at 2007-05-18 10:28:29 on Problem 2992
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator