Problems Description
<p class="p0" style="text-indent:24.0000pt;"> 已知一items<span>5*5</span><span>的矩阵,编程求其主副对角线之和。要求输入的数字都是不大于100的整数。</span> </p> <p class="p0" style="text-indent:24.0000pt;"> <span><br /> </span> </p>
Input格式
Output格式
Sample
Sample Input 1
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
Sample Output 1
27
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪