Responsive image

Problem 1076 --C语言程序设计教程(第三版)课后习题7.3

1076: C语言程序设计教程(第三版)课后习题7.3

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 259  Solved: 227
[Submit][Status][Web Board][Creator:]

Description

求一个3×3矩阵对角线元素之和。

Input

矩阵

Output

主对角线 副对角线 元素和

Sample Input

1 2 3
1 1 1
3 2 1

Sample Output

3 7

Source

 

[Submit][Status]
ACM算法攻关部
  • Anything about this OnlineJudge, Please Contact Administrator. Click add QQ

    OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap

    Copyright 2016 ACM算法攻关部
    关于网站改版