Official
B - Explore Editorial by en_translator
This can be solved by actually simulating the moves between the rooms. Beware of overflows and indices when implementing.
It makes the implementation easier to store the conditions about the bonus in an array such that
\({\rm bonus}[i]=\) the time you gain when you arrive at Room \(i\).
posted:
last update: