problem description
Thematrix is as follows:
1,2017,2,5
1,2018,1,5
1,2018,2,4
2,2017,1,5
1,2018,1,2
according to the first three columns, there are three kinds of matrix to produce a new matrix:
1,2017,2,5
1,2018,1,7
1,2018,2,4
2,2017,1,5
one line is missing because as long as the first three columns are the same, the fourth column summation, 2-5-7
how is it calculated?
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)