#include<stdio.h>
#include<math.h>
#include<time.h>
int main()
{
int a[100][100], m, n, l,k;
while (scanf_s("%d %d", &m, &n) != EOF)
{
for (l = 1; l <= m; l++)
{
for (k = 1; k <= n; k++)
{
scanf_s("%d", &a[l][k]);
}//此时k发生越界了,我就说怎么回事
k--;
}
int s = 0;
for (int l = 1; l <= m; l++)
{
for (int k = 1; k <= n; k++)
if (abs(a[l][k]) > abs(s))
{
s = a[l][k];
}
}
int x, y;
for (x = 1; x <= m; x++)
{
for (y = 1; y <= n; y++)
{
if (abs(a[x][y]) == abs(s))
{
goto w;
}
}
}
w: ;
printf("%d %d %d\n", x, y, s);
}
return 0;
}
海选女主角
最新推荐文章于 2024-11-07 19:48:34 发布