Hi everyone Hope you're doing great!
Yesterday, in the Div1+Div2 contest held on July 20, 2025, the E problem had an interesting path to optimize the constraints and ordering of computations.
With tighter constraints and better prefix handling, I managed to push the solution down to ~62ms, even for (n, k) limits. 330003602
If there’s enough interest, I’ll share the full theoretical explanation for this code as well.



