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:你根本不是500!还有重边In Reply To:求大神看看哪错了 Posted by:3009216068 at 2012-08-24 22:34:45 n定到1000不是500(居然不给re给wa 。。。) 重边判断如下 for(int j=0;j<m;j++) { cin>>s>>e>>t; if(map[s][e]>t){ map[s][e]=t; map[e][s]=t;} } for(int j=0;j<w;j++) { cin>>s>>e>>t; map[s][e]=-t; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator