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:我用prim算法怎么过不了,高手给看下吧

Posted by ding59 at 2009-02-21 14:02:56 on Problem 2421
In Reply To:我用prim算法怎么过不了,高手给看下吧 Posted by:zjut019 at 2009-01-15 12:17:59
for(i=0;i<q;i++)//已有路径
	 {
		 scanf("%d %d",&x,&y);
		 mat[x][y]=0;//赋值为0
                 mat[y][x]=0  //也要赋为0
	 }

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