acm2022

import java.util.*;

public class acm2022 {

public static void main(String[] args) {

Scanner in = new Scanner(System.in);

while (in.hasNext()) {

int m = in.nextInt();

int n = in.nextInt();

int pos = 0;

int max = in.nextInt();

for (int i = 1; i < n * m; i++) {

int curr = in.nextInt();

if (Math.abs((double) max) < Math.abs((double) curr)) {

max = curr;

pos = i;

}

}

System.out.println((pos / n + 1) + " " + (pos % n + 1) + " " + max);

}

}

}

时间: 2024-11-13 17:32:26

acm2022的相关文章