02.06.2012, 23:50
Quote:
Yeah, I realised that 2000 WAS a leap year because it was a multiple of 400, when other multiples of 100 are not, and any of the years where that is a factor are beyond the range of 32 bit integers. You realise you can do this with vastly less loops right? You don't need to loop over every year, just work out the number of leap years in between and do a huge multiply.
|