fork download
  1. # your code goes here
  2. import sys
  3. num, row, col = 0, 1, 0
  4. for i in range(9) :
  5. lst = list(map(int, sys.stdin.readline().split()))
  6. if max(lst) > num :
  7. num = max(lst)
  8. col = lst.index(num)+1
  9. answer = [row , col]
  10. row += 1
  11. print(num)
  12. print(*answer)
Runtime error #stdin #stdout #stderr 0.13s 25380KB
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
stderr
Traceback (most recent call last):
  File "./prog.py", line 12, in <module>
NameError: name 'answer' is not defined