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:给高斯消元跪了……

Posted by troore at 2013-02-26 17:22:41 on Problem 1753
In Reply To:给高斯消元跪了…… Posted by:Ruby931031 at 2012-06-03 15:17:01
>for (i=p-1;i>=0;i--)		//回代求得每一个(共p个)主元的值
>{
>    x[r[i]] = a[r[i]][N];
>    for (j=N-1; j>pivot[i]; j--)
>	if (a[r[i]][j])		x[r[i]] ^= x[j];
>    if (x[r[i]])	cnt++;

>}
这里r[..]如果和上面的freeX[..]有相交的部分,怎么保证结果正确?不会覆盖掉前面求得的自由变量的值吗?

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