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

我也来提供两组数据吧。。还是挺容易错的。

Posted by Acsaga at 2006-11-25 00:53:50 on Problem 2376
In Reply To:试下这个数据,它的输出是-1 Posted by:HYSBZ at 2005-07-26 23:56:25
input:
7 20
1 10
2 11
3 12
4 13
5 14
12 19
16 20

output: 4

input:
10 10
1 3
2 4
3 5
4 6
5 7
6 8
7 9
8 10
9 10
10 10

output: 4

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