Editorial for Trò chơi trên xâu nhị phân 🎲🎮


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: LeKienThanh

tag: data structure, fenwick tree, bitset tree.

Subtask 1:

Trâu.

Subtask 2:

Fenwick Tree + kỹ thuật binary lift.

Subtask 3:

Bitset Tree + Bitset walk.

Happy coding!!


Comments

Please read the guidelines before commenting.


There are no comments at the moment.