Guest User

Untitled

a guest
Apr 8th, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. game_board = []
  2. for string in range(10):
  3. string = input().split()
  4. game_board.append(string)
  5.  
  6. max, now = 0, 0
  7. for string in game_board:
  8. if now > max:
  9. max = now
  10. now = 0
  11. for element in string:
  12. if element == 0:
  13. now += 1
  14. else:
  15. if now > max:
  16. max = now
  17. now = 0
  18.  
  19. reversed_board = game_board
  20. for i in range(10):
  21. for j in range(10):
  22. reversed_board[i][j] = game_board[j][i]
  23.  
  24. for string in reversed_board:
  25. if now > max:
  26. max = now
  27. now = 0
  28. for element in string:
  29. if element == 0:
  30. now += 1
  31. else:
  32. if now > max:
  33. max = now
  34. now = 0
Advertisement
Add Comment
Please, Sign In to add comment