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

PROGRAMMING:Seek 3 × The sum of the elements in the array that are greater than or equal to the average

Luz5年前 (2021-05-10)题库353
Find a three × 4 the sum of all array elements in the array which are greater than or equal to the average value, and count the number of elements that meet the condition. The average value in this question is decimal, and all other variables used are integer.
###Input format:
Enter a matrix of 3 rows and 4 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:
According to the order of "s = sum, n = number" in a row, the results are output as is, without column width control.
###Input example:
```in
1 4 7 8
2 1 4 2
1 2 3 4
```
###Output example:
```out
s=27,n=5
```






answer:If there is no answer, please comment