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 |
Re:给高斯消元跪了……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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator