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 frkstyc at 2005-06-13 22:20:33 on Problem 2240
In Reply To:re:????这样会更快么??? Posted by:ArXoR at 2005-06-13 22:15:42
假如这里面d是一个map<string,double>,e是一个vector<edge>,edge是一个struct{string,string,double}……
				if(d[e[i].s] > 0)
				{
					double td = d[e[i].s] * e[i].r;
					if(d[e[i].t] < td)
					{
						d[e[i].t] = td;
					}
				}

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