
树状数组
左眼皮跳跳~
这个作者很懒,什么都没留下…
展开
-
POJ 2299 Ultra-QuickSort(逆序数 树状数组)
Ultra-QuickSort Time Limit: 7000MS Memory Limit: 65536K Total Submissions: 45960 Accepted: 16702 Description In this problem, you have to analyze a particular sorti原创 2015-04-12 09:32:18 · 698 阅读 · 0 评论 -
Hoj 1867 经理的烦恼(树状数组)
Jerry是一家公司销售部门的经理。这家公司有很多连锁店,编号为1,2,3,... Jerry每天必须关注每家连锁店的商品数量及其变化,一项很乏味的工作。在连锁店比较少的时候,Jerry喜欢计算编号在[i,j]区间内的连锁店中商品数量为素数的有多少家,但是现在连锁店的数量急剧增长,计算量很大,Jerry很难得出结果。 输入格式 题目有多组输入。每组输入第一行有三个整数:C 连锁店的数量原创 2015-04-12 09:13:46 · 732 阅读 · 0 评论 -
POJ 2352 star (树状数组)
Language: Default Stars Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 35318 Accepted: 15326 Description Astronomers often examine star maps where sta原创 2015-04-12 11:48:48 · 514 阅读 · 0 评论 -
POJ 3321 Apple Tree(树状数组)
Apple Tree Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 20671 Accepted: 6257 Description There is an apple tree outside of kaka's house. Every autumn,原创 2015-05-03 09:46:51 · 714 阅读 · 0 评论