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 reakwang at 2008-03-23 20:43:16 on Problem 1029
In Reply To:你能通过这些数据吗? Posted by:zhaokkk27 at 2007-09-10 18:05:34
第三种情况应该是数据有错误吧,实际不会发生这样情况的。这种情况也要考虑吗?



> case 1:
> 3 2

> 1 1 2
> <
> 1 1 3
> <
> 答案:1
> 
> case 2:
> 5 1
> 2 1 2 3 4
> =
> 答案:5
> 
> case 3:
> 3 2
> 1 1 2
> <
> 1 2 3
> >
> 答案:0
> 
> 我枚举每个coin为假,并枚举重或轻,
> 然后判断每条信息是否符合.做了些优化,不会TLE.

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