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

Re:wa了,能否帮忙看下

Posted by singlelove at 2007-04-05 10:46:11 on Problem 3213
In Reply To:Re:wa了,能否帮忙看下 Posted by:singlelove at 2007-04-05 10:41:49
int sum=0;
for(j=0;j<b;j++)
   sum+=eab[j]*p[j][i];
eab[i]=sum;

这怎么行呢?
在计算过程中eab[]已发生改变
增加一个数组吧
for ( int j = 0; j < b; j++ )
    sum += eab[j] * p[j][i];
ans_new[i] = sum;




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