small optimizations: prefer multiplication over division
fix spaces
Merge pull request #7 from isucan/master

small optimizations: prefer multiplication over division