Sunday, April 21, 2013

10070 - Leap Year or Not Leap Year and ...

Used divisibility rules instead of looping with taking the mod. 
For 400, test for divisibility by 100 and then test for divisibility by 4 (summing digits 3 & 4*(10))
Check for test cases on the web. 


No comments:

Post a Comment