4 ms·
Let me golf this. :) perl -F: -anE '$tot+=$F[2]}{say$tot'
by majewsky 9y ago
Let me golf this. :)
perl -F: -anE '$tot+=$F[2]}{say$tot'
- jcims 9y agoThis made me miss perl (but ya forgot $F[2]>240)
- majewsky 9y agoAh, I was going by the snippet in the parent, not the original one in the grandparent. That here should do it: perl -F: -anE '$_=$F[2];$t+=$_if$_>240}{say$t' I wanted to be clever by doing `$t+=$_*($_>240)`, but that's actually one byte larger. :(