Problem 3653 · Medium

XOR After Range Multiplication Queries I

Apply each arithmetic progression of multiplications modulo a prime, then XOR the final values.

Open the interactive visualisation