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 |
终于过了,调了半天,原来犯了一个很白痴的错误~~提示两点: (1) 注意题干“popular by every other cow”,也就是说被其它所有cow popular,所以如果存在解的话,那么应该至少是弱连通图;如果改成the number of most popular of the herd,题目会稍难一下。 (2) 考虑到矩阵是一个稀疏矩阵,建议使用静态链表! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator