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:谁解释下样例…… Posted by:JiangLY at 2006-07-15 09:24:16 就是说线也是有编号的,sample input给出的是每个槽的上头和下头分别连的线的编号。 答案是最少相邻移动次数。 比如分别交换:23上,23下,14上,14下就满足要求了。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator