Skip to content

Instantly share code, notes, and snippets.

@SigmaX
Created November 12, 2023 19:32
Show Gist options
  • Save SigmaX/c11d6b93bb1ec419f26cf50ebc91e312 to your computer and use it in GitHub Desktop.
Save SigmaX/c11d6b93bb1ec419f26cf50ebc91e312 to your computer and use it in GitHub Desktop.
#!/bin/python3
import os
def bomberMan(n, grid):
# TODO Write your code here
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
first_multiple_input = input().rstrip().split()
r = int(first_multiple_input[0])
c = int(first_multiple_input[1])
n = int(first_multiple_input[2])
grid = []
for _ in range(r):
grid_item = input()
grid.append(grid_item)
result = bomberMan(n, grid)
fptr.write('\n'.join(result))
fptr.write('\n')
fptr.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment