Evading Robot
You are given a **simple undirected connected graph** with $N$ nodes (numbered $1$ to $N$) and $M$ edges. Chef is initially located at vertex $S$, and a robot is located at vertex $A_0 (A_0 \ne S)$. The robot is programmed to move along a specific path, while Chef is trying to avoid meeting with the robot. There is a period of $K$ days, and the robot is programmed with a sequence of $K + 1$ inte
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start