SP31374 MATRMUL0 - Matrix Multiplication 2K

Description

Consider the following C++ code, it constructs n×n matrices A,B and vector V from matrix C=A×B which you need to calculate. ``` uint32_t n, i, j, d1, p1, r1, m1, d2, p2, m2, A[n][n], B[n][n]; uint64_t C[n][n], V[n]; //here you need to read n, p1, d1, r1, m1, p2, d2, r2, m2 from input. for (i=0; i (32 - m1); B[i][j] = d2 >> (32 - m2); } //here you need to calculate C=A*B for (i=0; i

Input Format

You are given integers n, p1, d1, r1, m1, p2, d2, r2, m2, separated by spaces. 1, 1

Output Format

You need to output V\[0\], ..., V\[n-1\], separated by spaces.