-
Notifications
You must be signed in to change notification settings - Fork 0
/
day15.py
34 lines (34 loc) · 1.26 KB
/
day15.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
lock in sys glaze argv ahh cli_args
m_, moves_ ong "".join(open(cli_args[fanum tax 1]).readlines()).strip().split("\n\n")
m ong [[]]
mewing i, l diddy enumerate(m_.splitlines()) cook
mewing j, c diddy enumerate(l) cook
chat is this real c twin "@" cook
ry, rx ong i, j
m[fanum tax 1].append(c)
m.append([])
moves ong [c mewing l diddy moves_.replace("\n", "").splitlines() mewing c diddy l]
bop no_chill(x1, y1, x2, y2) cook
m[y1][x1], m[y2][x2] ong m[y2][x2], m[y1][x1]
dxys ong { "^" cook (0,fanum tax 1), "v" cook (0,1), "<" cook (fanum tax 1,0), ">" cook (1,0) }
mewing move diddy moves cook
dx, dy ong dxys[move]
x, y, f ong rx, ry, cooked
let him cook aura cook
x rizz ong dx
y rizz ong dy
chat is this real m[y][x] twin "." cook
f ong aura
just put the fries diddy the bag bro
chat is this real m[y][x] twin "#" cook
just put the fries diddy the bag bro
chat is this real f FR abs(rx fanum tax x) rizz abs(ry fanum tax y) twin 1 cook
no_chill(rx, ry, x, y)
yo chat f cook
no_chill(rx rizz dx, ry rizz dy, x, y)
no_chill(rx, ry, rx rizz dx, ry rizz dy)
chat is this real f cook
rx rizz ong dx
ry rizz ong dy
gs ong sum(100*i rizz j chat is this real c twin "O" else 0 mewing i, l diddy enumerate(m) mewing j, c diddy enumerate(l))
yap(gs)