21 lines
297 B
C++
21 lines
297 B
C++
#include <bits/stdc++.h>
|
|
#define endl '\n'
|
|
using namespace std;
|
|
|
|
int n, m;
|
|
int age;
|
|
|
|
int main(){
|
|
cin >> n >> m;
|
|
for(int i = 1; i <= n; i++){ // 第i行的所有数据
|
|
int maxx = 0;
|
|
for(int j = 1; j <= m; j++){
|
|
cin >> age;
|
|
maxx = max(age, maxx);
|
|
}
|
|
cout << maxx << endl;
|
|
}
|
|
return 0;
|
|
}
|
|
|