题解 | #最高身高#
最高身高
https://www.nowcoder.com/practice/258fe0c567ac493f9b7bc9d3669d158d
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b) != EOF) { int arr[10][10] = {0}; int highest = 0; int x = 0; int y = 0; for (int i = 0; i < a; i++) { for (int j = 0; j < b ; j++) { scanf("%d",arr[i] + j); if (arr[i][j] > highest) { highest = arr[i][j]; x = i + 1; y = j + 1; } } } printf("%d %d",x,y); } return 0; }