{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"矩阵int a[4][3],矩阵int b[3][5]。矩阵的数据由用户输入。输出新的矩阵c\u003da*b. 输出格式:\u003cbr\u003ec00 c01 c02 c03 c04\u003cbr\u003ec10 c11 c12 c13 c14\u003cbr\u003ec20 c21 c22 c23 c24\u003cbr\u003ec30 c31 c32 c33 c34\u003cbr\u003e\u003cbr\u003e矩阵乘法的计算方法 :\u003cbr\u003e对于矩阵A[m][q]*B[q][n],\u003cbr\u003e相乘的结果为矩阵C[m][n]且对于矩阵C中每一项都有\u003cbr\u003e C[i][j] \u003d A[i][0]*B[0][j] + A[i][1]*B[1][j] + ..... + A[i][q]*B[q][j]"}},{"title":"Input","value":{"format":"HTML","content":"第一行为矩阵的大小,后面跟着输入矩阵\u003cbr\u003ex1,y1\u003cbr\u003ea00 a01 a02\u003cbr\u003ea10 a11 a12\u003cbr\u003ea20 a21 a22\u003cbr\u003ea30 a31 a32\u003cbr\u003e\u003cbr\u003ex2,y2\u003cbr\u003eb00 b01 b02 b03 b04\u003cbr\u003eb10 b11 b12 b13 b14\u003cbr\u003eb20 b21 b22 b23 b24"}},{"title":"Output","value":{"format":"HTML","content":"矩阵c\u003cbr\u003ec00 c01 c02 c03 c04\u003cbr\u003ec10 c11 c12 c13 c14\u003cbr\u003ec20 c21 c22 c23 c24\u003cbr\u003ec30 c31 c32 c33 c34"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e4 3\n1 2 3\n4 5 6\n7 8 9\n10 11 12\n3 5\n7 8 9 10 11\n4 5 6 7 8\n1 2 3 4 5\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e 18 24 30 36 42\n 54 69 84 99 114\n 90 114 138 162 186\n 126 159 192 225 258\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Hint","value":{"format":"HTML","content":"输出格式 cout \u0026lt;\u0026lt; setw(5) \u0026lt;\u0026lt; c[i][j];"}}]}