#include <bits/stdc++.h>
using namespace std;
//숫자카드 게임
int main()
{
    int n,b;
    int a[100][100];

    cin >> n >> b;

    int min = 500;
    int max=-500;
    for(int i=0; i<n; i++){
        for(int j=0; j<b; j++){
            cin >> a[i][j];
            if(min > a[i][j]){
                min = a[i][j];
            }
        }
        if(max<min){
            max= min;
        }
        min=500;
    }

    cout << max;

    return 0;
}

+ Recent posts