Ad
  • Custom User Avatar

    It's written in maths, not C#, so it expands to 1 <= n AND n <= 2^64-1. ( Python understands the a <= b <= c syntax like that, but lots of other languages require the AND. )

  • Default User Avatar

    Gonna try my best to explain. I read in C# btw. So first of the sign "**" I think it is the same as 2^2, not really sure though.

    so 1 is less than or eual to n and if that is true then u check for if that value is <= 2^64 - 1. Is that correct?

  • Custom User Avatar

    Which part of that do you not understand? ( Yes, it helps to be able to read that, so this is not a fatuous question. )

    ETA: Note that you can Google that exact phrase, and Google will explain it a bit, and offer a link to QuickMath whch will try to explain in more ways and different terms.

  • Default User Avatar

    Hmm okay.. Could you explain how you read this "1 <= n <= 2 ** 64 - 1"? Guessing that is a vital part you need to understand to solve this.

  • Custom User Avatar

    But you do, don't you? It's in the description.

  • Custom User Avatar

    Could you ask that question directly on a solution you don't understand? That makes things easier to explain. Ask questions that are as specific as possible; tell us what syntax you understand and what you do not.

  • Default User Avatar

    If I need to check every combination and see if any result is equals to n. Dont I need to know the max value of the exponent?

  • Default User Avatar

    Could someone provide me with a resource explaining how to solve this? I looked at the solutions but I don't understand how they work ^^.

  • Default User Avatar

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

  • Default User Avatar

    How is nobody else mentioning this problem? This just drove me crazy for 10 minutes

  • Custom User Avatar

    realDenom is being computed with the wrong value. The common denominator of all pairs should still be obtained correctly, but not necessarily simplified.

  • Default User Avatar
  • Custom User Avatar

    Are p and q similar to each other?

    No, so when reaching the right-most p, you jump out of surface, even if there is another q to your right. Equivalent for q in other direction.

  • Default User Avatar

    if no other similar jump-point is available in the direction of the current jump-point, exit the surface in that direction

    Are p and q similar to each other?

    I thought by similar you mean that p only looks for other p and q only looks for other q

  • Default User Avatar

    I'm not mad btw, just asking. What is the point of submitting a minified solution?

  • Loading more items...