(int i)
| 29 | public static long[] max = new long[MAXN << 2]; |
| 30 | |
| 31 | public static void up(int i) { |
| 32 | sum[i] = sum[i << 1] + sum[i << 1 | 1]; |
| 33 | max[i] = Math.max(max[i << 1], max[i << 1 | 1]); |
| 34 | } |
| 35 | |
| 36 | public static void build(int l, int r, int i) { |
| 37 | if (l == r) { |