import java.util.*;
public class Main{
static int abss(int a) {
return a > 0 ? a : (-a);
}
public static void main(String args[]) {
Scanner cin = new Scanner(System.in);
int n, m;
int max, ans;
int x = 0, y = 0, z = 0;
while (cin.hasNext()) {
n = cin.nextInt();
m = cin.nextInt();
max = -1;
ans = 0;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= m; j++) {
z = cin.nextInt();
if (max < abss(z)) {
max = abss(z);
ans = z;
x = i;
y = j;
}
}
}
System.out.println(x + " " + y + " " + ans);
}
}
}
杭电 2022 ( 海选女主角 ) java
最新推荐文章于 2021-10-06 18:23:30 发布