Help Ekansh
CodeChefOpen on judge ↗
Ekaansh got a N*N matrix from his CSE teacher. Now, he tells Ekaansh to get the X out of the matrix that is only the left and right diagonals of the matrix. He also tells Ekaansh to invert the X. Get the sum of prime numbers from those elements. Help him with the task and get him full marks in his next CA. Input The first line of input contains a single integer T denoting the number of test cas
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