My submission got a wrong answer on test 19 for 1709D: Rorororobot, and I'm having trouble debugging it. My algorithm should be the same as the one described in the editorial. This was my first time implementing a sparse table, though, so there might be something wrong there.



