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 zhaokkk27 at 2007-09-10 18:05:34 on Problem 1029
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