数组长度n q次操作 1 x给数组内所有奇数加上x 或者0 x给数组内所有偶数加上x 初始ans=sum(a) num=奇数数量 ans+=num*x 或者 (n-num)*x 如果x是奇数 更新num