Problems Description
<p> 输出已知矩阵的转置矩阵(行与列的数量相同 ) </p> <p> <div class="O"> <div> <b>The old array and new array should share the same space. </b> </div> <div> <b> At the same time your program should compute the numbers </b><b>that more than 60. </b> </div> <div> </div> </div> </p>
Input格式
<p> <span style="line-height:1.5;">4 //矩阵的维度</span> </p> <p> 71 72 73 74 //4×4的数据<br /> 5 76 7 8<br /> 9 10 71 72<br /> 13 14 15 76<br /> </p>
Output格式
<p> 71 5 9 13 //转置矩阵<br /> 72 76 10 14<br /> 73 7 71 15<br /> 74 8 72 76<br /> 8//大于60的数目<br /> </p> <p> <br /> </p> <p> <br /> </p>
Sample
Sample Input 1
4
71 72 73 74
5 76 7 8
9 10 71 72
13 14 15 76
Sample Output 1
71 5 9 13
72 76 10 14
73 7 71 15
74 8 72 76
8
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪