decided to code golf today's aoc. I've never tried miniaturizing python before, think I did pretty well :) 70 characters total
t=0
for l in open(0,'rb'):
g=l[2]-88
t+=1+g*3+(g+l[0]-66)%3
print(t)made with @nex3's syntax highlighter

decided to code golf today's aoc. I've never tried miniaturizing python before, think I did pretty well :) 70 characters total
t=0
for l in open(0,'rb'):
g=l[2]-88
t+=1+g*3+(g+l[0]-66)%3
print(t)You can shave off three more characters by deleting the -66 since you're going to do %3.