题目来源:码蹄集
https://matiji.net/exam/brushquestion/446/778/B3FCFEC101BD05189BB74D522E019504
参考程序:
#include <iostream>
using namespace std;
#define LL long long
int main() {
int m, n;
cin >> m >> n;
LL t;
LL ji = 1;
for (int i = 0; i < m; i++) {
LL rowSum = 0;
for (int j = 0; j < n; j++) {
cin >> t;
rowSum += t;
}
ji *= rowSum;
}
cout << ji;
return 0;
}