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: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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator