题解 | #最高身高#
最高身高
https://www.nowcoder.com/practice/258fe0c567ac493f9b7bc9d3669d158d
#include <stdio.h> int main() { int n, m, num, max, x, y = 0; scanf("%d %d", &n, &m); for (int i = 0; i < n; i ++ ) { for (int j = 0; j < m; j++) { scanf("%d", &num); if (num > max) { max = num; x = i; y = j; } } } printf("%d %d\n",x+1,y+1); return 0; }
c语言刷题 文章被收录于专栏
c语言刷题题目