PROGRAMMING:Multithreaded computing
It is known that there are n teachers and M students in a school. The school conducts a student opinion survey. Every student scores every teacher, and all the scores scored by students are concentrated in an array. The rule of data storage is that the first m data is the score of teacher 1, the next M data is the score of teacher 2, and so on. Please design a multi-threaded algorithm to calculate the total score of each teacher.
###Input format:
Input the number of teachers in the first line, the number of students in the second line, and all n * m scores (integer) in the third line. The scores are separated by a space
###Output format:
According to the original order of teachers, each line outputs the score of each teacher
###Input example:
Here is a set of inputs. For example:
```in
two
three
1 2 3 4 5 6
```
###Output example:
The corresponding output is given here. For example:
```out
six
fifteen
```
answer:If there is no answer, please comment
###Input format:
Input the number of teachers in the first line, the number of students in the second line, and all n * m scores (integer) in the third line. The scores are separated by a space
###Output format:
According to the original order of teachers, each line outputs the score of each teacher
###Input example:
Here is a set of inputs. For example:
```in
two
three
1 2 3 4 5 6
```
###Output example:
The corresponding output is given here. For example:
```out
six
fifteen
```
answer:If there is no answer, please comment