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 hawk at 2005-05-10 12:41:03 on Problem 2182
In Reply To:线段树是做数据用的吧?我想到一个用bst的,不过数据bt的话好像会退化到O(n^2) Posted by:frkstyc at 2005-05-10 12:28:30
线段树用来记录已经算出来的数的个数

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