Anurag And His Sword
CodeChefOpen on judge ↗
Anurag is a warrior in MANIT land. MANIT land is country in the form of square matrix of size n x n which has states as element of matrix. He has a sword named C-BAY(a,b) which is in the form of L shape. C-BAY has length a and width b. If Anurag is at (x1,y1) state he can conquer ( x2,y2) state if x2 = x1 ± a and y2= y1 ± b or x2 = x1 ± b and y2= y1 ± a For example, the diagram below depicts t
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