Witchy Problem
CodeChefOpen on judge ↗
Jon was very much interested in acquiring magical powers. One day while he was sleeping, a witch came into his dream and told him that she would be teaching the sorcery powers if he solves one of her problems. The problem was to find the `common sum` from the mojo square. A mojo square is an $n$ x $n$ matrix of the integers $1$ to $n^2$ such that the sum of every row, column, and diagonal is the
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