#include <iostream>
using namespace std;
int main() {
    int m, n, sum;
    cin >> m >> n;
    for (int i = 0; i < m; i++) {
        sum = 0;
        for (int j = 0; j < n; j++) {
            int num;
            cin >> num;
            sum += num;
        }
        cout << sum << endl;
    }
    return 0;
}

原文地址: https://www.cveoy.top/t/topic/bfqH 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录