2566๋ฒ: ์ต๋๊ฐ (acmicpc.net)
1. ๋ด ์ฝ๋
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[][] eightyNine = new int[9][9];
int max = 0;
int location = 0;
int location2 = 0;
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
eightyNine[i][j] = sc.nextInt();
if(eightyNine[i][j] > max) {
max = eightyNine[i][j];
location = i;
location2 = j;
}
}
}
System.out.println(max);
System.out.printf("%d %d", location+1, location2+1);
}
}
0