CF Dinner with Emma 616B

来源:互联网 发布:阿里云 vps 翻墙 编辑:程序博客网 时间:2024/05/18 00:24
#include <iostream>#include <cmath>const int MAX = 105;int arr[MAX][MAX];int main(){int n, m, res = 0;std::cin >> n >> m;for (int i = 0; i != n; ++i){int max = 0x3f3f3f3f;for (int j = 0; j != m; ++j){std::cin >> arr[i][j];max = std::min(max, arr[i][j]);}res = std::max(max, res);//std::cout << res << std::endl;}std::cout << res << std::endl;return 0;}

0 0
原创粉丝点击