CRAZY MATRICES
CodeChefOpen on judge ↗
Chef Neel has recently learned about matrices in his Linear Algebra classes. He is very much fascinated by the prowess of these matrices. Now today he finds a 2*2 craxy matrix whose elements are given as: - A[0][0]=1 - A[0][1]=1 - A[1][0]=1 - A[1][1]=0 Recently he learned about matrix multiplication and is interested in finding the nth power of the crazy matrix. Input The first line of th
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