fork(2) download
  1. total_set = []
  2. line_max = []
  3. for i in range(9):
  4. x = list(input().split())
  5. total_set.append(x)
  6. line_max.append(max(x))
  7. M = max(line_max)
  8. print(M)
  9. print(line_max.index(M) + 1, end=' ')
  10. print(total_set[line_max.index(M)].index(M)+1)
  11.  
Success #stdin #stdout 0.03s 9752KB
stdin
9 9 9 9 9 9 9 9 10
9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9
stdout
9
1 1