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.