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 lifephp at 2012-02-11 12:41:16 on Problem 1062
In Reply To:给两个数据 Posted by:WutongDeath at 2009-06-16 10:16:52
> 1 5
> 10000 3 2
> 2 5000
> 3 5000
> 3000 4 1
> 4 400
> 3000 2 1
> 4 500
> 1000 3 1
> 5 100
> 100 2 0
> 
> 1 5
> 10000 3 2
> 2 5000
> 3 5000
> 3000 2 1
> 4 500
> 3000 4 1
> 4 400
> 1000 3 1
> 5 100
> 100 2 0
> 
但是如果他和某个地位较低的人进行了交易,地位较高的的人不会再和他交易,他们认为这样等于是间接接触,反过来也一样。

这句话要理解清楚!如果等级差距限制M=1,物品1->2->3的等级为3->2->1,因为3-1>1,那么他不能和物品3进行交易!

所以以上都是6400

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