20-11
This commit is contained in:
10
20/20-1.py
10
20/20-1.py
@@ -2,10 +2,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from collections import defaultdict
|
||||
|
||||
file = "./input.txt"
|
||||
cheat_time = 100
|
||||
#file = "./ex.txt"
|
||||
#cheat_time = 25
|
||||
#file = "./input.txt"
|
||||
#cheat_time = 100
|
||||
file = "./ex.txt"
|
||||
cheat_time = 25
|
||||
|
||||
from time import time
|
||||
from copy import deepcopy
|
||||
@@ -80,7 +80,7 @@ if __name__ == "__main__":
|
||||
#print_grid(fill_grid(grid,sol[1],"O"))
|
||||
counts = defaultdict(int)
|
||||
for i in range(1,len(grid)-1):
|
||||
for j in range(1,len(grid[0])):
|
||||
for j in range(1,len(grid[0])-1):
|
||||
if grid[i][j] == "#":
|
||||
t_grid = deepcopy(grid)
|
||||
t_grid[i][j] = "."
|
||||
|
||||
Reference in New Issue
Block a user