Blog on algorithms, puzzles, programming .... musings of a computer engineer.
After adding each digit, the sum%n will appear in the sum, and sum/n will be carried forward.
Post a Comment
No comments:
Post a Comment