#include #include #include #include #include using namespace std; int main() { int n = 0; int m = 0; cin >> n >> m; int car[n] = { }; int car_t[n + 1] = { }; int tmp = 0; bool judge = false; for (int i = 0; i < m; i++) { for (int i = 0; i < n; i++) { cin >> tmp; car[i] += tmp; } for (int i = 0; i < n; i++) { car_t[i + 1] = car_t[i] + car[i]; /* cout<