Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
IMO 59884848483559 isn't correct answer. There has been similar task in code jam: https://code.google.com/codejam/contest/dashboard?c=186264#s=a&a=1.
Otherwise, please describe the algorithm.
This comment is hidden because it contains spoiler information about the solution
Which language? Anyway the correct answer is still 59884848483559.