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:说说我的思路

Posted by yipingan at 2012-08-06 00:02:34 on Problem 2287
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:
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