fork download
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4.  
  5. int arr[9][9];
  6. int temp = 0;
  7. int row, col;
  8.  
  9. for(int i= 0; i < 9; i++){
  10. for(int j = 0; j < 9; j++){
  11. scanf("%d", &arr[i][j]);
  12. if(arr[i][j] > temp){
  13. temp = arr[i][j];
  14. row = i+1, col = j+1;
  15. }
  16.  
  17. }
  18. }
  19.  
  20. printf("%d\n%d %d", temp, row, col);
  21. }
Success #stdin #stdout 0s 5516KB
stdin
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
stdout
0
8 32764