
线段树
文章平均质量分 84
旻宇
New Acmer
展开
-
POJ2481 Cows
DescriptionFarmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number line) in his field is particularly good. Fa原创 2014-07-16 14:53:29 · 521 阅读 · 0 评论 -
POJ2828 Buy Tickets
URL: http://poj.org/problem?id=2828原创 2014-07-16 16:27:34 · 457 阅读 · 0 评论 -
POJ3468 A Simple Problem with Integers
线段树子区间更新维护#include struct interval_tree{ int nums[100010]; struct Node{ long long mark, sum; } node[100010 << 2]; void build(int l, int r, int i) { if (l == r) {no原创 2015-08-16 12:33:40 · 394 阅读 · 0 评论 -
POJ3667 Hotel
URL:http://poj.org/problem?id=3667DescriptionThe cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bes原创 2015-08-17 11:02:39 · 397 阅读 · 0 评论 -
POJ2528 Mayor's posters
URL:http://poj.org/problem?id=2528DescriptionThe citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all p原创 2015-08-16 17:22:47 · 362 阅读 · 0 评论