Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66996f9

Browse files
committed
Day 2 - golfing
1 parent 53f2592 commit 66996f9

File tree

2 files changed

+2501
-0
lines changed

2 files changed

+2501
-0
lines changed

day02/golfing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print(list(map(sum,zip(*[[b+1+(b-a+1)%3*3,b*3+(a+b-1)%3+1]for a,b in[[ord(l[0])-65,ord(l[2])-88]for l in open("i").readlines()]]))))

0 commit comments

Comments
 (0)