Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. def leMatriz(n):
  2.     matriz = []
  3.     for i in range(n):
  4.         linha = input().split()
  5.         matriz.append(linha)
  6.     return matriz
  7.  
  8. def main():
  9.     opcao = int(input())
  10.     if opcao == 0:
  11.         n = int(input())
  12.         tabuleiroInicial = leMatriz(n)
  13.         tabuleiroFinal = leMatriz(n)
  14.         if tabuleiroInicial == tabuleiroFinal:
  15.             print("SIM")
  16.         else:
  17.             print("NAO")
  18.    
  19.    
  20. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement