Problem 3393 · Medium

Count Paths With the Given XOR Value

Count right-or-down paths by their running XOR, keeping one count for each of the 16 possible XOR values per cell.

Open the interactive visualisation