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 |
Share my trick about sorting the routesSince the villages' ids are within 1---20, we can store each id as a char: id-'0' and the whole route can be represented as a string. Library functions like strcmp can thus be used in route comparison. Far easier than without. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator