树状数组 - PKU 2352 Stars

http://www.cppblog.com/gdgzgq/articles/114376.html