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 phtniit at 2011-11-25 12:28:05 on Problem 1166 and last updated at 2011-11-25 13:09:03
In Reply To:Re:发个小菜我自己写的高斯消元法,还请路过的大牛们不要见笑。 Posted by:oorolh at 2009-10-01 13:47:46
> 你这是蒙对了!!
为什么这样说?
for(j=0;j<=3;j++)
			if((j*f[i][i]%4+4)%4==temp) x[i]=j;
		//x[i]=temp/f[i][i];
是因为这里错了吗?
4不是素数,当f[i][i]==2的时候,j既可以取0.也可以取2。
所以得出来的解不一定正确,是吗?
那应该怎么改,我纠结了很久,望路过的大牛帮忙解决。

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