// Johnny Boldt // Feb 27, 2011 // johnny.boldt@gmail.com This problem is solved by precomputing all of the answers. This is done by taking the string "0123456789" and finding all permutations of it. For each permutation, take the first 5 digits and last 5 digits and see if they divide evenly. If so, store the answer. Note: I am unsure of how many possible pairs there can be for each N, but 100 seemed like a safe bet.