Ad
  • Custom User Avatar

    Please use code formatting next time when you post code.

    "the execution time has expired (16000 ms)" means that your code may be correct, but is too slow. Full brute force is not going to work for this one, try to think how you can optimize your code.

  • Default User Avatar

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