题解 | #最高身高#

最高身高

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;
}

全部评论

相关推荐

06-05 19:46
已编辑
武汉大学 后端
点赞 评论 收藏
分享
见见123:简历没有啥问题,是这个社会有问题。因为你刚毕业,没有工作经历,现在企业都不要没有工作经历的。社会病了。
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
昨天 14:35
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务