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 JaySoon at 2009-10-22 22:14:18 on Problem 2186
提示两点:
(1) 注意题干“popular by every other cow”,也就是说被其它所有cow popular,所以如果存在解的话,那么应该至少是弱连通图;如果改成the number of most popular of the herd,题目会稍难一下。
(2) 考虑到矩阵是一个稀疏矩阵,建议使用静态链表!

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