Problem 255
Posted: Tue Sep 15, 2009 8:25 pm
Hi,
I was just attempting to do this. I had an implementation that seemed to do what was required(see below). However the problem states that a 5-digit integer (10,000 ≤ n ≤ 99,999) has an average of 3.2102888889 (rounded to 10 Decimal Places). However I have run my code and get (rounded to 10 Decimal Places) 3.1470888888 as the average. Have I missed something, or is mine somehow more efficient? Please help as it really makes no sense!
[snip code]
Thanks In Advance
I was just attempting to do this. I had an implementation that seemed to do what was required(see below). However the problem states that a 5-digit integer (10,000 ≤ n ≤ 99,999) has an average of 3.2102888889 (rounded to 10 Decimal Places). However I have run my code and get (rounded to 10 Decimal Places) 3.1470888888 as the average. Have I missed something, or is mine somehow more efficient? Please help as it really makes no sense!
[snip code]
Thanks In Advance