fork download
  1. # your code goes here
  2. total_set = []
  3. line_max = []
  4. for i in range(9):
  5. x = list(map(int, input().split()))
  6. total_set.append(x)
  7. line_max.append(max(x))
  8. M = max(line_max)
  9. print(M)
  10. print(line_max.index(M) + 1, end=' ')
  11. print(total_set[line_max.index(M)].index(M)+1)
Success #stdin #stdout 0.03s 9736KB
stdin
3 23 85 34 17 74 25 52 65
10 7 39 42 88 52 14 72 63
87 42 18 78 53 45 18 84 53
34 28 64 85 12 16 75 36 55
21 77 45 35 28 75 90 76 1
25 87 65 15 28 11 37 28 74
65 27 75 41 7 89 78 64 39
47 47 70 45 23 65 3 41 44
87 13 82 38 31 12 29 29 80
stdout
90
5 7