随笔分类 -  树——线段树

摘要:The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bessie, ... 阅读全文
posted @ 2015-08-02 21:09 Painting、时光 阅读(137) 评论(0) 推荐(0) 编辑
摘要:A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Ea... 阅读全文
posted @ 2015-08-02 21:07 Painting、时光 阅读(173) 评论(0) 推荐(0) 编辑
摘要:You haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a... 阅读全文
posted @ 2015-08-01 15:47 Painting、时光 阅读(166) 评论(0) 推荐(0) 编辑
摘要:At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place wher... 阅读全文
posted @ 2015-08-01 15:45 Painting、时光 阅读(133) 评论(0) 推荐(0) 编辑
摘要:DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj.For a given sequence of ... 阅读全文
posted @ 2015-07-29 16:31 Painting、时光 阅读(167) 评论(0) 推荐(0) 编辑
摘要:DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…The Lunar New Year ... 阅读全文
posted @ 2015-03-10 20:18 Painting、时光 阅读(150) 评论(0) 推荐(0) 编辑
摘要:DescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵... 阅读全文
posted @ 2015-03-10 19:58 Painting、时光 阅读(96) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示