HDU1166 敌兵布阵【线段树,Java数据结构和算法面试题及答案
Sample Input1101 2 3 4 5 6 7 8 9 10Query 1 3Add 3 6Query 2 7Sub 10 2Add 6 3Query 3 10EndSample OutputCase 1:63359### [](https://gitee.com/vip204888/java-p7)2.代码单点更新#define _CRT_SECURE_NO_WARNINGS#include#include#includeusing na