GCRD
CodeChefOpen on judge ↗
Greatest Common Right Divisor for two square matrices A and B is a matrix 'D' which satisfies following 3 conditions: - A = P * D - B = Q * D - D = X * A + Y * B where P, Q, X and Y are some matrices. The task is to output the matrices D, X and Y for the given square matrices A and B. Input Input file will contain multiple input cases each denoting a combination of matrices A and B. First l
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