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:你根本不是500!还有重边

Posted by 3009216068 at 2012-08-25 00:10:18 on Problem 3259
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:
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