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 carew at 2006-09-02 10:07:31 on Problem 2394
In Reply To:考虑重边 Posted by:zhao0057 at 2006-09-01 13:33:06
   重边?是不是这样?也不过!	
         for (i=1; i<=p; i++)
	{
		cin >> l >> r >> tm;
		if (tm < a[l][r])
			a[l][r] = tm;
		a[r][l] = a[l][r];
	}

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