https://www.acmicpc.net/problem/2566
#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<vector<int>> vec(9,vector<int>(9,0));
for(int i{0};i<9;++i){
for(int j{0};j<9;++j){
cin >> vec[i][j];
}
}
int max_val{0};
int row{0},col{0};
for(int i{0};i<9;++i){
for(int j{0};j<9;++j){
if(vec[i][j]>=max_val){
max_val =vec[i][j];
row = i+1;
col = j+1;
}
}
}
cout << max_val << endl;
cout << row << " "<< col <<endl;
return 0;
}
단순한 프루트포스 문제