23 lines
277 B
C++
23 lines
277 B
C++
#include <bits/stdc++.h>
|
|
#define endl '\n'
|
|
using namespace std;
|
|
|
|
int n, m, age;
|
|
|
|
int main(){
|
|
cin >> n >> m;
|
|
for(int i = 1; i <= n; i++){
|
|
int maxx = 0;
|
|
for(int j = 1; j <= m; j++){
|
|
cin >> age;
|
|
maxx = max(maxx, age);
|
|
}
|
|
cout << maxx << endl;
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|