摘要:
线段树的单点查询 先判断当前区间[l,r][l,r][l,r]是否与目标区间完全相等 inline int query(int pos, int L, int l, int r) { if (L == l && r == L) { return tree[pos]; } int mid = (l + 阅读全文
摘要:
传送门 题目描述 Bessie and her friends are playing hoofball in the annual Superbull championship, and Farmer John is in charge of making the tournament as ex 阅读全文