Problem 3665 · Medium

Twisted Mirror Path Count

teaching model: count paths with a DP over cells, following each mirror reflection as one move.

Open the interactive visualisation