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

 

相关文章:

  • 2022-12-23
  • 2021-09-08
  • 2021-04-20
  • 2021-06-21
  • 2022-02-12
  • 2022-02-21
  • 2021-10-06
  • 2021-07-09
猜你喜欢
  • 2022-12-23
  • 2021-10-31
  • 2021-10-12
  • 2021-11-17
  • 2021-09-19
  • 2021-08-13
相关资源
相似解决方案