题解 | 矩阵元素定位
矩阵元素定位
https://www.nowcoder.com/practice/b8e6a46992fe4e11b2822b20561b6d94
#include <iostream>
using namespace std;
int main() {
int n,m,x,y,nm[11][11];
cin >> n >>m;
for(int i = 0;i<n;i++){
for(int j = 0;j<m;j++){
cin >> nm[i][j];
}
}
cin >>x >> y;
cout << nm[x-1][y-1]<< endl;
}

查看1道真题和解析