| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

PE145

Page history last edited by Kenneth Finnegan 15 years, 7 months ago

Project Euler Problem #145

 

Didn't do anything special on this problem, just brute forced it.  Brute forcing it took 5m22, but I don't feel that bad about it because by 26 seconds I noticed that the count stopped going up (90,000,000), and just tried entering that number, and it worked.

 

I used unsigned long longs, but unsigned ints can only go up to 4 billion anyways, so it was only because I wasn't thinking about the problem scope and just didn't want to worry about overflow.

 

PE145_c

 


Return to list of solutions

Comments (0)

You don't have permission to comment on this page.