Bad_Cells
CodeChefOpen on judge ↗
You are given an infinite checkered field. You should get from a square ( x 1; y 1) to a square ( x 2; y 2). Using the shortest path is not necessary. You can move on to the field squares in four directions. That is, when you are positioned in any square, you can move to any other side-neighboring one. A square ( x; y) is considered bad if at least one of the two conditions is fulfilled: |x
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