WA on #5

CF617E XOR and Favorite Number

@[seanlsy](/user/674247) 注意Add函数,应该先更新sum,再更新桶tim,不然会导致算重,Add函数改成这样就过了: ```cpp inline void Add(int x){ sum+=tim[a[x]^k],tim[a[x]]++; } ```
by liu_chen_hao @ 2022-08-02 16:23:08


@[liu_chen_hao](/user/438461) 已经过了,谢谢
by seanlsy @ 2022-08-03 08:02:14


|