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 perseawe at 2012-03-12 22:07:15 on Problem 1094 and last updated at 2012-03-13 15:58:01
传递闭包保证了可以充分利用已知的信息。
最后判定的时候只需要关注f[i,j]与f[j,i]的关系以及每个点出度(就是已知有几个比这个点更大)和即可。

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