• This comment is hidden because it contains spoiler information about the solution

  • Only one answer to this question: some part of your code is too slow.

  • I have solved the question with PHP but I get the following error when I Attempt.

    Execution Timed Out (12000 ms)

    in py pc and in localhost i have no problem with huge numbers and gaps.