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:复杂度应该是PV^3,不过前面系数不大

Posted by mandycool at 2012-08-14 13:04:28 on Problem 1160
In Reply To:好不容易ac了,贴个代码 Posted by:mandycool at 2012-08-14 12:58:22
用额外空间的话,应该可以把calSum(int i,int j)复杂度从O(V)降低到O(1)

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