Problem 2550 · Medium

Count Collisions of Monkeys on a Polygon

Only the two uniform direction choices avoid a collision, so count all 2^n choices and subtract those two.

Open the interactive visualisation