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:不就是求逆序数码?离散化+树状数组水的过吗?

Posted by wzhgba at 2010-08-09 10:24:59 on Problem 2299
In Reply To:Re:不就是求逆序数码?离散化+树状数组水的过吗? Posted by:cug_fish2008 at 2009-10-13 22:11:29
树状数组可以统计前缀和,在添加某个数之前统计一下前缀和,表示统计之前出现的不大于当前数字的个数,,接下来就能自己推了吧

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