-->
当前位置:首页 > 题库

PROGRAMMING:Finding the summation of peripheral elements of two dimensional array

Luz5年前 (2021-05-10)题库409
Find a 4 × 5 the sum of the elements around the array.
###Input format:
Enter a matrix of 4 rows and 5 columns. There is no space before the first number in each row, and there is a space between each number in each row.
###Output format:
Output integer result directly. There are no additional characters.
###Input example:
```in
1 2 3 4 5
1 4 7 2 5
2 5 8 1 4
1 2 3 6 5
```
###Output example:
```out
forty-four
```






answer:If there is no answer, please comment