Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
因为数据实在是太小了,所以传递闭包暴力。传递闭包保证了可以充分利用已知的信息。 最后判定的时候只需要关注f[i,j]与f[j,i]的关系以及每个点出度(就是已知有几个比这个点更大)和即可。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator