二维数组
2026-08-11 16:23:16
发布于:江苏
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int n,m;
int x,y;
int main(){
cin >> n >> m;
int a[n+1][m+1] = {};
for(int i = 1;i <= n;i++){
for(int j = 1;j <= m;j++){
cin >> a[i][j];
}
}
for(int i = 1;i <= 5;i++){
cin >> x >> y;
cout << a[x][y] << endl;
}
return 0;
}
这里空空如也

有帮助,赞一个