">int main() { int n, m; scanf("%d %d", &n, &m); int val[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { scanf("%d ", &val[i][j]); //依次输入矩阵元素 } } int k, a, b, temp; scanf("%d ", &k); //输入操作执行次数 cha...