| 
  • 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
 

013

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

Project Euler Problem #13

  • Initialize a string with the entire set of 100 numbers to begin with
  • Parse each number into an array, one digit per int
  • Add all of each digit together
  • Carry all numbers > 9 into the next digit
  • Find the beginning of the number and print 1

 

Runtime: 0.009s

PE013_c

 


Return to list of solutions

Comments (0)

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