← All problemsSign in

Chakra and Matrix

Chakra has a strange matrix M with n rows and m columns.He also has two arrays A and B consisting of n and m integers respectively.The arrays and matrix all have their index starting with 0. The relation between the arrays and matrix is M[i][j]=A[i]*B[j] where 0Chakra’s friend Dip asks him q queries. Each query consists of 4 integers w,x,y,z. Chakra has to answer queries of Dip. The the answer 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start