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

我跑了1110MS

Posted by CydorniaKnight at 2010-03-22 11:39:32 on Problem 1470
In Reply To:O(n^2)的预处理在线,怎么会TLE呢? Posted by:xuhanqiu at 2009-09-17 01:28:18
也是用Tarjan
懒的用O(N+Q)
为了节省代码当作所有询问都有,写了个O(N+N^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