Segment Tree,二維線段樹版本,zkw式
[UVA] 11297 - Census#include <stdio.h>#include <string.h>#define max(x, y) ((x) > (y) ? (x) : (y))#define min(x, y) ((x) < (y) ? (x) : (y))struct subTree { int maxv, minv;};struct segmentTree { subTree subtree[1025];} mainTree...