Salted Earth solved

Python
[Please, don’t post solutions here]