hdoj:2022

#include <iostream>
#include <string>
using namespace std;

int main()
{
    int m, n;
    int x, y;
    long Max = 0;
    int score;
    while (cin >> m >> n)
    {
    
        for (int i = 1; i <= m; i++)
        {
            for (int j = 1; j <= n; j++)
            {    
                cin >> score;
                if (i == 1 && j == 1)
                {
                    Max = abs(score);
                }
                
                if (abs(score) > abs(Max))
                {
                    Max = score;
                    x = i;
                    y = j;
                }
            }
        }
        cout << x << " " << y << " " << Max << endl;
    }
}
原文地址:https://www.cnblogs.com/bbbblog/p/5998338.html