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 0909100811 at 2012-05-10 15:19:56 on Problem 4046
In Reply To:Re:做N次最短路,然后O(NQ)查询需要注意的地方 Posted by:shahdza at 2012-05-10 10:13:46
    先把问题读进来,然后每枚举一个最高消费点做一次最短路后,就for(q)一下更新一遍所有的询问,这样就不用开二维数组了。

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