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:zyz at 2008-01-20 00:32:01 不行的,比如如下的田忌马和齐王马:答案是6 0 0 1 0 1 1 2 2 2 4 3 5 5 5 7 6 7 9 9 9 > 1.排序 > for(田忌的马从快到慢) > 找到齐王小于田忌马的最快的马 > 把这一对马去掉 > > 如果其中有相等,就正好匹配 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator