Ad
  • Custom User Avatar

    Good :) Now you know you need to find a radically different approach. Maybe it's better to focus more on the representation that on the number.

  • Custom User Avatar

    I think that with that input, it will take a long time to be solved...

    I tried with the input 123416523 and it took (37.97 secs, 74,454,731,984 bytes) to get the solution, which by the way is: 68961984

    I see that this problem has exponential time to be solved, related to how big the input is...

    • For example:
      • if the input is 12341652, it takes (3.81 secs, 6,917,976,752 bytes), but
      • an input which is one digit greater (fo example: 123416523) makes the solution time to go to (37.97 secs, 74,454,731,984 bytes)
  • Custom User Avatar

    How long does it take on your other platform to compute the result for input 123416523412365217623567890987654321?

  • Custom User Avatar

    Same issue here... I can run the code on other platform and it works just fine, but I get the timeout error here... I think that the issue is for big numbers, because it takes more than 12 seconds to get the solution. :(

  • Custom User Avatar

    Guys, if you find how to deal with this error, mention here plz

  • Custom User Avatar

    i have same error. I dont know way to solve this :)