第一题:小河干涸,直接暴力就可以过 第二题:黑白棋子(暴力过了 45) 求助!!! 给出 n 个棋子,每个棋子正面是黑色,反面是白色,一开始所有棋子都是黑面,给出 q 个区间 [L,1 R1]、[L2、R2]。。。对于每个区间依次处理,每一个区间都要反转区间里面对应的棋子,每个区间处理完后输出当前的黑色棋子的数量。 例子: n = 100 q = 2 2 个区间 [1, 30] [21, 40] 输出: 70 70